kor
kor copied to clipboard
Cannot run kor when KUBECONFIG has multiple paths
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.
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?