1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-08 18:39:40 +00:00

renamed ControlPlaneIP

This commit is contained in:
moelsayed
2017-11-02 11:27:26 +02:00
committed by galal-hussein
parent 1bb4ab98c3
commit dbc7dfaafe
6 changed files with 22 additions and 22 deletions

View File

@@ -123,10 +123,10 @@ func parseClusterFile(clusterFile string) (*services.Container, []hosts.Host, er
} else if len(host.Role) == 0 {
return nil, nil, fmt.Errorf("Role for host (%d) is not provided", i+1)
} else if host.ControlPlaneIP == "" {
} else if host.AdvertiseAddress == "" {
// if control_plane_ip is not set,
// default to the main IP
host.ControlPlaneIP = host.IP
k8shosts.Hosts[i].AdvertiseAddress = host.IP
}
for _, role := range host.Role {
if role != services.ETCDRole && role != services.ControlRole && role != services.WorkerRole {