Commit 72ac82eb authored by Nikhil Jindal's avatar Nikhil Jindal

Merge pull request #8005 from lavalamp/kubectlFix

Don't print debugging things on every run of kubectl.sh
parents 48dfad67 ccecb115
...@@ -23,11 +23,10 @@ source "${KUBE_ROOT}/cluster/gce/${KUBE_CONFIG_FILE-"config-default.sh"}" ...@@ -23,11 +23,10 @@ source "${KUBE_ROOT}/cluster/gce/${KUBE_CONFIG_FILE-"config-default.sh"}"
source "${KUBE_ROOT}/cluster/common.sh" source "${KUBE_ROOT}/cluster/common.sh"
if [[ "${OS_DISTRIBUTION}" == "debian" || "${OS_DISTRIBUTION}" == "coreos" ]]; then if [[ "${OS_DISTRIBUTION}" == "debian" || "${OS_DISTRIBUTION}" == "coreos" ]]; then
echo "Starting cluster using os distro: ${OS_DISTRIBUTION}" >&2
source "${KUBE_ROOT}/cluster/gce/${OS_DISTRIBUTION}/helper.sh" source "${KUBE_ROOT}/cluster/gce/${OS_DISTRIBUTION}/helper.sh"
else else
echo "Cannot start cluster using os distro: ${OS_DISTRIBUTION}" >&2 echo "Cannot operate on cluster using os distro: ${OS_DISTRIBUTION}" >&2
return exit 1
fi fi
NODE_INSTANCE_PREFIX="${INSTANCE_PREFIX}-minion" NODE_INSTANCE_PREFIX="${INSTANCE_PREFIX}-minion"
......
...@@ -121,7 +121,11 @@ elif [[ "$KUBERNETES_PROVIDER" == "ubuntu" ]]; then ...@@ -121,7 +121,11 @@ elif [[ "$KUBERNETES_PROVIDER" == "ubuntu" ]]; then
) )
fi 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[@]}}" "${@+$@}" "${kubectl}" "${config[@]:+${config[@]}}" "${@+$@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment