From cdaeb0599ab6cc9d795a9154657c1cefca85099c Mon Sep 17 00:00:00 2001 From: irbekrm Date: Sat, 12 Mar 2022 16:13:06 +0000 Subject: [PATCH] Removes the creation of the unused test istio GatewayClass Signed-off-by: irbekrm --- test/e2e/framework/BUILD.bazel | 1 - test/e2e/framework/framework.go | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/test/e2e/framework/BUILD.bazel b/test/e2e/framework/BUILD.bazel index f65df90c1..c9f4b7246 100644 --- a/test/e2e/framework/BUILD.bazel +++ b/test/e2e/framework/BUILD.bazel @@ -40,7 +40,6 @@ go_library( "@io_k8s_component_base//featuregate:go_default_library", "@io_k8s_kube_aggregator//pkg/apis/apiregistration/v1:go_default_library", "@io_k8s_sigs_controller_runtime//pkg/client:go_default_library", - "@io_k8s_sigs_gateway_api//apis/v1alpha2:go_default_library", "@io_k8s_sigs_gateway_api//pkg/client/clientset/gateway/versioned:go_default_library", ], ) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 41cc4819f..d15490b8c 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -33,7 +33,6 @@ import ( "k8s.io/client-go/rest" apireg "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" crclient "sigs.k8s.io/controller-runtime/pkg/client" - gwapiv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2" gwapi "sigs.k8s.io/gateway-api/pkg/client/clientset/gateway/versioned" v1 "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1" @@ -143,16 +142,6 @@ func (f *Framework) BeforeEach() { f.GWClientSet, err = gwapi.NewForConfig(kubeConfig) Expect(err).NotTo(HaveOccurred()) - By("Creating a gateway-api class for istio") - f.GWClientSet.GatewayV1alpha2().GatewayClasses().Create(context.Background(), &gwapiv1alpha2.GatewayClass{ - ObjectMeta: metav1.ObjectMeta{ - Name: "istio", - }, - Spec: gwapiv1alpha2.GatewayClassSpec{ - ControllerName: "istio.io/gateway-controller", - }, - }, metav1.CreateOptions{}) - By("Building a namespace api object") f.Namespace, err = f.CreateKubeNamespace(f.BaseName) Expect(err).NotTo(HaveOccurred())