1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 06:56:29 +00:00

Remove ignore-upgrade label from zero downtime upgrade

This commit is contained in:
rajashree
2020-03-10 23:36:17 -07:00
parent 259bafc27d
commit 6b25bcf3e0
5 changed files with 15 additions and 75 deletions

View File

@@ -163,7 +163,6 @@ func ClusterUp(ctx context.Context, dialersOptions hosts.DialersOptions, flags c
kubeCluster.NewHosts = newNodes
reconcileCluster = true
kubeCluster.FindHostsLabeledToIgnoreUpgrade(ctx)
maxUnavailableWorker, maxUnavailableControl, err := kubeCluster.CalculateMaxUnavailable()
if err != nil {
return APIURL, caCrt, clientCert, clientKey, nil, err
@@ -247,9 +246,6 @@ func checkAllIncluded(cluster *cluster.Cluster) error {
var names []string
for _, host := range cluster.InactiveHosts {
if cluster.HostsLabeledToIgnoreUpgrade[host.Address] {
continue
}
names = append(names, host.Address)
}