Skip dynamic configuration of initializers test on alpha disable

This commit is contained in:
Clayton Coleman 2017-06-07 14:00:34 -04:00
parent 335794674f
commit a48ba2873b
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3

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