Skip to content

Commit c02990a

Browse files
committed
add support IPv6 tests for Gateway API
1 parent 7cba312 commit c02990a

File tree

8 files changed

+257
-242
lines changed

8 files changed

+257
-242
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, readinessGateEnabled)

0 commit comments

Comments
 (0)