diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 24b2b8721f5..91099ac7854 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -605,7 +605,7 @@ func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedN notReady++ badPods = append(badPods, pod) default: - if _, ok := pod.Annotations[v1.CreatedByAnnotation]; !ok { + if controller.GetControllerOf(&pod) == nil { Logf("Pod %s is Failed, but it's not controlled by a controller", pod.ObjectMeta.Name) badPods = append(badPods, pod) }