Skip to content

Commit

Permalink
Remove gke-kubeconfig action
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-a-lane-ii committed Apr 12, 2024
1 parent 3188a3f commit f845d5a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
18 changes: 0 additions & 18 deletions .github/actions/gke-kubeconfig/action.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/actions/provision-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ inputs:
description: "The profile to use for kubeception clusters."
required: false
default: "default"
useAuthProvider:
description: "For GKE clusters, if true, use an authentication provider."
required: false
default: "true"
outputs:
clusterName:
description: "Name of the cluster."
Expand Down
16 changes: 11 additions & 5 deletions provision-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ runs:
repository: ${{ env.REPO }}
ref: ${{ env.REF }}
path: infra-actions
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
if: ${{ inputs.distribution == 'GKE' && inputs.action != 'expire' }}
with:
credentials_json: ${{ inputs.gkeCredentials }}
create_credentials_file: true
- name: Install gke-gcloud-auth-plugin
uses: google-github-actions/setup-gcloud@v2
if: ${{ inputs.distribution == 'GKE' && inputs.action != 'expire' }}
with:
install_components: gke-gcloud-auth-plugin
- id: provision-cluster
uses: ./infra-actions/.github/actions/provision-cluster
with:
Expand All @@ -80,8 +91,3 @@ runs:
gkeConfig: ${{ inputs.gkeConfig }}
kubeceptionProfile: ${{ inputs.kubeceptionProfile }}
useAuthProvider: ${{ inputs.useAuthProvider }}
- name: "Get GKE kubeconfig"
uses: ./infra-actions/.github/actions/gke-kubeconfig
if: ${{ inputs.distribution == 'GKE' && inputs.action != 'expire' }}
with:
gkeCredentials: ${{ inputs.gkeCredentials }}

0 comments on commit f845d5a

Please sign in to comment.