mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Handle add/remove for etcd nodes
Handle adding more than one etcd at once
This commit is contained in:
@@ -47,6 +47,7 @@ func (c *Cluster) InvertIndexHosts() error {
|
||||
logrus.Debugf("Host: " + host.Address + " has role: " + role)
|
||||
switch role {
|
||||
case services.ETCDRole:
|
||||
newHost.IsEtcd = true
|
||||
c.EtcdHosts = append(c.EtcdHosts, &newHost)
|
||||
case services.ControlRole:
|
||||
newHost.IsControl = true
|
||||
|
Reference in New Issue
Block a user