From 89557110ed4693a7d23e515e738ced266e099365 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Wed, 29 Mar 2017 17:31:00 -0700 Subject: [PATCH] don't wait for first kubelet to be ready and skip dummy deployment --- cmd/kubeadm/app/master/apiclient.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/cmd/kubeadm/app/master/apiclient.go b/cmd/kubeadm/app/master/apiclient.go index 257bbe0192b..628e19bb915 100644 --- a/cmd/kubeadm/app/master/apiclient.go +++ b/cmd/kubeadm/app/master/apiclient.go @@ -44,7 +44,7 @@ func CreateClientAndWaitForAPI(file string) (*clientset.Clientset, error) { fmt.Println("[apiclient] Created API client, waiting for the control plane to become ready") WaitForAPI(client) - fmt.Println("[apiclient] Waiting for at least one node to register and become ready") + fmt.Println("[apiclient] Waiting for at least one node to register") start := time.Now() wait.PollInfinite(kubeadmconstants.APICallRetryInterval, func() (bool, error) { nodeList, err := client.Nodes().List(metav1.ListOptions{}) @@ -55,20 +55,11 @@ func CreateClientAndWaitForAPI(file string) (*clientset.Clientset, error) { if len(nodeList.Items) < 1 { return false, nil } - n := &nodeList.Items[0] - if !v1.IsNodeReady(n) { - fmt.Println("[apiclient] First node has registered, but is not ready yet") - return false, nil - } - fmt.Printf("[apiclient] First node is ready after %f seconds\n", time.Since(start).Seconds()) + fmt.Printf("[apiclient] First node has registered after %f seconds\n", time.Since(start).Seconds()) return true, nil }) - if err := createAndWaitForADummyDeployment(client); err != nil { - return nil, err - } - return client, nil }