From 2dd3fbda0b55bbd1265d6c3783ed854bdcd1bb5f Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 9 May 2018 16:25:59 -0700 Subject: [PATCH] Use absolute path for KUBECTL default in local up cluster This avoids having to set the KUBECTL env var if local-up-cluster.sh is run outside of the repo root. --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 25ba4a09d7..2668af008f 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -63,7 +63,7 @@ KUBE_PROXY_MODE=${KUBE_PROXY_MODE:-""} ENABLE_CLUSTER_DNS=${KUBE_ENABLE_CLUSTER_DNS:-true} DNS_SERVER_IP=${KUBE_DNS_SERVER_IP:-10.0.0.10} DNS_DOMAIN=${KUBE_DNS_NAME:-"cluster.local"} -KUBECTL=${KUBECTL:-cluster/kubectl.sh} +KUBECTL=${KUBECTL:-"${KUBE_ROOT}/cluster/kubectl.sh"} WAIT_FOR_URL_API_SERVER=${WAIT_FOR_URL_API_SERVER:-60} MAX_TIME_FOR_URL_API_SERVER=${MAX_TIME_FOR_URL_API_SERVER:-1} ENABLE_DAEMON=${ENABLE_DAEMON:-false}