diff --git a/.gitignore b/.gitignore index beea0662db4df..857638fd6d165 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,9 @@ Session.vim .vagrant network_closure.sh +# Local cluster env variables +/cluster/env.sh + # Compiled binaries in third_party /third_party/pkg diff --git a/cluster/kube-down.sh b/cluster/kube-down.sh index 3c1bc9b480b1e..7586402473177 100755 --- a/cluster/kube-down.sh +++ b/cluster/kube-down.sh @@ -21,6 +21,11 @@ set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. + +if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then + source "${KUBE_ROOT}/cluster/env.sh" +fi + source "${KUBE_ROOT}/cluster/kube-env.sh" source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh" diff --git a/cluster/kube-push.sh b/cluster/kube-push.sh index 522e9cb8bd0ad..192f71c7592a3 100755 --- a/cluster/kube-push.sh +++ b/cluster/kube-push.sh @@ -24,6 +24,11 @@ set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. + +if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then + source "${KUBE_ROOT}/cluster/env.sh" +fi + source "${KUBE_ROOT}/cluster/kube-env.sh" source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh" diff --git a/cluster/kube-up.sh b/cluster/kube-up.sh index 326a38486a9d9..0701a2b3b2211 100755 --- a/cluster/kube-up.sh +++ b/cluster/kube-up.sh @@ -25,6 +25,11 @@ set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. + +if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then + source "${KUBE_ROOT}/cluster/env.sh" +fi + source "${KUBE_ROOT}/cluster/kube-env.sh" source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"