From 122ea4637af56a0f7d6b8ae238feb766c670cfc4 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 2 Jan 2020 14:37:27 +0100 Subject: [PATCH] wait for kubeconfig to be written when --wait is set --- cli/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/commands.go b/cli/commands.go index 9c0d460c..30c4ed3c 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -211,7 +211,7 @@ func CreateCluster(c *cli.Context) error { nRead, _ := buf.ReadFrom(out) out.Close() output := buf.String() - if nRead > 0 && strings.Contains(string(output), "Running kubelet") { + if nRead > 0 && strings.Contains(string(output), "Wrote kubeconfig") { break }