Merge pull request #117785 from danilo-gemoli/feat/e2e-net-flags

[E2E] Don't use Nodes.ExternalIPs to verify the NodePorts connectivity
This commit is contained in:
Kubernetes Prow Robot 2023-05-04 08:28:45 -07:00 committed by GitHub
commit f9340f3cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1020,7 +1020,7 @@ var _ = common.SIGDescribe("Services", func() {
ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns) ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns)
jig := e2eservice.NewTestJig(cs, ns, serviceName) jig := e2eservice.NewTestJig(cs, ns, serviceName)
jig.ExternalIPs = true jig.ExternalIPs = false
servicePort := 8080 servicePort := 8080
tcpService, err := jig.CreateTCPServiceWithPort(ctx, nil, int32(servicePort)) tcpService, err := jig.CreateTCPServiceWithPort(ctx, nil, int32(servicePort))
framework.ExpectNoError(err) framework.ExpectNoError(err)
@ -1090,7 +1090,7 @@ var _ = common.SIGDescribe("Services", func() {
ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns) ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns)
jig := e2eservice.NewTestJig(cs, ns, serviceName) jig := e2eservice.NewTestJig(cs, ns, serviceName)
jig.ExternalIPs = true jig.ExternalIPs = false
servicePort := 8080 servicePort := 8080
svc, err := jig.CreateTCPServiceWithPort(ctx, nil, int32(servicePort)) svc, err := jig.CreateTCPServiceWithPort(ctx, nil, int32(servicePort))
framework.ExpectNoError(err) framework.ExpectNoError(err)
@ -1312,7 +1312,7 @@ var _ = common.SIGDescribe("Services", func() {
} }
jig := e2eservice.NewTestJig(cs, ns, serviceName) jig := e2eservice.NewTestJig(cs, ns, serviceName)
jig.ExternalIPs = true jig.ExternalIPs = false
ginkgo.By("creating service " + serviceName + " with type=clusterIP in namespace " + ns) ginkgo.By("creating service " + serviceName + " with type=clusterIP in namespace " + ns)
clusterIPService, err := jig.CreateTCPService(ctx, func(svc *v1.Service) { clusterIPService, err := jig.CreateTCPService(ctx, func(svc *v1.Service) {
@ -1344,7 +1344,7 @@ var _ = common.SIGDescribe("Services", func() {
serviceName := "nodeport-update-service" serviceName := "nodeport-update-service"
ns := f.Namespace.Name ns := f.Namespace.Name
jig := e2eservice.NewTestJig(cs, ns, serviceName) jig := e2eservice.NewTestJig(cs, ns, serviceName)
jig.ExternalIPs = true jig.ExternalIPs = false
ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns) ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP in namespace " + ns)
tcpService, err := jig.CreateTCPService(ctx, nil) tcpService, err := jig.CreateTCPService(ctx, nil)