1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-24 06:27:22 +00:00

Merge pull request #17 from moelsayed/save_state_after_upgrade

Save updated cluster status after upgrade
This commit is contained in:
Hussein Galal 2017-11-16 03:40:03 +02:00 committed by GitHub
commit c59f5e4d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,6 +188,12 @@ func ClusterUpgrade(clusterFile string) (string, string, string, string, error)
if err != nil {
return APIURL, caCrt, clientCert, clientKey, err
}
err = kubeCluster.SaveClusterState(clusterFile)
if err != nil {
return APIURL, caCrt, clientCert, clientKey, err
}
logrus.Infof("Cluster upgraded successfully")
APIURL = fmt.Sprintf("https://" + kubeCluster.ControlPlaneHosts[0].IP + ":6443")