kubectl doesn't fail silently with no k8s master

This commit is contained in:
Wojciech Tyczynski 2015-02-05 19:37:20 +01:00
parent 0b801a91b1
commit 9d9bca9958

View File

@ -123,7 +123,7 @@ elif [[ "${KUBERNETES_PROVIDER}" == "gke" ]]; then
)
fi
detect-master &> /dev/null
detect-master > /dev/null
if [[ -n "${KUBE_MASTER_IP-}" && -z "${KUBERNETES_MASTER-}" ]]; then
export KUBERNETES_MASTER=https://${KUBE_MASTER_IP}
fi