You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have different clusters and different KUBECONFIG files for each cluster: my work clusters, production, and home kind clusters they all have different kubeconfigs.
I wonder if I'd be able to maybe provide a list of kubeconfig files and then hit some button and circle through them?
Now I feel I only can hit K and choose KUBECONFIG file from my directory structure each time I launch Emacs
The text was updated successfully, but these errors were encountered:
Hi @pashazz ,
I gave this some thought and I think the simplest at this point is for you to customize the kubel-set-kubectl-config-file function with an advice. I did some local testing and I think something like
I used the official doc as a guide https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html but in short my understanding is that you override the kubel-set-kubectl-config-file with the custom function set-my-kubeconfig-files, which has the presets of your kubeconfig files, lets you select one, and then passes it to the old kubel-set-kubectl-config-file
So I have different clusters and different KUBECONFIG files for each cluster: my work clusters, production, and home kind clusters they all have different kubeconfigs.
I wonder if I'd be able to maybe provide a list of kubeconfig files and then hit some button and circle through them?
Now I feel I only can hit K and choose KUBECONFIG file from my directory structure each time I launch Emacs
The text was updated successfully, but these errors were encountered: