From 2059a7c3fa1d52556c05b94fdf16266ecbc9b45c Mon Sep 17 00:00:00 2001 From: Michael Nikitochkin Date: Wed, 16 Dec 2015 10:26:11 +0100 Subject: [PATCH] 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. --- cluster/validate-cluster.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index 23137a0e60a..ac2b5fed4e0 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.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"