Merge pull request #3480 from xigang/cleanup/registry-controller

Fix: cleanup ResourceRegistry controller logs
This commit is contained in:
karmada-bot 2023-04-28 14:26:13 +08:00 committed by GitHub
commit db01a125e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {