mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
kubectl doesn't fail silently with no k8s master
This commit is contained in:
parent
0b801a91b1
commit
9d9bca9958
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user