Skip to content

Commit 20d6b2f

Browse files
authored
Merge pull request kubernetes#78008 from mikedanese/fixunset
cluster/gce: fix unset variable when insecure port is enabled
2 parents e4cfb55 + 4edec1f commit 20d6b2f

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
@@ -2848,7 +2848,7 @@ function wait-till-apiserver-ready() {
28482848

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

0 commit comments

Comments
 (0)