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

Allow customizing path to KUBECTX and KUBENS_DIR #402

Open
josegonzalez opened this issue Aug 24, 2023 · 0 comments
Open

Allow customizing path to KUBECTX and KUBENS_DIR #402

josegonzalez opened this issue Aug 24, 2023 · 0 comments

Comments

@josegonzalez
Copy link

I have dotfiles that are shared across machines. On some machines, I'd like to expose a different path for the KUBECTX file (currently defined as KUBECTX="${XDG_CACHE_HOME:-$HOME/.kube}/kubectx"). I can do this for KUBECONFIG but there isn't anything similar for kubectx.

This problem also exists for KUBENS_DIR

Would you be open to a PR to make that customizable by respecting the KUBECTX env var (if set) and KUBENS_DIR?

mnlwldr added a commit to mnlwldr/kubectx that referenced this issue Mar 19, 2024
It's my first PR to an Go project here, so be kind to me :)

It's possible to set KUBECTX_DIR and KUBENS_DIR as an environemnt
variable.

Example:

> KUBECTX_DIR="/foo/bar"

will result in /foo/bar/.kube/kubectx

When KUBECTX_DIR is not set, kubectx and kubens fall back
to the default behavior.

issue: ahmetb#402
mnlwldr added a commit to mnlwldr/kubectx that referenced this issue Mar 19, 2024
It's my first PR to an Go project here, so be kind to me :)

It's possible to set KUBECTX_DIR and KUBENS_DIR as an environemnt
variable.

Example:

> KUBECTX_DIR="/foo/bar"

will result in /foo/bar/.kube/kubectx

When KUBECTX_DIR is not set, kubectx and kubens fall back
to the default behavior.

issue: ahmetb#402
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

1 participant