From 6b9a2f4a89ed3446d80bb8feb41458f63ed7999f Mon Sep 17 00:00:00 2001 From: Jun Xiang Tee Date: Tue, 13 Jun 2017 17:05:54 -0700 Subject: [PATCH] deprecate created-by annotation for e2e test framework --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 0d961e744db..8556d48e9cb 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -604,7 +604,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) }