1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-18 14:57:03 +00:00

Fix etcd issue with reloading cluster

This commit is contained in:
galal-hussein 2018-02-17 01:43:34 +02:00 committed by Denise
parent 674b46abca
commit b1c2a5d153

View File

@ -316,7 +316,9 @@ func ConfigureCluster(ctx context.Context, rkeConfig v3.RancherKubernetesEngineC
func (c *Cluster) getEtcdProcessHostMap(readyEtcdHosts []*hosts.Host) map[*hosts.Host]v3.Process {
etcdProcessHostMap := make(map[*hosts.Host]v3.Process)
for _, host := range c.EtcdHosts {
if !host.ToAddEtcdMember {
etcdProcessHostMap[host] = c.BuildEtcdProcess(host, readyEtcdHosts)
}
}
return etcdProcessHostMap
}