From 50d155f72ab1df0d2598af23363d3d2db1c8fd32 Mon Sep 17 00:00:00 2001 From: xigang Date: Fri, 28 Apr 2023 11:21:59 +0800 Subject: [PATCH] Fix: cleanup ResourceRegistry controller logs Signed-off-by: xigang --- pkg/search/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/search/controller.go b/pkg/search/controller.go index ecc90a46c..788e364e3 100644 --- a/pkg/search/controller.go +++ b/pkg/search/controller.go @@ -410,7 +410,7 @@ func (c *Controller) deleteCluster(obj interface{}) { c.queue.Add(cluster.GetName()) } -// getClusterAndResource returns the cluster and resources from the resourceRegistry object +// getClusters returns the cluster from the resourceRegistry object func (c *Controller) getClusters(affinity policyv1alpha1.ClusterAffinity) []string { clusters := make([]string, 0) lst, err := c.clusterLister.List(labels.Everything()) @@ -426,7 +426,7 @@ func (c *Controller) getClusters(affinity policyv1alpha1.ClusterAffinity) []stri return clusters } -// getClusterAndResource returns the cluster and resources from the resourceRegistry object +// getResources returns the resources from the resourceRegistry object func (c *Controller) getResources(selectors []searchv1alpha1.ResourceSelector) []schema.GroupVersionResource { resources := make([]schema.GroupVersionResource, 0) for _, rs := range selectors {