Merge pull request #99691 from amwat/metadata-project

[cluster/gce] Target the correct project while adding kubeconfig metadata to the master
This commit is contained in:
Kubernetes Prow Robot
2021-03-04 00:29:31 -08:00
committed by GitHub

View File

@@ -3363,7 +3363,7 @@ function check-cluster() {
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
gcloud compute instances add-metadata "${MASTER_NAME}" --project="${PROJECT}" --zone="${ZONE}" --metadata-from-file="kubeconfig=${KUBECONFIG}" || true
fi
echo