I know there must be a dozen or more tools which have an option to edit/manage entries in kubeconfig. Some like kubectx will only remove the context but leave the user and cluster entries in the YAML file.
Others rely on you having to think and we know that developer tools are really about ease of use.
kubetrim tries to connect to each cluster and removes the cluster and context for ones where it can't list nodes. There's a couple of safety precautions built-in too for when you have turned off WiFi etc.
Hope you like it, reception has been quite positive so far and of course I made this for myself because I like the UNIX style principle of "it does one thing well"
I know there must be a dozen or more tools which have an option to edit/manage entries in kubeconfig. Some like kubectx will only remove the context but leave the user and cluster entries in the YAML file.
Others rely on you having to think and we know that developer tools are really about ease of use.
kubetrim tries to connect to each cluster and removes the cluster and context for ones where it can't list nodes. There's a couple of safety precautions built-in too for when you have turned off WiFi etc.
Hope you like it, reception has been quite positive so far and of course I made this for myself because I like the UNIX style principle of "it does one thing well"
It's written in Go, and isn't complicated.
Enjoy it and have a good weekend.