deprecate created-by annotation for e2e test framework

This commit is contained in:
Jun Xiang Tee
2017-06-13 17:05:54 -07:00
parent 0a1b7d94b4
commit 6b9a2f4a89

View File

@@ -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)
}