podman-desktop / podman-desktop

Podman Desktop is the best free and open source tool to work with Containers and Kubernetes for developers. Get an intuitive and user-friendly interface to effortlessly build, manage, and deploy containers and Kubernetes — all from your desktop.
https://podman-desktop.io
Apache License 2.0
4.9k stars 310 forks source link

kubernetes context page should allow the user to add new kubeconfig #8983

Open axel7083 opened 1 month ago

axel7083 commented 1 month ago

Is your enhancement related to a problem? Please describe

The current Kubernetes empty page is discussed in https://github.com/containers/podman-desktop/issues/8571. And could redirect to the kubernetes context when nothing is configured.

image

Today, on the Kubernetes Contexts page, user cannot simply add a new context.

As a developer, I was importing a lot of KubeConfig file to OpenLens through the raw import

In the clusters list page, we have a few actions possible

Adding raw kubeconfig

This option was the one I was using the most, because I was configuring a lot of clusters from our dev environment that I copy paste in my clipboard.

image

image

Adding kubeconfig file

Another possibility that was often used was importing a kubeconfig file from the filesystem

image

Describe the solution you'd like

Maybe adding a page to import a kubeconfig would be useful

image

Describe alternatives you've considered

No response

Additional context

No response

feloy commented 1 month ago

related to #5049

afbjorklund commented 1 month ago

Adding a kubeconfig file to the environment would be an alternative, to copying/pasting the information within it.

https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

Similar to adding directories to your PATH, instead of copying (or symlinking) all the binaries to the first entry?