cluster/gce: fix unset variable when insecure port is enabled
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user