Merge pull request #115697 from aojea/lbds

don't run loadbalancer tests on large environments
This commit is contained in:
Kubernetes Prow Robot 2023-02-13 05:43:30 -08:00 committed by GitHub
commit 4933005b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1741,6 +1741,9 @@ func testRollingUpdateLBConnectivityDisruption(ctx context.Context, f *framework
nodeNames := e2edaemonset.SchedulableNodes(ctx, cs, ds)
e2eskipper.SkipUnlessAtLeast(len(nodeNames), 2, "load-balancer rolling update test requires at least 2 schedulable nodes for the DaemonSet")
if len(nodeNames) > 25 {
e2eskipper.Skipf("load-balancer rolling update test skipped for large environments with more than 25 nodes")
}
ginkgo.By(fmt.Sprintf("Creating DaemonSet %q", name))
ds, err := cs.AppsV1().DaemonSets(ns).Create(context.TODO(), ds, metav1.CreateOptions{})