Skip LB test for IPv6 clusters

This commit is contained in:
Ciprian Hacman 2021-12-13 11:43:06 +02:00
parent ba200841fd
commit 574f788711
2 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,7 @@ var _ = SIGDescribe("Deployment", func() {
})
ginkgo.It("should not disrupt a cloud load-balancer's connectivity during rollout", func() {
e2eskipper.SkipUnlessProviderIs("aws", "azure", "gce", "gke")
e2eskipper.SkipIfIPv6("aws")
nodes, err := e2enode.GetReadySchedulableNodes(c)
framework.ExpectNoError(err)
e2eskipper.SkipUnlessAtLeast(len(nodes.Items), 3, "load-balancer test requires at least 3 schedulable nodes")

View File

@ -313,3 +313,10 @@ func SkipUnlessComponentRunsAsPodsAndClientCanDeleteThem(componentName string, c
skipInternalf(1, "Skipped because client failed to delete component:%s pod, err:%v", componentName, err)
}
}
// SkipIfIPv6 skips if the cluster IP family is IPv6 and the provider is included in the unsupportedProviders.
func SkipIfIPv6(unsupportedProviders ...string) {
if framework.TestContext.ClusterIsIPv6() && framework.ProviderIs(unsupportedProviders...) {
skipInternalf(1, "Not supported for IPv6 clusters and providers %v (found %s)", unsupportedProviders, framework.TestContext.Provider)
}
}