@@ -29,7 +29,6 @@ import (
29
29
"k8s.io/apimachinery/pkg/util/wait"
30
30
admissionapi "k8s.io/pod-security-admission/api"
31
31
32
- "k8s.io/kubernetes/test/e2e/feature"
33
32
"k8s.io/kubernetes/test/e2e/framework"
34
33
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
35
34
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
@@ -64,15 +63,15 @@ var (
64
63
65
64
// This test verifies that a Pod on each node in a cluster can talk to Pods on every other node without SNAT.
66
65
// We use the [Feature:NoSNAT] tag so that most jobs will skip this test by default.
67
- var _ = common .SIGDescribe ("NoSNAT" , feature . NoSNAT , framework . WithSlow (), func () {
66
+ var _ = common .SIGDescribe ("NoSNAT" , func () {
68
67
f := framework .NewDefaultFramework ("no-snat-test" )
69
68
f .NamespacePodSecurityLevel = admissionapi .LevelPrivileged
70
69
ginkgo .It ("Should be able to send traffic between Pods without SNAT" , func (ctx context.Context ) {
71
70
cs := f .ClientSet
72
71
pc := cs .CoreV1 ().Pods (f .Namespace .Name )
73
72
74
73
ginkgo .By ("creating a test pod on each Node" )
75
- nodes , err := e2enode .GetReadySchedulableNodes (ctx , cs )
74
+ nodes , err := e2enode .GetBoundedReadySchedulableNodes (ctx , cs , 3 )
76
75
framework .ExpectNoError (err )
77
76
gomega .Expect (nodes .Items ).ToNot (gomega .BeEmpty (), "no Nodes in the cluster" )
78
77
0 commit comments