Merge pull request #4679 from iawia002/cluster-name

Set the name of the current cluster into the kubesphere-config configmap
This commit is contained in:
KubeSphere CI Bot
2022-03-07 13:22:11 +08:00
committed by GitHub
7 changed files with 123 additions and 46 deletions

View File

@@ -492,7 +492,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)
}
}