1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-23 20:38:04 +00:00

Save updated cluster status after upgrade

This commit is contained in:
moelsayed
2017-11-16 03:35:39 +02:00
parent 9e28d35656
commit 304bcfcb55

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")