Skip to content

Commit

Permalink
change method to kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
titigmr committed May 2, 2023
1 parent e34157a commit 7a641c9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/change-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ jobs:
ref: ${{ inputs.branch }}

- uses: azure/k8s-set-context@v3
env:
CONFIG_SECRET: ${{ secrets.SA_SECRET }}
with:
method: service-account
# kubectl config view --minify -o 'jsonpath={.clusters[0].cluster.server}'
k8s-url: ${{ secrets.CLUSTER_URL }}
# kubectl get secret <service-account-secret-name> -n <namespace> -o yaml
k8s-secret: $CONFIG_SECRET
method: kubeconfig
kubeconfig: ${{ secrets.SA_SECRET }}

- name: Create secret for Kubernetes
uses: azure/k8s-create-secret@v4
Expand Down

0 comments on commit 7a641c9

Please sign in to comment.