From 196a4df843368bdcf7a53064fa39691f574cb186 Mon Sep 17 00:00:00 2001 From: Cecile Robert-Michon Date: Wed, 16 Feb 2022 11:52:42 -0700 Subject: [PATCH] Update make targets to grep control plane role --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 27c7dea0c43..81728b87c9c 100644 --- a/Makefile +++ b/Makefile @@ -603,7 +603,7 @@ create-workload-cluster: $(ENVSUBST) timeout --foreground 300 bash -c "while ! kubectl get secrets | grep $(CLUSTER_NAME)-kubeconfig; do sleep 1; done" # Get kubeconfig and store it locally. kubectl get secrets $(CLUSTER_NAME)-kubeconfig -o json | jq -r .data.value | base64 --decode > ./kubeconfig - timeout --foreground 600 bash -c "while ! kubectl --kubeconfig=./kubeconfig get nodes | grep master; do sleep 1; done" + timeout --foreground 600 bash -c "while ! kubectl --kubeconfig=./kubeconfig get nodes | grep control-plane; do sleep 1; done" @echo 'run "kubectl --kubeconfig=./kubeconfig ..." to work with the new target cluster' @@ -616,7 +616,7 @@ create-aks-cluster: $(KUSTOMIZE) $(ENVSUBST) timeout --foreground 300 bash -c "while ! kubectl get secrets | grep $(CLUSTER_NAME)-kubeconfig; do sleep 1; done" # Get kubeconfig and store it locally. kubectl get secrets $(CLUSTER_NAME)-kubeconfig -o json | jq -r .data.value | base64 --decode > ./kubeconfig - timeout --foreground 600 bash -c "while ! kubectl --kubeconfig=./kubeconfig get nodes | grep master; do sleep 1; done" + timeout --foreground 600 bash -c "while ! kubectl --kubeconfig=./kubeconfig get nodes | grep control-plane; do sleep 1; done" @echo 'run "kubectl --kubeconfig=./kubeconfig ..." to work with the new target cluster'