Update the clusterName field when the kubesphere-config configmap is updated
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user