Skip to content

Commit

Permalink
test: increase example test timeout as 10min
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 13, 2023
1 parent 0347bff commit b1fa012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/verify-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ rollout_and_wait() {

APPNAME=$(kubectl apply -f $1 | grep -E "^(:?daemonset|deployment|statefulset|pod)" | awk '{printf $1}')
if [[ -n $(expr "${APPNAME}" : "\(daemonset\|deployment\|statefulset\)" || true) ]]; then
kubectl rollout status $APPNAME --watch --timeout=5m
kubectl rollout status $APPNAME --watch --timeout=10m
else
kubectl wait "${APPNAME}" --for condition=ready --timeout=5m
kubectl wait "${APPNAME}" --for condition=ready --timeout=10m
fi
}

Expand Down Expand Up @@ -63,4 +63,4 @@ for EXAMPLE in "${EXAMPLES[@]}"; do
rollout_and_wait $EXAMPLE
done

echo "deployment examples running completed."
echo "deployment examples running completed."

0 comments on commit b1fa012

Please sign in to comment.