Add comment about optimization

pull/3774/head
Thomas Stromberg 2019-03-01 11:03:06 -08:00
parent a11e1c3c27
commit b9675da28b
1 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,8 @@ func updateKubeProxyConfigMap(k8s config.KubernetesConfig) error {
updated := strings.TrimSuffix(kubeconfig.String(), "\n")
glog.Infof("updated kube-proxy config: %s", updated)
// An optimization, but also one that's unlikely, as kubeadm writes the address as 'localhost'
if cfgMap.Data[kubeconfigConf] == updated {
glog.Infof("kube-proxy config appears to require no change, not restarting kube-proxy")
return nil