mirror of https://github.com/k3s-io/k3s
cluster/gce: fix unset variable when insecure port is enabled
parent
8ae998ceb6
commit
4edec1f3be
|
@ -2847,7 +2847,7 @@ function wait-till-apiserver-ready() {
|
|||
|
||||
function ensure-bootstrap-kubectl-auth {
|
||||
# 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}
|
||||
export KUBECONFIG=/etc/srv/kubernetes/cluster-bootstrap/kubeconfig
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue