Merge pull request #7238 from sharifelgamal/honor-override

do not override hostname if extraConfig is specified
pull/7219/head
Sharif Elgamal 2020-03-25 15:24:14 -07:00 committed by GitHub
commit 71003531c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ func extraKubeletOpts(mc config.ClusterConfig, nc config.Node, r cruntime.Manage
if _, ok := extraOpts["node-ip"]; !ok {
extraOpts["node-ip"] = cp.IP
}
nodeName := KubeNodeName(mc, nc)
if nodeName != "" {
if _, ok := extraOpts["hostname-override"]; !ok {
nodeName := KubeNodeName(mc, nc)
extraOpts["hostname-override"] = nodeName
}