From 363bd4c8ddd99bc6759199e3f9273db7994929ca Mon Sep 17 00:00:00 2001 From: Karol Szwaj Date: Tue, 20 Feb 2024 13:11:09 +0100 Subject: [PATCH] fix: match mergedGateways irKey for ClientTrafficPolicy Signed-off-by: Karol Szwaj --- internal/gatewayapi/clienttrafficpolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gatewayapi/clienttrafficpolicy.go b/internal/gatewayapi/clienttrafficpolicy.go index b6ef8f345fa..97caa87f4cd 100644 --- a/internal/gatewayapi/clienttrafficpolicy.go +++ b/internal/gatewayapi/clienttrafficpolicy.go @@ -290,7 +290,7 @@ func resolveCTPolicyTargetRef(policy *egv1a1.ClientTrafficPolicy, gateways []*Ga func (t *Translator) translateClientTrafficPolicyForListener(policy *egv1a1.ClientTrafficPolicy, l *ListenerContext, xdsIR XdsIRMap, infraIR InfraIRMap, resources *Resources) error { // Find IR - irKey := irStringKey(l.gateway.Namespace, l.gateway.Name) + irKey := t.getIRKey(l.gateway) // It must exist since we've already finished processing the gateways gwXdsIR := xdsIR[irKey]