Always check passed podCondition in WaitForPodCondition.

This commit is contained in:
Kermit Alexander 2021-03-17 23:14:29 +00:00
parent c2aa40ca13
commit 3213e36430

View File

@ -215,10 +215,9 @@ func WaitForPodCondition(c clientset.Interface, ns, podName, desc string, timeou
if err != nil {
if apierrors.IsNotFound(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()`
e2elog.Logf("Pod %q: Phase=%q, Reason=%q, readiness=%t. Elapsed: %v",