Fix: cleanup ResourceRegistry controller logs
Signed-off-by: xigang <wangxigang2014@gmail.com>
This commit is contained in:
parent
5fb4680ea7
commit
50d155f72a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue