Skip to content

Commit b9675da

Browse files
committed
Add comment about optimization
1 parent a11e1c3 commit b9675da

File tree

1 file changed

+2
-0
lines changed
  • pkg/minikube/bootstrapper/kubeadm

1 file changed

+2
-0
lines changed

pkg/minikube/bootstrapper/kubeadm/util.go

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ func updateKubeProxyConfigMap(k8s config.KubernetesConfig) error {
192192

193193
updated := strings.TrimSuffix(kubeconfig.String(), "\n")
194194
glog.Infof("updated kube-proxy config: %s", updated)
195+
196+
// An optimization, but also one that's unlikely, as kubeadm writes the address as 'localhost'
195197
if cfgMap.Data[kubeconfigConf] == updated {
196198
glog.Infof("kube-proxy config appears to require no change, not restarting kube-proxy")
197199
return nil

0 commit comments

Comments
 (0)