Skip to content

Commit

Permalink
bug: completed should be considered an ok state (#4846)
Browse files Browse the repository at this point in the history
when verifying if all pods in the kurl namespace are in good shape we
were considering pods in completed state as pods not healthy. this
commit addresses this.
  • Loading branch information
ricardomaraschini authored Sep 27, 2023
1 parent 853e6ed commit a1f3e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ function check_for_running_pods() {
continue
fi

if [ "$status" != "Running" ] && [ "$status" != "Succeeded" ]; then
if [ "$status" != "Running" ] && [ "$status" != "Succeeded" ] && [ "$status" != "Completed" ]; then
unhealthy_podnames="$unhealthy_podnames $pod"
continue
fi
Expand Down

0 comments on commit a1f3e22

Please sign in to comment.