Unverified Commit 6d70e7ff authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #77930 from mm4tt/upload_kubeconfig

Upload kubeconfig to master metadata in tests.
parents b3981a2f 7e7570d6
...@@ -525,3 +525,5 @@ WINDOWS_NODE_TAINTS="${WINDOWS_NODE_TAINTS:-node.kubernetes.io/os=win1809:NoSche ...@@ -525,3 +525,5 @@ WINDOWS_NODE_TAINTS="${WINDOWS_NODE_TAINTS:-node.kubernetes.io/os=win1809:NoSche
GCE_PRIVATE_CLUSTER="${KUBE_GCE_PRIVATE_CLUSTER:-false}" GCE_PRIVATE_CLUSTER="${KUBE_GCE_PRIVATE_CLUSTER:-false}"
ETCD_LISTEN_CLIENT_IP=0.0.0.0 ETCD_LISTEN_CLIENT_IP=0.0.0.0
GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA=true
...@@ -3017,6 +3017,11 @@ function check-cluster() { ...@@ -3017,6 +3017,11 @@ function check-cluster() {
# ensures KUBECONFIG is set # ensures KUBECONFIG is set
get-kubeconfig-basicauth get-kubeconfig-basicauth
if [[ ${GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA:-} == "true" ]]; then
gcloud compute instances add-metadata "${MASTER_NAME}" --zone="${ZONE}" --metadata-from-file="kubeconfig=${KUBECONFIG}" || true
fi
echo echo
echo -e "${color_green}Kubernetes cluster is running. The master is running at:" echo -e "${color_green}Kubernetes cluster is running. The master is running at:"
echo echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment