Skip to content

Commit

Permalink
Merge pull request #7238 from sharifelgamal/honor-override
Browse files Browse the repository at this point in the history
do not override hostname if extraConfig is specified
  • Loading branch information
sharifelgamal authored Mar 25, 2020
2 parents 8f3e480 + 6417e85 commit 7100353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/bootstrapper/bsutil/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7100353

Please sign in to comment.