diff --git a/.gitignore b/.gitignore index 4c620903e9bb9..f3c0c275167e6 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 7b6526652af73..01adc5ebfcc93 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/kube-util.sh" diff --git a/cluster/kube-push.sh b/cluster/kube-push.sh index 1dddf1f4061a7..61ce6fb87e46f 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/kube-util.sh" diff --git a/cluster/kube-up.sh b/cluster/kube-up.sh index efd67c74f4fb3..c9ef071273d98 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/kube-util.sh"