Skip to content

Commit 4edec1f

Browse files
committed
cluster/gce: fix unset variable when insecure port is enabled
1 parent 8ae998c commit 4edec1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2847,7 +2847,7 @@ function wait-till-apiserver-ready() {
28472847

28482848
function ensure-bootstrap-kubectl-auth {
28492849
# Creating an authenticated kubeconfig is only necessary if the insecure port is disabled.
2850-
if [[ -n "${KUBE_BOOTSTRAP_TOKEN}" ]]; then
2850+
if [[ -n "${KUBE_BOOTSTRAP_TOKEN:-}" ]]; then
28512851
create-kubeconfig "cluster-bootstrap" ${KUBE_BOOTSTRAP_TOKEN}
28522852
export KUBECONFIG=/etc/srv/kubernetes/cluster-bootstrap/kubeconfig
28532853
fi

0 commit comments

Comments
 (0)