From 974b05a04d7d48e48f5f5a6212ba38a7c6e0a9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Thu, 3 Oct 2024 16:04:50 +0200 Subject: [PATCH] fix: fix SNI index used in watch (#693) --- controller/konnect/watch_kongsni.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/konnect/watch_kongsni.go b/controller/konnect/watch_kongsni.go index 57b176687..9e8218e6c 100644 --- a/controller/konnect/watch_kongsni.go +++ b/controller/konnect/watch_kongsni.go @@ -76,7 +76,7 @@ func enqueueKongSNIForKongCertificate( sniList := configurationv1alpha1.KongSNIList{} if err := cl.List(ctx, &sniList, client.InNamespace(cert.Namespace), client.MatchingFields{ - IndexFieldKongPluginBindingKongServiceReference: cert.Name, + IndexFieldKongSNIOnCertificateRefNmae: cert.Name, }, ); err != nil { return nil