kor icon indicating copy to clipboard operation
kor copied to clipboard

Cannot run kor when KUBECONFIG has multiple paths

Open metafeather opened this issue 1 year ago • 1 comments

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.

metafeather avatar Jan 31 '25 20:01 metafeather

Hi @metafeather We actually have a contributor that started working on this but did not complete it.https://github.com/yonahd/kor/pull/377 Would you like to give it a go?

yonahd avatar Feb 17 '25 18:02 yonahd