Update the clusterName field when the kubesphere-config configmap is updated

This commit is contained in:
Xinzhao Xu
2022-03-01 16:22:02 +08:00
parent e966a1da6f
commit 7ae117cbbd
2 changed files with 38 additions and 1 deletions

View File

@@ -456,7 +456,9 @@ func addAllControllers(mgr manager.Manager, client k8s.Client, informerFactory i
kubesphereInformer.Cluster().V1alpha1().Clusters(),
client.KubeSphere().ClusterV1alpha1().Clusters(),
cmOptions.MultiClusterOptions.ClusterControllerResyncPeriod,
cmOptions.MultiClusterOptions.HostClusterName)
cmOptions.MultiClusterOptions.HostClusterName,
kubernetesInformer.Core().V1().ConfigMaps(),
)
addController(mgr, "cluster", clusterController)
}
}