AWS: Load cluster env during the validation

There is an issue when I specified all env in `cluster/env.sh`
And redefine `NUM_NODES`, than if it less than I have loop.
This commit is contained in:
Michael Nikitochkin 2015-12-16 10:26:11 +01:00
parent 0be54ae771
commit 2059a7c3fa

View File

@ -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"