From a5f419782f8c272f1df8411688770d0f509229c6 Mon Sep 17 00:00:00 2001 From: raulcabello Date: Wed, 21 Dec 2022 10:47:13 +0100 Subject: [PATCH 1/2] Fix gke e2e tests e2e are failing because of a warning returned by the gke github action. Install gke-gcloud-auth-plugin to fix this --- .github/workflows/gke.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/gke.yml b/.github/workflows/gke.yml index c2360b14b7..8a10b34fee 100644 --- a/.github/workflows/gke.yml +++ b/.github/workflows/gke.yml @@ -51,6 +51,9 @@ jobs: - name: Setup gcloud uses: google-github-actions/setup-gcloud@v1 + with: + install_components: 'gke-gcloud-auth-plugin' + - name: Install gcloud kubectl version run: gcloud components install kubectl From 723ebc65f80b901c9e6d62fcb8d762a4b6794380 Mon Sep 17 00:00:00 2001 From: raulcabello Date: Wed, 21 Dec 2022 12:28:18 +0100 Subject: [PATCH 2/2] 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 }}