From 7fb7e9dece2b9f5025d8aa9450632d5f0ede341e Mon Sep 17 00:00:00 2001 From: 7487 <1042653432@qq.com> Date: Thu, 8 Oct 2026 20:22:39 +0800 Subject: [PATCH] fix(gateway): copy allowed routes for the edge listener The edge listener retained the renderer's local allowed-routes value, while the apex and child listeners already owned independent copies. Give edge the same ownership so later changes to the local value cannot reach a rendered listener. The rendered Gateway remains unchanged. Fixes #4118 Assisted-by: LLM Signed-off-by: 7487 <1042653432@qq.com> (cherry picked from commit 79e1fb444c301330aef363afae263db36f2dc846) Signed-off-by: Myasnikov Daniil --- internal/controller/tenantgateway/reconciler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/tenantgateway/reconciler.go b/internal/controller/tenantgateway/reconciler.go index b53998051..cedb3732d 100644 --- a/internal/controller/tenantgateway/reconciler.go +++ b/internal/controller/tenantgateway/reconciler.go @@ -1432,7 +1432,7 @@ func (r *Reconciler) renderGateway(tgw *gatewayv1alpha1.TenantGateway, dynHostna Port: 80, Protocol: gatewayv1.HTTPProtocolType, Hostname: &wildcardHost, - AllowedRoutes: edgeAllowedRoutes, + AllowedRoutes: edgeAllowedRoutes.DeepCopy(), }, gatewayv1.Listener{ Name: "edge-apex",