Skip to content

Commit f1dd7c8

Browse files
authored
Merge pull request #4485 from wweiwei-li/aga-e2e
Add basic aga controller e2e tests
2 parents 9779b80 + e1edc2c commit f1dd7c8

26 files changed

+2281
-94
lines changed

docs/guide/globalaccelerator/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The AWS Global Accelerator Controller is built into the AWS Load Balancer Contro
4040
- **Install the GlobalAccelerator Custom Resource Definition (CRD)**:
4141

4242
```bash
43-
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/main/config/crd/aga/bases/aga.k8s.aws_globalaccelerators.yaml
43+
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/refs/heads/main/config/crd/aga/aga.k8s.aws_globalaccelerators.yaml
4444
```
4545

4646
Verify the CRD is installed:

test/e2e/gateway/alb_instance_target_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
7272
},
7373
}
7474
auxiliaryStack = newAuxiliaryResourceStack(ctx, tf, tgSpec, true)
75-
httpr := buildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
75+
httpr := BuildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
7676
By("deploying stack", func() {
7777
err := stack.DeployHTTP(ctx, auxiliaryStack, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
7878
Expect(err).NotTo(HaveOccurred())
@@ -228,7 +228,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
228228
Protocol: gwv1.HTTPProtocolType,
229229
},
230230
}
231-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndTargetGroupWeights, nil)
231+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndTargetGroupWeights, nil)
232232

233233
By("deploying stack", func() {
234234
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -448,7 +448,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
448448
}
449449

450450
// HTTPRoute with incompatible hostname (should only attach to listener-no-hostname)
451-
httpr := buildHTTPRoute([]string{"test.com"}, []gwv1.HTTPRouteRule{}, nil)
451+
httpr := BuildHTTPRoute([]string{"test.com"}, []gwv1.HTTPRouteRule{}, nil)
452452

453453
By("deploying stack", func() {
454454
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -482,7 +482,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
482482
Protocol: gwv1.HTTPProtocolType,
483483
},
484484
}
485-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndFilters, nil)
485+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndFilters, nil)
486486

487487
By("deploying stack", func() {
488488
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -562,7 +562,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
562562
},
563563
}
564564

565-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMultiMatchesInSingleRule, nil)
565+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMultiMatchesInSingleRule, nil)
566566

567567
By("deploying stack", func() {
568568
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -760,7 +760,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
760760
Hostname: (*gwv1.Hostname)(awssdk.String(testHostname)),
761761
},
762762
}
763-
httpr := buildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
763+
httpr := BuildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
764764
By("deploying stack", func() {
765765
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
766766
Expect(err).NotTo(HaveOccurred())
@@ -865,7 +865,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
865865
Hostname: (*gwv1.Hostname)(awssdk.String(testHostname)),
866866
},
867867
}
868-
httpr := buildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
868+
httpr := BuildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
869869
By("deploying stack", func() {
870870
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
871871
Expect(err).NotTo(HaveOccurred())
@@ -1010,7 +1010,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
10101010
},
10111011
},
10121012
}
1013-
httpr := buildHTTPRoute([]string{testHostname}, httpRouteRules, &gwListeners[0].Name)
1013+
httpr := BuildHTTPRoute([]string{testHostname}, httpRouteRules, &gwListeners[0].Name)
10141014

10151015
By("deploying stack", func() {
10161016
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, false)
@@ -1217,7 +1217,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
12171217
},
12181218
},
12191219
}
1220-
httpr := buildHTTPRoute([]string{testHostname}, httpRouteRules, &gwListeners[0].Name)
1220+
httpr := BuildHTTPRoute([]string{testHostname}, httpRouteRules, &gwListeners[0].Name)
12211221

12221222
By("deploying stack", func() {
12231223
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, oidcSecret, false)
@@ -1388,7 +1388,7 @@ var _ = Describe("test k8s alb gateway using instance targets reconciled by the
13881388
Hostname: (*gwv1.Hostname)(awssdk.String(testHostname)),
13891389
},
13901390
}
1391-
httpr := buildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
1391+
httpr := BuildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
13921392

13931393
By("deploying stack", func() {
13941394
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)

test/e2e/gateway/alb_ip_target_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
7272
},
7373
}
7474
auxiliaryStack = newAuxiliaryResourceStack(ctx, tf, tgSpec, true)
75-
httpr := buildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
75+
httpr := BuildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
7676
By("deploying stack", func() {
7777
err := stack.DeployHTTP(ctx, auxiliaryStack, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
7878
Expect(err).NotTo(HaveOccurred())
@@ -217,7 +217,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
217217
},
218218
}
219219

220-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndTargetGroupWeights, nil)
220+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndTargetGroupWeights, nil)
221221
By("deploying stack", func() {
222222
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
223223
Expect(err).NotTo(HaveOccurred())
@@ -432,7 +432,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
432432
},
433433
}
434434

435-
httpr := buildHTTPRoute([]string{"test.com"}, []gwv1.HTTPRouteRule{}, nil)
435+
httpr := BuildHTTPRoute([]string{"test.com"}, []gwv1.HTTPRouteRule{}, nil)
436436

437437
By("deploying stack", func() {
438438
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -466,7 +466,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
466466
Protocol: gwv1.HTTPProtocolType,
467467
},
468468
}
469-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndFilters, nil)
469+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMatchesAndFilters, nil)
470470

471471
By("deploying stack", func() {
472472
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -545,7 +545,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
545545
},
546546
}
547547

548-
httpr := buildHTTPRoute([]string{}, httpRouteRuleWithMultiMatchesInSingleRule, nil)
548+
httpr := BuildHTTPRoute([]string{}, httpRouteRuleWithMultiMatchesInSingleRule, nil)
549549

550550
By("deploying stack", func() {
551551
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -729,7 +729,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
729729
}
730730

731731
lrcSpec := elbv2gw.ListenerRuleConfigurationSpec{}
732-
httpr := buildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
732+
httpr := BuildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, &gwListeners[0].Name)
733733
httpr.Spec.Rules[0].Filters = []gwv1.HTTPRouteFilter{
734734
{
735735
Type: gwv1.HTTPRouteFilterURLRewrite,
@@ -877,7 +877,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
877877
},
878878
}
879879

880-
httpr := buildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
880+
httpr := BuildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
881881

882882
By("deploying stack", func() {
883883
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -989,7 +989,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
989989
},
990990
}
991991

992-
httpr := buildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
992+
httpr := BuildHTTPRoute([]string{testHostname}, []gwv1.HTTPRouteRule{}, nil)
993993

994994
By("deploying stack", func() {
995995
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)
@@ -1141,7 +1141,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
11411141
},
11421142
},
11431143
}
1144-
httpr := buildHTTPRoute([]string{testHostname}, httpRouteRules, nil)
1144+
httpr := BuildHTTPRoute([]string{testHostname}, httpRouteRules, nil)
11451145

11461146
By("deploying stack", func() {
11471147
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, false)
@@ -1351,7 +1351,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
13511351
},
13521352
},
13531353
}
1354-
httpr := buildHTTPRoute([]string{testHostname}, httpRouteRules, nil)
1354+
httpr := BuildHTTPRoute([]string{testHostname}, httpRouteRules, nil)
13551355

13561356
By("deploying stack", func() {
13571357
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, oidcSecret, false)
@@ -1520,7 +1520,7 @@ var _ = Describe("test k8s alb gateway using ip targets reconciled by the aws lo
15201520
},
15211521
}
15221522

1523-
httpr := buildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, nil)
1523+
httpr := BuildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, nil)
15241524

15251525
By("deploying stack", func() {
15261526
err := stack.DeployHTTP(ctx, nil, tf, gwListeners, []*gwv1.HTTPRoute{httpr}, lbcSpec, tgSpec, lrcSpec, nil, true)

test/e2e/gateway/alb_nlb_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ package gateway
33
import (
44
"context"
55
"fmt"
6+
"strings"
7+
"time"
8+
69
. "github.com/onsi/ginkgo/v2"
710
. "github.com/onsi/gomega"
811
elbv2gw "sigs.k8s.io/aws-load-balancer-controller/apis/gateway/v1beta1"
912
"sigs.k8s.io/aws-load-balancer-controller/test/framework/http"
1013
"sigs.k8s.io/aws-load-balancer-controller/test/framework/verifier"
1114
gwv1 "sigs.k8s.io/gateway-api/apis/v1"
1215
gwbeta1 "sigs.k8s.io/gateway-api/apis/v1beta1"
13-
"strings"
14-
"time"
1516
)
1617

1718
var _ = Describe("test combined ALB and NLB gateways with HTTPRoute and TCPRoute", func() {
@@ -94,7 +95,7 @@ var _ = Describe("test combined ALB and NLB gateways with HTTPRoute and TCPRoute
9495
}
9596

9697
// HTTPRoute for ALB
97-
httpr := buildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, nil)
98+
httpr := BuildHTTPRoute([]string{}, []gwv1.HTTPRouteRule{}, nil)
9899

99100
By("deploying ALB stack", func() {
100101
err := albStack.DeployHTTP(ctx, nil, tf, albGwListeners, []*gwv1.HTTPRoute{httpr}, albLbcSpec, tgSpec, lrcSpec, nil, true)

test/e2e/gateway/alb_resource_stack.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package gateway
33
import (
44
"context"
55
"fmt"
6+
67
appsv1 "k8s.io/api/apps/v1"
78
corev1 "k8s.io/api/core/v1"
89
rbac "k8s.io/api/rbac/v1"
@@ -64,9 +65,11 @@ func (s *albResourceStack) Deploy(ctx context.Context, f *framework.Framework) e
6465
})
6566
}
6667

67-
func (s *albResourceStack) Cleanup(ctx context.Context, f *framework.Framework) {
68-
s.commonStack.Cleanup(ctx, f)
69-
s.deleteOIDCSecretWithRBAC(ctx, f)
68+
func (s *albResourceStack) Cleanup(ctx context.Context, f *framework.Framework) error {
69+
if err := s.commonStack.Cleanup(ctx, f); err != nil {
70+
return err
71+
}
72+
return s.deleteOIDCSecretWithRBAC(ctx, f)
7073
}
7174

7275
func (s *albResourceStack) GetLoadBalancerIngressHostname() string {
@@ -77,6 +80,10 @@ func (s *albResourceStack) getListenersPortMap() map[string]string {
7780
return s.commonStack.getListenersPortMap()
7881
}
7982

83+
func (s *albResourceStack) GetNamespace() string {
84+
return s.commonStack.ns.Name
85+
}
86+
8087
func (s *albResourceStack) waitUntilDeploymentReady(ctx context.Context, f *framework.Framework) error {
8188
return waitUntilDeploymentReady(ctx, f, s.commonStack.dps)
8289
}

test/e2e/gateway/alb_test_helper.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,18 @@ func (s *ALBTestStack) deploy(ctx context.Context, f *framework.Framework, gwLis
7373
return s.albResourceStack.Deploy(ctx, f)
7474
}
7575

76-
func (s *ALBTestStack) Cleanup(ctx context.Context, f *framework.Framework) {
77-
s.albResourceStack.Cleanup(ctx, f)
76+
func (s *ALBTestStack) Cleanup(ctx context.Context, f *framework.Framework) error {
77+
return s.albResourceStack.Cleanup(ctx, f)
7878
}
7979

8080
func (s *ALBTestStack) GetLoadBalancerIngressHostName() string {
8181
return s.albResourceStack.GetLoadBalancerIngressHostname()
8282
}
8383

84+
func (s *ALBTestStack) GetNamespace() string {
85+
return s.albResourceStack.GetNamespace()
86+
}
87+
8488
func (s *ALBTestStack) GetWorkerNodes(ctx context.Context, f *framework.Framework) ([]corev1.Node, error) {
8589
allNodes := &corev1.NodeList{}
8690
err := f.K8sClient.List(ctx, allNodes)

test/e2e/gateway/common_resource_stack.go

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ func (s *commonResourceStack) Deploy(ctx context.Context, f *framework.Framework
6666
v.Namespace = s.ns.Name
6767
}
6868

69-
for _, v := range s.tgcs {
70-
v.Namespace = s.ns.Name
69+
if s.tgcs != nil {
70+
for _, v := range s.tgcs {
71+
v.Namespace = s.ns.Name
72+
}
7173
}
7274

73-
for _, v := range s.lrcs {
74-
v.Namespace = s.ns.Name
75+
if s.lrcs != nil {
76+
for _, v := range s.lrcs {
77+
v.Namespace = s.ns.Name
78+
}
7579
}
7680

7781
s.gw.Namespace = s.ns.Name
@@ -120,9 +124,11 @@ func (s *commonResourceStack) Deploy(ctx context.Context, f *framework.Framework
120124
return nil
121125
}
122126

123-
func (s *commonResourceStack) Cleanup(ctx context.Context, f *framework.Framework) {
124-
_ = deleteNamespace(ctx, f, s.ns)
125-
_ = deleteGatewayClass(ctx, f, s.gwc)
127+
func (s *commonResourceStack) Cleanup(ctx context.Context, f *framework.Framework) error {
128+
if err := deleteNamespace(ctx, f, s.ns); err != nil {
129+
return err
130+
}
131+
return deleteGatewayClass(ctx, f, s.gwc)
126132
}
127133

128134
func (s *commonResourceStack) GetLoadBalancerIngressHostname() string {

test/e2e/gateway/nlb_resource_stack.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package gateway
22

33
import (
44
"context"
5+
56
appsv1 "k8s.io/api/apps/v1"
67
corev1 "k8s.io/api/core/v1"
78
elbv2gw "sigs.k8s.io/aws-load-balancer-controller/apis/gateway/v1beta1"
@@ -58,8 +59,8 @@ func (s *nlbResourceStack) Deploy(ctx context.Context, f *framework.Framework) e
5859
})
5960
}
6061

61-
func (s *nlbResourceStack) Cleanup(ctx context.Context, f *framework.Framework) {
62-
s.commonStack.Cleanup(ctx, f)
62+
func (s *nlbResourceStack) Cleanup(ctx context.Context, f *framework.Framework) error {
63+
return s.commonStack.Cleanup(ctx, f)
6364
}
6465

6566
func (s *nlbResourceStack) GetLoadBalancerIngressHostname() string {
@@ -74,6 +75,10 @@ func (s *nlbResourceStack) waitUntilDeploymentReady(ctx context.Context, f *fram
7475
return waitUntilDeploymentReady(ctx, f, s.commonStack.dps)
7576
}
7677

78+
func (s *nlbResourceStack) GetNamespace() string {
79+
return s.commonStack.ns.Name
80+
}
81+
7782
func (s *nlbResourceStack) createTCPRoutes(ctx context.Context, f *framework.Framework) error {
7883
for _, tcpr := range s.tcprs {
7984
f.Logger.Info("creating tcp route", "tcpr", k8s.NamespacedName(tcpr))

test/e2e/gateway/nlb_test_helper.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,18 @@ func (s *NLBTestStack) CreateFENLBReferenceGrant(ctx context.Context, f *framewo
316316
return refGrant, nil
317317
}
318318

319-
func (s *NLBTestStack) Cleanup(ctx context.Context, f *framework.Framework) {
320-
s.nlbResourceStack.Cleanup(ctx, f)
319+
func (s *NLBTestStack) Cleanup(ctx context.Context, f *framework.Framework) error {
320+
return s.nlbResourceStack.Cleanup(ctx, f)
321321
}
322322

323323
func (s *NLBTestStack) GetLoadBalancerIngressHostName() string {
324324
return s.nlbResourceStack.GetLoadBalancerIngressHostname()
325325
}
326326

327+
func (s *NLBTestStack) GetNamespace() string {
328+
return s.nlbResourceStack.GetNamespace()
329+
}
330+
327331
func (s *NLBTestStack) GetWorkerNodes(ctx context.Context, f *framework.Framework) ([]corev1.Node, error) {
328332
allNodes := &corev1.NodeList{}
329333
err := f.K8sClient.List(ctx, allNodes)

test/e2e/gateway/shared_resource_definitions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ func buildUDPRoute(sectionName string) *gwalpha2.UDPRoute {
437437
return udpr
438438
}
439439

440-
func buildHTTPRoute(hostnames []string, rules []gwv1.HTTPRouteRule, sectionName *gwv1.SectionName) *gwv1.HTTPRoute {
440+
func BuildHTTPRoute(hostnames []string, rules []gwv1.HTTPRouteRule, sectionName *gwv1.SectionName) *gwv1.HTTPRoute {
441441
routeName := fmt.Sprintf("%v-%v", defaultName, utils.RandomDNS1123Label(6))
442442
httpr := &gwv1.HTTPRoute{
443443
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)