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

Cannot run kor when KUBECONFIG has multiple paths #404

Open
metafeather opened this issue Jan 31, 2025 · 1 comment
Open

Cannot run kor when KUBECONFIG has multiple paths #404

metafeather opened this issue Jan 31, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@metafeather
Copy link

Related to #45

Thanks for a very useful tool (especially useful for clearing up old Kustomize generated ConfigMaps and Secrets with nameSuffix's)

The KUBECONFIG environment variable holds a list of kubeconfig files but kor currently tries to load this as a single file:

❯ echo $KUBECONFIG
/Users/metafeather/.kube/config:/Users/metafeather/.kube/configs/config.minikube
❯ kor all
Failed to load kubeconfig: stat /Users/metafeather/.kube/config:/Users/metafeather/.kube/configs/config.minikube: no such file or directory

This an be worked around by specifying -k, --kubeconfig string Path to kubeconfig file (optional) but it would be nice if this was not needed.

@yonahd
Copy link
Owner

yonahd commented Feb 17, 2025

Hi @metafeather
We actually have a contributor that started working on this but did not complete it.#377
Would you like to give it a go?

@yonahd yonahd added the enhancement New feature or request label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants