Merge pull request #26694 from mfanjie/extract_func_for_build_cluster_config
Automatic merge from submit-queue
change clientset of service controller to versioned
1. create a public function BuildClusterConfig() to build cluster config so that service controller can reuse
2. Current implement always requires POD_NAMESPACE to be set and always require federation control plane be placed in k8s cluster. Per my understanding if use did not provide secretRef and want to use unsecure connection, then we should not call KubeconfigGetterForCluster(), instead of we should create the clientset by clientcmd.BuildConfigFromFlags().
@nikhiljindal please correct me if I am wrong for bullet 2.
Showing
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment