Merge pull request #4940 from xyz-li/sa_token

create default token for service account
This commit is contained in:
KubeSphere CI Bot
2022-06-09 11:32:40 +08:00
committed by GitHub
2 changed files with 64 additions and 19 deletions

View File

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