Don't print debugging things on every run of kubectl.sh

This commit is contained in:
Daniel Smith
2015-05-08 15:53:09 -07:00
parent 857d88b286
commit ccecb115ed
2 changed files with 8 additions and 5 deletions

View File

@@ -114,7 +114,11 @@ elif [[ "$KUBERNETES_PROVIDER" == "ubuntu" ]]; then
)
fi
echo "current-context: \"$(${kubectl} "${config[@]:+${config[@]}}" config view -o template --template='{{index . "current-context"}}')\"" >&2
echo "Running:" "${kubectl}" "${config[@]:+${config[@]}}" "${@+$@}" >&2
if false; then
# disable these debugging messages by default
echo "current-context: \"$(${kubectl} "${config[@]:+${config[@]}}" config view -o template --template='{{index . "current-context"}}')\"" >&2
echo "Running:" "${kubectl}" "${config[@]:+${config[@]}}" "${@+$@}" >&2
fi
"${kubectl}" "${config[@]:+${config[@]}}" "${@+$@}"