mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Clean up sonobuoy scripts
This commit is contained in:
parent
398992c77d
commit
7a6e6a19d6
@ -173,10 +173,10 @@ export -f sonobuoy-test
|
|||||||
sonobuoy-retry-test() {
|
sonobuoy-retry-test() {
|
||||||
SECONDS=0
|
SECONDS=0
|
||||||
LIMIT=300
|
LIMIT=300
|
||||||
for i in seq 1 3; do
|
for i in $(seq 1 3); do
|
||||||
sonobuoy-test "${@}" && return
|
sonobuoy-test "${@}" && return
|
||||||
echo "Failed sonobuoy try #${i}"
|
echo "Failed sonobuoy try #${i}"
|
||||||
if [[ "$SECONDS" > "$LIMIT" ]]; then
|
if [ "$SECONDS" -gt "$LIMIT" ]; then
|
||||||
echo "Stopping sonobuoy re-try after ${SECONDS} seconds (limit ${LIMIT}s)"
|
echo "Stopping sonobuoy re-try after ${SECONDS} seconds (limit ${LIMIT}s)"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user