setup-helmfile icon indicating copy to clipboard operation
setup-helmfile copied to clipboard

Kubernetes context

Open tonsV2 opened this issue 3 years ago • 2 comments

How do I configure a context and credentials to use with this plugin?

To elaborate a bit more, I'm currently doing the below but wondering if there's any more clean way.

      mkdir /home/runner/.kube
      echo "${{ secrets.KUBECONFIG }}" > /home/runner/.kube/config

tonsV2 avatar Mar 13 '21 09:03 tonsV2

This action does not configure kubeconfig. Set it yourself as you wrote.

kondoumh avatar Mar 13 '21 23:03 kondoumh

Since this is something most users of this plugin would have to do I think it makes sense to support it.

For the Helm 3 Github Action it's supported by doing the following

- name: Deploy
  uses: WyriHaximus/github-action-helm3@v2
  with:
    exec: helm upgrade APP_NAME ./.helm/app/ --install --wait --atomic --namespace=APP_NAMESPACE --set=app.name=APP_NAME --values=./.helm/app/values.yaml
    kubeconfig: '${{ secrets.KUBECONFIG }}'

Would you be interested in a pull request implementing something like the above?

tonsV2 avatar Mar 14 '21 08:03 tonsV2