From b44f492f7802783986013d63cd3c695eac20e652 Mon Sep 17 00:00:00 2001 From: dspeck1 Date: Tue, 16 Apr 2024 13:04:13 -0500 Subject: [PATCH] Replace GKE credential setup with GitHub action because kubectl authentication changed in kubernetes 1.26 --- .github/workflows/rsp-filestore-dir.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rsp-filestore-dir.yaml b/.github/workflows/rsp-filestore-dir.yaml index 4c65b6a7..99b8a2af 100644 --- a/.github/workflows/rsp-filestore-dir.yaml +++ b/.github/workflows/rsp-filestore-dir.yaml @@ -55,11 +55,11 @@ jobs: ./yq w -i overlays/dev/nfs.ip.patch.yaml [].value $FILESTORE_IP # Get the GKE credentials so we can deploy to the cluster - - name: GKE Credential Setup - run: |- - gcloud container clusters get-credentials "${{ github.event.inputs.gkeCluster }}" --zone "${GKE_REGION}" - env: - GKE_REGION: us-central1 + - id: 'get-credentials' + uses: 'google-github-actions/get-gke-credentials@v2' + with: + cluster_name: "${{ github.event.inputs.gkeCluster }}" + location: "${GKE_REGION}" # Validate the kubernetes manifest from kustomize - name: Validate Kubernetes Manifests