mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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 79e1fb444c)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
1 parent
2ac9c8e64b
commit
7fb7e9dece
1 file changed
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user