Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore failed pods in tests because of graceful node shutdown for Kubernetes 1.22+ #679

Merged
merged 2 commits into from
Mar 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove duplicated if
  • Loading branch information
pkosiec committed Mar 21, 2022
commit 1b08099e7d7b8efa54c4670eb6b335c06754bce6
4 changes: 1 addition & 3 deletions test/e2e/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ func podRunningAndReadyOrFinished(pod *v1.Pod) bool {
if isAffectedByNodeShutdown(pod.Status) {
return true
}
if strings.EqualFold(pod.Status.Reason, "Shutdown") {
return true
}

log("The status of Pod %s/%s is %s, waiting for it to be Running (with Ready = true)", pod.Namespace, pod.Name, pod.Status.Phase)
return false
}
Expand Down