Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes context #23

Open
tonsV2 opened this issue Mar 13, 2021 · 2 comments
Open

Kubernetes context #23

tonsV2 opened this issue Mar 13, 2021 · 2 comments

Comments

@tonsV2
Copy link

tonsV2 commented Mar 13, 2021

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
Copy link
Member

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

@tonsV2
Copy link
Author

tonsV2 commented Mar 14, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants