ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.31k stars 1.24k forks source link

Possibility to set KUBECTX_DIR and KUBENS_DIR as an environemnt variable. #417

Open mnlwldr opened 4 months ago

mnlwldr commented 4 months ago

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