Respect KUBECTL_BIN in kube-addon-update.sh not just kube-addons.sh
This commit is contained in:
parent
6b9ef5b2d8
commit
c69b6f5ba7
@ -44,7 +44,9 @@
|
|||||||
|
|
||||||
|
|
||||||
# global config
|
# 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
|
if [[ ! -x ${KUBECTL} ]]; then
|
||||||
echo "ERROR: kubectl command (${KUBECTL}) not found or is not executable" 1>&2
|
echo "ERROR: kubectl command (${KUBECTL}) not found or is not executable" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user