Skip to content

Commit

Permalink
handle pod status error
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Sep 18, 2024
1 parent 17bb639 commit 58948ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ function waitTillAllPodsComplete() {
if [ ${num_completed_pods} -gt 0 ]; then
printf ${num_completed_pods}" pod(s) completed.\n"
fi
num_noncompleted_pods=$(echo "${podslist}" | tail -n +2 | grep -i -v 'completed\|succeeded\|fail' | wc -l)
num_noncompleted_pods=$(echo "${podslist}" | tail -n +2 | grep -i -v 'completed\|succeeded\|fail\|error' | wc -l)
num_failed_pods=$(echo "${podslist}" | tail -n +2 | grep -i 'failed' | wc -l)
if [ ${num_failed_pods} -gt 0 ]; then
printf ${num_failed_pods}" pod(s) failed.\n\n"
Expand Down

0 comments on commit 58948ee

Please sign in to comment.