mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 06:59:25 +00:00
Refactor reconcilation
Add role based add/delete for services Use pointers for hosts Consistent log format
This commit is contained in:
@@ -123,7 +123,7 @@ func getStateFromKubernetes(kubeClient *kubernetes.Clientset, kubeConfigPath str
|
||||
}
|
||||
|
||||
func GetK8sVersion(localConfigPath string) (string, error) {
|
||||
logrus.Debugf("[version] Using admin.config to connect to Kubernetes cluster..")
|
||||
logrus.Debugf("[version] Using %s to connect to Kubernetes cluster..", localConfigPath)
|
||||
k8sClient, err := k8s.NewClient(localConfigPath)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Failed to create Kubernetes Client: %v", err)
|
||||
|
Reference in New Issue
Block a user