mirror of
https://github.com/rancher/rke.git
synced 2025-06-24 14:31:59 +00:00
Merge pull request #17 from moelsayed/save_state_after_upgrade
Save updated cluster status after upgrade
This commit is contained in:
commit
c59f5e4d07
@ -188,6 +188,12 @@ func ClusterUpgrade(clusterFile string) (string, string, string, string, error)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return APIURL, caCrt, clientCert, clientKey, err
|
return APIURL, caCrt, clientCert, clientKey, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = kubeCluster.SaveClusterState(clusterFile)
|
||||||
|
if err != nil {
|
||||||
|
return APIURL, caCrt, clientCert, clientKey, err
|
||||||
|
}
|
||||||
|
|
||||||
logrus.Infof("Cluster upgraded successfully")
|
logrus.Infof("Cluster upgraded successfully")
|
||||||
|
|
||||||
APIURL = fmt.Sprintf("https://" + kubeCluster.ControlPlaneHosts[0].IP + ":6443")
|
APIURL = fmt.Sprintf("https://" + kubeCluster.ControlPlaneHosts[0].IP + ":6443")
|
||||||
|
Loading…
Reference in New Issue
Block a user