From 338cf578ed74becc66906b5e9b950f9b700cbc37 Mon Sep 17 00:00:00 2001 From: Shlomo Heigh Date: Mon, 10 Jun 2024 15:53:05 -0400 Subject: [PATCH] Add sleep command to ensure latest usage data --- generate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generate.sh b/generate.sh index 042a97c..6652bae 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -x +# Wait the nodeAgent.config.updatePeriod used when installing the Kubescape helm chart. +# This ensures that the VEX documents are updated with the latest usage data. +sleep 60 + +# Now attempt to retrieve the VEX documents timeout=300 start_time=$SECONDS while [[ -z $(kubectl -n kubescape get openvulnerabilityexchangecontainers.spdx.softwarecomposition.kubescape.io) ]]; do