From 098b77fb4c31960165c5193702bba9b25db1c2e0 Mon Sep 17 00:00:00 2001 From: LiHui Date: Thu, 9 Jun 2022 11:13:56 +0800 Subject: [PATCH] add key to queue --- pkg/controller/cluster/cluster_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/cluster/cluster_controller.go b/pkg/controller/cluster/cluster_controller.go index c05e04a93..3ac42dfb1 100644 --- a/pkg/controller/cluster/cluster_controller.go +++ b/pkg/controller/cluster/cluster_controller.go @@ -297,10 +297,10 @@ func (c *clusterController) resyncClusters() error { } for _, cluster := range clusters { - if err = c.syncCluster(cluster.Name); err != nil { - klog.Warningf("failed to sync cluster %s: %s", cluster.Name, err) - } + key, _ := cache.MetaNamespaceKeyFunc(cluster) + c.queue.Add(key) } + return nil }