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

Overwrite kube config if set as env var #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grssmnn
Copy link

@grssmnn grssmnn commented Dec 10, 2021

I had a problem running the kubectl action when using multiple environments running on their own cluster. Once set the kube config didn't change anymore even though I set a new one through KUBE_CONFIG.
Therefore, always overwrite the kube config if a new one is set through env vars.

@laszlof
Copy link

laszlof commented Sep 14, 2022

@grssmnn Ran into this same problem. Did you ever resolve this outside of this unmerged PR?

@grssmnn
Copy link
Author

grssmnn commented Sep 15, 2022

Hi @laszlof
you can add the adapted action to your repo and reference it by path in your workflow:

    steps:
      - uses: ./.github/actions/kubectl

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

Successfully merging this pull request may close these issues.

2 participants