From f51f6f09e4cf08791d23cd6e8d3354640232eb13 Mon Sep 17 00:00:00 2001 From: Andrey Lebedev Date: Fri, 27 Mar 2026 10:04:09 +0100 Subject: [PATCH] NE-2422: Skip Gateway API tests on dual-stack clusters Dual-stack support for Gateway API is not yet declared, skip the GatewayAPIController tests on AWS dual-stack clusters. Co-Authored-By: Claude Opus 4.6 --- test/extended/router/gatewayapicontroller.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/extended/router/gatewayapicontroller.go b/test/extended/router/gatewayapicontroller.go index 9788525cdcf1..bf8ef8b300b4 100644 --- a/test/extended/router/gatewayapicontroller.go +++ b/test/extended/router/gatewayapicontroller.go @@ -127,8 +127,7 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat g.Skip("Skipping on OKD cluster as OSSM is not available as a community operator") } - // skip non clould platforms since gateway needs LB service - skipGatewayIfNonCloudPlatform(oc) + skipGatewayForUnsupportedPlatform(oc) if !isNoOLMFeatureGateEnabled(oc) { // GatewayAPIController without GatewayAPIWithoutOLM featuregate // relies on OSSM OLM operator. @@ -611,7 +610,10 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat }) }) -func skipGatewayIfNonCloudPlatform(oc *exutil.CLI) { +// skipGatewayForUnsupportedPlatform skips gateway API tests on non-cloud +// platforms (gateway needs LB service) and on dual-stack clusters (dual-stack +// support is not yet declared). +func skipGatewayForUnsupportedPlatform(oc *exutil.CLI) { infra, err := oc.AdminConfigClient().ConfigV1().Infrastructures().Get(context.Background(), "cluster", metav1.GetOptions{}) o.Expect(err).NotTo(o.HaveOccurred()) o.Expect(infra).NotTo(o.BeNil()) @@ -625,6 +627,13 @@ func skipGatewayIfNonCloudPlatform(oc *exutil.CLI) { default: g.Skip(fmt.Sprintf("Skipping on non cloud platform type %q", platformType)) } + + if infra.Status.PlatformStatus.AWS != nil { + ipFamily := infra.Status.PlatformStatus.AWS.IPFamily + if ipFamily == configv1.DualStackIPv4Primary || ipFamily == configv1.DualStackIPv6Primary { + g.Skip("Skipping Gateway API tests on dual-stack cluster") + } + } } func isNoOLMFeatureGateEnabled(oc *exutil.CLI) bool {