From 304bcfcb55d91c39296c64a2694703e73c7a9bc9 Mon Sep 17 00:00:00 2001 From: moelsayed Date: Thu, 16 Nov 2017 03:35:39 +0200 Subject: [PATCH] Save updated cluster status after upgrade --- cmd/cluster.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/cluster.go b/cmd/cluster.go index 6f18a620..1db97c31 100644 --- a/cmd/cluster.go +++ b/cmd/cluster.go @@ -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")