From 97dd16b9132a8ce5d3f0c7512599ce7cce439ad7 Mon Sep 17 00:00:00 2001 From: Sam Ghods Date: Mon, 6 Oct 2014 19:38:27 -0700 Subject: [PATCH] Fix hack/local-up-cluster.sh to ensure apiserver comes up --- hack/local-up-cluster.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 8d94684ed33..c1b001e6b68 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -54,6 +54,9 @@ APISERVER_LOG=/tmp/apiserver.log --cors_allowed_origins="${API_CORS_ALLOWED_ORIGINS}" >"${APISERVER_LOG}" 2>&1 & APISERVER_PID=$! +# Wait for apiserver to come up before launching the rest of the components. +wait_for_url "http://$API_HOST:$API_PORT/api/v1beta1/pods" "apiserver: " + CTLRMGR_LOG=/tmp/controller-manager.log "${GO_OUT}/controller-manager" \ --master="${API_HOST}:${API_PORT}" >"${CTLRMGR_LOG}" 2>&1 &