Skip to content

Commit

Permalink
Add sleep command to ensure latest usage data
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Jun 10, 2024
1 parent 496976e commit 338cf57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 338cf57

Please sign in to comment.