mirror of
https://github.com/rancher/rke.git
synced 2025-08-12 04:03:01 +00:00
Force lowercase node names
This commit is contained in:
parent
1295f64547
commit
b67a67c3bb
@ -3,6 +3,7 @@ package cluster
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/rancher/rke/cloudprovider"
|
"github.com/rancher/rke/cloudprovider"
|
||||||
"github.com/rancher/rke/docker"
|
"github.com/rancher/rke/docker"
|
||||||
@ -100,6 +101,7 @@ func (c *Cluster) setClusterDefaults(ctx context.Context) {
|
|||||||
c.Nodes[i].Port = DefaultSSHPort
|
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.
|
// For now, you can set at the global level only.
|
||||||
c.Nodes[i].SSHAgentAuth = c.SSHAgentAuth
|
c.Nodes[i].SSHAgentAuth = c.SSHAgentAuth
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user