From cd6a81807925bd77700130a8f85fe83127201a18 Mon Sep 17 00:00:00 2001 From: qicz Date: Tue, 22 Oct 2024 16:36:35 +0800 Subject: [PATCH] ignore svc Signed-off-by: qicz --- internal/provider/kubernetes/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/kubernetes/controller.go b/internal/provider/kubernetes/controller.go index 7feda6aa9662..91e46e481ed5 100644 --- a/internal/provider/kubernetes/controller.go +++ b/internal/provider/kubernetes/controller.go @@ -361,10 +361,10 @@ func (r *gatewayAPIReconciler) processBackendRefs(ctx context.Context, gwcResour resourceMappings.allAssociatedNamespaces.Insert(service.Namespace) if !resourceMappings.allAssociatedServices.Has(utils.NamespacedName(service).String()) { resourceMappings.allAssociatedServices.Insert(utils.NamespacedName(service).String()) - gwcResource.Services = append(gwcResource.Services, service) - r.log.Info("added Service to resource tree", "namespace", string(*backendRef.Namespace), - "name", string(backendRef.Name)) } + gwcResource.Services = append(gwcResource.Services, service) + r.log.Info("added Service to resource tree", "namespace", string(*backendRef.Namespace), + "name", string(backendRef.Name)) } endpointSliceLabelKey = discoveryv1.LabelServiceName