Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement an easy way to switch namespaces #3016

Open
srgvg opened this issue Dec 6, 2024 · 3 comments
Open

implement an easy way to switch namespaces #3016

srgvg opened this issue Dec 6, 2024 · 3 comments
Labels
question Further information is requested

Comments

@srgvg
Copy link

srgvg commented Dec 6, 2024

Is your feature request related to a problem? Please describe.
I love using k9s. The only thing I find difficult is an easy way to switch namespaces.

Describe the solution you'd like
Provide an easy command and/or shortcut to quickly switch namespaces.
e.g. ctrl-n yields a namespace popup to select and filter on it.

Describe alternatives you've considered
Going :ns is too cumbersome.

@derailed
Copy link
Owner

derailed commented Dec 8, 2024

@srgvg Thank you for your kind words! Imho this is where k9s shine vs similar browser based offerings.
Switching namespace in not an end to itself without specifying a resource i.e I am in ns-a and want to see deployment in ns-b. Having a ns selector popup, selecting/filtering, click ok and landing in the namespace default view seems like a much more involved user flow imho. While :dp ns-b gets you exactly where you want to be.

@derailed derailed added the question Further information is requested label Dec 8, 2024
@srgvg
Copy link
Author

srgvg commented Dec 9, 2024

Thanks @derailed for considering my request. Allow me to further argue :-)

When I want to switch namespaces, I'm often already viewing the type of resources I'd like. Switching type of resources is a separate thing to me.
Now I find myself aliasing k9s=k9s --all-namespaces to more or less work around this, but obviously, on larger clusters filtering by a specific namespace might be preferred. Please allow me hence to disagree on stating that switching ns would not be an end in itself.

My muscles prefer a quick shortcut like e.g. ctrl-n in this case, which is much more quicker (at least to me) than the double targetting :dp ns-b.

@srgvg
Copy link
Author

srgvg commented Dec 9, 2024

I should add, that in my idea ctrl-n (or sth like that) would pop-up a quick list from where I can filter-select the needed namespace, with autocompletion.

I should also add that I wasn't aware I could do :ns mynam<TAB> which is almost what I had in mind....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants