Merge pull request #47136 from smarterclayton/skip_on_not_found

Automatic merge from submit-queue

Skip dynamic configuration of initializers test on alpha disable

Fixes #47133
This commit is contained in:
Kubernetes Submit Queue 2017-06-07 13:49:00 -07:00 committed by GitHub
commit 8f4aacf6d5

View File

@ -127,6 +127,9 @@ var _ = framework.KubeDescribe("Initializers", func() {
},
},
})
if errors.IsNotFound(err) {
framework.Skipf("dynamic configuration of initializers requires the alpha admissionregistration.k8s.io group to be enabled")
}
Expect(err).NotTo(HaveOccurred())
// we must remove the initializer when the test is complete and ensure no pods are pending for that initializer