lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.49k stars 1.46k forks source link

Provide an editor for Kubernetes config files with UI to automate merging, renaming and other routine operations #7990

Open MurzNN opened 9 months ago

MurzNN commented 9 months ago

What would you like to be added: An integrated editor for Kubernetes config files (admin.conf) with UI to automate merging, renaming, and other routine operations

Why is this needed: Kubernetes can generate separate config files for each cluster.

Yes, there are just regular YAML text files, that can be edited in any text editor. But when it comes to managing multiple clusters or multiple accounts, it's not a lot of fun to merge such files manually in a regular text editor!

I know that in Lens we can use different config files per cluster and there is no need to merge them into one file, but not all operations are done in Lens, we still have CLI and many other tools that work with a single KUBECONFIG file and different contexts in it.

So, will be great to provide some UI that automates these operations:

I tried to search such tools, that could help automate these boring operations, but nothing was found. If you know something for this - please share!

So, please consider this and maybe integrate this editor into Lens, or publish it as a separate tool? Thanks!

Environment you are Lens application on:

MurzNN commented 9 months ago

Here is an example of three Kubernetes config files (obfuscated), that I need to combine into one:

And there is no fun to make this manually in a text editor!

Nokel81 commented 8 months ago

FYI you can use the terminal feature within Lens if you need to be able to communicate with the cluster directly using kubectl.

Other than that, thanks for the feature request.

azlkiniue commented 2 months ago

This is the closest tool that I can find Not GUI, though https://github.com/sunny0826/kubecm

azlkiniue commented 1 month ago

After some weeks, I just created this toy project in my spare time https://github.com/azlkiniue/conffusion This tool can be used as a GUI editor for merging kubeconfig files