Closed Piotr1215 closed 3 years ago
i think the program should inherit the same logic that kubectl
uses.
if anyone wants to PR the changes feel free to - otherwise i won't be able to get to them until next week.
cheers
if you want to try the 0.2.0 release and report back please let us know 🎉
Thanks for making the change so quickly. I have tested it and although both files are now picked up, the config cannot be loaded.
You can see below, I'm running the setup against docker desktop and than against my vm, both fail with the same error message. Maybe it's worth pointing out that I'm using WLS2, not sure if this might be an issue.
Hi, really fun project, enjoying it so far :). One little thing I noticed; when I merge 2 kubeconfig files in the KUBECONFIG variable, there is hardcoded path searching for config file in .kube dir in this function in client.go
giving this error when context is in other file than config:
unable to find local kube config [/home/decoder/.kube/config]: invalid configuration: [context was not found for specified context: default, cluster has no server defined]
Swapping to another cluster (with context present in config) works as expected.
Maybe reading KUBECONFIG variable on a retry when this error occurs would be a good idea?