Skip to content

Commit 3979361

Browse files
authored
Merge pull request #4337 from zac-nixon/main
add support IPv6 tests for Gateway API
2 parents 04e8e9b + c02990a commit 3979361

File tree

8 files changed

+254
-239
lines changed

8 files changed

+254
-239
lines changed

test/e2e/gateway/alb_test_helper.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ func (s *ALBTestStack) DeployHTTP(ctx context.Context, auxiliaryStack *auxiliary
2929
httprs = append(httprs, buildOtherNsRefHttpRoute("other-ns", auxiliaryStack.ns))
3030
}
3131

32+
if f.Options.IPFamily == framework.IPv6 {
33+
v6 := elbv2gw.LoadBalancerIpAddressTypeDualstack
34+
lbConfSpec.IpAddressType = &v6
35+
}
36+
3237
svc := buildServiceSpec()
3338
tgc := buildTargetGroupConfig(defaultTgConfigName, tgConfSpec, svc)
3439
return s.deploy(ctx, f, gwListeners, httprs, []*gwv1.GRPCRoute{}, []*appsv1.Deployment{buildDeploymentSpec(f.Options.TestImageRegistry)}, []*corev1.Service{svc}, lbConfSpec, []*elbv2gw.TargetGroupConfiguration{tgc}, lrConfSpec, secret, readinessGateEnabled)

0 commit comments

Comments
 (0)