kdash-rs / kdash

A simple and fast dashboard for Kubernetes
https://kdash.cli.rs
MIT License
2.08k stars 79 forks source link

.kube/config live sync mode #315

Open from-nibly opened 1 year ago

from-nibly commented 1 year ago

Is your feature request related to a problem? Please describe. So my usual workflow is to run watch kubectl get pods to get a similar (but not nearly as cool) "dashboard" of my kubernetes pods.

as I switch between clusters and namespaces this view automatically updates to show pods in that namespace/cluster.

Describe the solution you'd like

It would be neat if kdash could have a mode where it watches the kube config file(s) and resolves the current context/namespace to follow you as you switch between namespaces and clusters.

Describe alternatives you've considered I think my only other alternative would be to continue using my watch commands.

deepu105 commented 1 year ago

I think it would be possible to add that feature. Probably would need to reload kubeconfig during the polling sequence.

On Wed, 17 May 2023, 7:27 pm Jordan Davidson, @.***> wrote:

Is your feature request related to a problem? Please describe. So my usual workflow is to run watch kubectl get pods to get a similar (but not nearly as cool) "dashboard" of my kubernetes pods.

as I switch between clusters and namespaces this view automatically updates to show pods in that namespace/cluster.

Describe the solution you'd like

It would be neat if kdash could have a mode where it watches the kube config file(s) and resolves the current context/namespace to follow you as you switch between namespaces and clusters.

Describe alternatives you've considered I think my only other alternative would be to continue using my watch commands.

— Reply to this email directly, view it on GitHub https://github.com/kdash-rs/kdash/issues/315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOKF6CLESQ4UA2NBTZUADXGUC7PANCNFSM6AAAAAAYFM6MOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

deepu105 commented 1 year ago

does doing a refresh work ctrl+r?

from-nibly commented 1 year ago

Unfortunately that would only be slightly better. The most important thing is that I can zip around from context to context in another pane/tab without having to touch kdash.

Either a poll or watching changes on the config file changes would be the only things I can think of.