mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-20 01:01:22 +00:00
Always check passed podCondition in WaitForPodCondition.
This commit is contained in:
parent
c2aa40ca13
commit
3213e36430
@ -215,10 +215,9 @@ func WaitForPodCondition(c clientset.Interface, ns, podName, desc string, timeou
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
if apierrors.IsNotFound(err) {
|
if apierrors.IsNotFound(err) {
|
||||||
e2elog.Logf("Pod %q in namespace %q not found. Error: %v", podName, ns, err)
|
e2elog.Logf("Pod %q in namespace %q not found. Error: %v", podName, ns, err)
|
||||||
continue
|
} else {
|
||||||
}
|
|
||||||
e2elog.Logf("Get pod %q in namespace %q failed, ignoring for %v. Error: %v", podName, ns, poll, err)
|
e2elog.Logf("Get pod %q in namespace %q failed, ignoring for %v. Error: %v", podName, ns, poll, err)
|
||||||
continue
|
}
|
||||||
}
|
}
|
||||||
// log now so that current pod info is reported before calling `condition()`
|
// log now so that current pod info is reported before calling `condition()`
|
||||||
e2elog.Logf("Pod %q: Phase=%q, Reason=%q, readiness=%t. Elapsed: %v",
|
e2elog.Logf("Pod %q: Phase=%q, Reason=%q, readiness=%t. Elapsed: %v",
|
||||||
|
Loading…
Reference in New Issue
Block a user