From 674189e99a50565cc6861b851e69a54b3e623be1 Mon Sep 17 00:00:00 2001 From: Everett Toews Date: Thu, 2 Mar 2017 11:43:15 -0600 Subject: [PATCH] Remove an outdated comment Now that AdvertiseAddress is a string and not AdvertiseAddresses a []string this comment is not longer necessary. --- cmd/kubeadm/app/cmd/init.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/kubeadm/app/cmd/init.go b/cmd/kubeadm/app/cmd/init.go index 22544c23a64..e5f17580d68 100644 --- a/cmd/kubeadm/app/cmd/init.go +++ b/cmd/kubeadm/app/cmd/init.go @@ -186,9 +186,6 @@ func (i *Init) Run(out io.Writer) error { // PHASE 2: Generate kubeconfig files for the admin and the kubelet - // TODO this is not great, but there is only one address we can use here - // so we'll pick the first one, there is much of chance to have an empty - // slice by the time this gets called masterEndpoint := fmt.Sprintf("https://%s:%d", i.cfg.API.AdvertiseAddress, i.cfg.API.BindPort) err = kubeconfigphase.CreateInitKubeConfigFiles(masterEndpoint, kubeadmapi.GlobalEnvParams.HostPKIPath, kubeadmapi.GlobalEnvParams.KubernetesDir) if err != nil {