Skip to content

Commit

Permalink
Merge pull request kubernetes#11439 from jfchevrette/source-local-clu…
Browse files Browse the repository at this point in the history
…ster-env

Allow a local /cluster/env.sh to be sourced if present
  • Loading branch information
ArtfulCoder committed Sep 3, 2015
2 parents c9f2d31 + 91a05c0 commit 04600aa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions cluster/kube-down.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 5 additions & 0 deletions cluster/kube-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 5 additions & 0 deletions cluster/kube-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 04600aa

Please sign in to comment.