Skip to content

Commit d7587e6

Browse files
authored
fix(httproute): update SectionName for HTTPRoute to use wildcard portal (#103)
* fix(httproute): update SectionName for HTTPRoute to use wildcard portal On-behalf-of: @SAP angel.kafazov@sap.com Signed-off-by: Angel Kafazov <akafazov@cst-bg.net> * omit SectionName to match all listeners in the gateway On-behalf-of: @SAP angel.kafazov@sap.com Signed-off-by: Angel Kafazov <akafazov@cst-bg.net> --------- Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
1 parent 2c4f574 commit d7587e6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

internal/controller/httpbindeployment_controller.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,10 @@ func (r *HttpBinDeploymentReconciler) httpRouteForHttpBin(m *orchestratev1alpha1
795795
if fLocalHttpRouteGatewayName != nil && *fLocalHttpRouteGatewayName != "" {
796796
httpRoute.Spec.ParentRefs = []gatewayApi.ParentReference{
797797
{
798-
Group: ptr.To(gatewayApi.Group("gateway.networking.k8s.io")),
799-
Kind: ptr.To(gatewayApi.Kind("Gateway")),
800-
SectionName: ptr.To(gatewayApi.SectionName("websecure")),
801-
Name: gatewayApi.ObjectName(*fLocalHttpRouteGatewayName),
802-
Namespace: ptr.To(gatewayApi.Namespace(*fLocalHttpRouteGatewayNamespace)),
798+
Group: ptr.To(gatewayApi.Group("gateway.networking.k8s.io")),
799+
Kind: ptr.To(gatewayApi.Kind("Gateway")),
800+
Name: gatewayApi.ObjectName(*fLocalHttpRouteGatewayName),
801+
Namespace: ptr.To(gatewayApi.Namespace(*fLocalHttpRouteGatewayNamespace)),
803802
},
804803
}
805804
}

0 commit comments

Comments
 (0)