1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-10 01:15:43 +00:00

Force lowercase node names

This commit is contained in:
moelsayed 2018-11-13 22:30:40 +02:00 committed by Alena Prokharchyk
parent 1295f64547
commit b67a67c3bb

View File

@ -3,6 +3,7 @@ package cluster
import (
"context"
"fmt"
"strings"
"github.com/rancher/rke/cloudprovider"
"github.com/rancher/rke/docker"
@ -100,6 +101,7 @@ func (c *Cluster) setClusterDefaults(ctx context.Context) {
c.Nodes[i].Port = DefaultSSHPort
}
c.Nodes[i].HostnameOverride = strings.ToLower(c.Nodes[i].HostnameOverride)
// For now, you can set at the global level only.
c.Nodes[i].SSHAgentAuth = c.SSHAgentAuth
}