Fix check for etcd hosts
@@ -90,10 +90,12 @@ func (c *Cluster) SetUpHosts() error {
}
func CheckEtcdHostsChanged(kubeCluster, currentCluster *Cluster) error {
+ if currentCluster != nil {
etcdChanged := hosts.IsHostListChanged(currentCluster.EtcdHosts, kubeCluster.EtcdHosts)
if etcdChanged {
return fmt.Errorf("Adding or removing Etcd nodes is not supported")
}
+ }
return nil
}
