Respect KUBECTL_BIN in kube-addon-update.sh not just kube-addons.sh

This commit is contained in:
Eric Paris 2015-06-17 15:33:36 -04:00
parent 6b9ef5b2d8
commit c69b6f5ba7

View File

@ -44,7 +44,9 @@
# global config
KUBECTL=${TEST_KUBECTL:-/usr/local/bin/kubectl} # substitute for tests
KUBECTL=${TEST_KUBECTL:-} # substitute for tests
KUBECTL=${KUBECTL:-${KUBECTL_BIN:-}}
KUBECTL=${KUBECTL:-/usr/local/bin/kubectl}
if [[ ! -x ${KUBECTL} ]]; then
echo "ERROR: kubectl command (${KUBECTL}) not found or is not executable" 1>&2
exit 1