mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Don't count failed pods as "not-ready"
This commit is contained in:
parent
37dc74fa7c
commit
4316ce278f
@ -565,7 +565,12 @@ func waitForAllCaPodsReadyInNamespace(f *framework.Framework, c *client.Client)
|
||||
ready = true
|
||||
}
|
||||
}
|
||||
if !ready {
|
||||
// Failed pods in this context generally mean that they have been
|
||||
// double scheduled onto a node, but then failed a constraint check.
|
||||
if pod.Status.Phase == api.PodFailed {
|
||||
glog.Warningf("Pod has failed: %v", pod)
|
||||
}
|
||||
if !ready && pod.Status.Phase != api.PodFailed {
|
||||
notready = append(notready, pod.Name)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user