Commit cf0764ee authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #31747 from madhusudancs/fed-dep-gcp-cred

Automatic merge from submit-queue Mount GCP credentials to federation deployment container for GKE clusters. GKE clusters use GCP credentials and hence require them for deploying federation components on to those clusters. cc @kubernetes/sig-cluster-federation
parents 2462f437 230a1c78
...@@ -91,6 +91,10 @@ function federation_action() { ...@@ -91,6 +91,10 @@ function federation_action() {
kube::log::status "Action: ${action} federation components" kube::log::status "Action: ${action} federation components"
docker run \ docker run \
-m 12G \ -m 12G \
# For non-GKE clusters just mounting kubeconfig is sufficient. But we need
# gcloud credentials for GKE clusters, so we pass both kubeconfig and
# gcloud credentials
-v "${GOOGLE_APPLICATION_CREDENTIALS}:/root/.config/gcloud/application_default_credentials.json:ro" \
-v "${KUBE_CONFIG}:/root/.kube/config:ro" \ -v "${KUBE_CONFIG}:/root/.kube/config:ro" \
-v "${FEDERATION_OUTPUT_ROOT}:/_output" \ -v "${FEDERATION_OUTPUT_ROOT}:/_output" \
"${KUBE_ANYWHERE_FEDERATION_CHARTS_IMAGE}:${KUBE_ANYWHERE_FEDERATION_CHARTS_VERSION}" \ "${KUBE_ANYWHERE_FEDERATION_CHARTS_IMAGE}:${KUBE_ANYWHERE_FEDERATION_CHARTS_VERSION}" \
......
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