From 723ebc65f80b901c9e6d62fcb8d762a4b6794380 Mon Sep 17 00:00:00 2001 From: raulcabello Date: Wed, 21 Dec 2022 12:28:18 +0100 Subject: [PATCH] set USE_GKE_GCLOUD_AUTH_PLUGIN to true before getting credentials from gke --- .github/workflows/gke.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gke.yml b/.github/workflows/gke.yml index 8a10b34fee..d210049dd9 100644 --- a/.github/workflows/gke.yml +++ b/.github/workflows/gke.yml @@ -53,7 +53,6 @@ jobs: uses: google-github-actions/setup-gcloud@v1 with: install_components: 'gke-gcloud-auth-plugin' - - name: Install gcloud kubectl version run: gcloud components install kubectl @@ -74,6 +73,8 @@ jobs: --zone ${{ env.GKE_ZONE }} - name: Get kubeconfig file from GKE + env: + USE_GKE_GCLOUD_AUTH_PLUGIN: True run: | id="${{ steps.create-cluster.outputs.ID }}" gcloud container clusters get-credentials fleetci$id --zone ${{ env.GKE_ZONE }} --project ${{ secrets.CI_GOOGLE_PROJECT }}