Skip to content

Commit

Permalink
Fix gke e2e tests
Browse files Browse the repository at this point in the history
set USE_GKE_GCLOUD_AUTH_PLUGIN to true before getting credentials from gke
  • Loading branch information
raulcabello committed Dec 21, 2022
1 parent a5f4197 commit 5e4542f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -149,6 +150,7 @@ jobs:
GIT_REPO_USER: "git"
CI_OCI_USERNAME: ${{ secrets.CI_OCI_USERNAME }}
CI_OCI_PASSWORD: ${{ secrets.CI_OCI_PASSWORD }}
USE_GKE_GCLOUD_AUTH_PLUGIN: True
run: |
export GIT_SSH_KEY="$GITHUB_WORKSPACE/id_ecdsa"
export GIT_SSH_PUBKEY="$GITHUB_WORKSPACE/id_ecdsa.pub"
Expand Down

0 comments on commit 5e4542f

Please sign in to comment.