From e80c41d6b08f2fb2e17ec72c3b1a30b54dd9abc4 Mon Sep 17 00:00:00 2001 From: zirain Date: Fri, 19 Jul 2024 10:39:21 +0800 Subject: [PATCH] validate for reconcile should check reference from EnvoyProxy (#3895) validateEndpointSliceForReconcile should check reference from EnvoyProxy Signed-off-by: zirain --- internal/provider/kubernetes/predicates.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/provider/kubernetes/predicates.go b/internal/provider/kubernetes/predicates.go index 0e0f984c69c..e64c08619db 100644 --- a/internal/provider/kubernetes/predicates.go +++ b/internal/provider/kubernetes/predicates.go @@ -312,6 +312,10 @@ func (r *gatewayAPIReconciler) validateBackendForReconcile(obj client.Object) bo return true } + if r.isEnvoyProxyReferencingBackend(&nsName) { + return true + } + return r.isEnvoyExtensionPolicyReferencingBackend(&nsName) } @@ -428,6 +432,10 @@ func (r *gatewayAPIReconciler) validateEndpointSliceForReconcile(obj client.Obje return true } + if r.isEnvoyProxyReferencingBackend(&nsName) { + return true + } + return r.isEnvoyExtensionPolicyReferencingBackend(&nsName) }