mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
cluster/gce: fix unset variable when insecure port is enabled
This commit is contained in:
parent
8ae998ceb6
commit
4edec1f3be
@ -2847,7 +2847,7 @@ function wait-till-apiserver-ready() {
|
|||||||
|
|
||||||
function ensure-bootstrap-kubectl-auth {
|
function ensure-bootstrap-kubectl-auth {
|
||||||
# Creating an authenticated kubeconfig is only necessary if the insecure port is disabled.
|
# Creating an authenticated kubeconfig is only necessary if the insecure port is disabled.
|
||||||
if [[ -n "${KUBE_BOOTSTRAP_TOKEN}" ]]; then
|
if [[ -n "${KUBE_BOOTSTRAP_TOKEN:-}" ]]; then
|
||||||
create-kubeconfig "cluster-bootstrap" ${KUBE_BOOTSTRAP_TOKEN}
|
create-kubeconfig "cluster-bootstrap" ${KUBE_BOOTSTRAP_TOKEN}
|
||||||
export KUBECONFIG=/etc/srv/kubernetes/cluster-bootstrap/kubeconfig
|
export KUBECONFIG=/etc/srv/kubernetes/cluster-bootstrap/kubeconfig
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user