mirror of
https://github.com/rancher/rke.git
synced 2025-09-23 12:28:15 +00:00
Save updated cluster status after upgrade
This commit is contained in:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user