Merge pull request #104917 from vinayakankugoyal/e2e

Skip externalips service tests if admission controller to deny externalip services is enabled.
This commit is contained in:
Kubernetes Prow Robot 2021-09-10 19:08:06 -07:00 committed by GitHub
commit 6b21e064be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1214,6 +1214,9 @@ var _ = common.SIGDescribe("Services", func() {
{Port: 80, Name: "http", Protocol: v1.ProtocolTCP, TargetPort: intstr.FromInt(9376)},
}
})
if err != nil && strings.Contains(err.Error(), "Use of external IPs is denied by admission control") {
e2eskipper.Skipf("Admission controller to deny services with external IPs is enabled - skip.")
}
framework.ExpectNoError(err)
err = jig.CreateServicePods(2)
framework.ExpectNoError(err)