From 51d950692cae963d497809e7e36cdeefbe36e184 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Wed, 7 Nov 2018 16:14:57 +0000 Subject: [PATCH] Update pod started checker to tolerate PodCompleted Signed-off-by: James Munnelly --- test/e2e/framework/helper/pod_start.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/framework/helper/pod_start.go b/test/e2e/framework/helper/pod_start.go index 340011053..a3ed90404 100644 --- a/test/e2e/framework/helper/pod_start.go +++ b/test/e2e/framework/helper/pod_start.go @@ -63,6 +63,10 @@ func (h *Helper) WaitForAllPodsRunningInNamespaceTimeout(ns string, timeout time errs = append(errs, fmt.Sprintf("Pod %q not ready (no Ready condition)", p.Name)) continue } + if c.Reason == "PodCompleted" { + Logf("Pod %q has Completed, assuming it is ready/expected", p.Name) + continue + } // This pod does not have the ready condition set to True if c.Status != corev1.ConditionTrue { errs = append(errs, fmt.Sprintf("Pod %q not ready: %s", p.Name, c.String()))