mamezou-tech / setup-helmfile

Setup helmfile action
MIT License
41 stars 20 forks source link

Kubernetes context #23

Open tonsV2 opened 3 years ago

tonsV2 commented 3 years ago

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
kondoumh commented 3 years ago

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

tonsV2 commented 3 years ago

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?