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

Allow configuring k9s to use all namespaces by default #2665

Open
jflambert opened this issue Apr 19, 2024 · 3 comments
Open

Allow configuring k9s to use all namespaces by default #2665

jflambert opened this issue Apr 19, 2024 · 3 comments

Comments

@jflambert
Copy link

Currently using k9s v0.32.4

Is your feature request related to a problem? Please describe.
When using k9s I want to automatically use all namespaces (without having to add -A)

Describe the solution you'd like
A new entry in config.yaml would allow me to set -A as a default parameter.

Describe alternatives you've considered
alias k9s="k9s -A"

Additional context
I believe persisting "all namespace" used to work up until a few releases ago. It would also remember my last known location, etc.

@jflambert
Copy link
Author

It looks like I was affected by this bug!

#2578

When I use :q to quit instead of Ctrl+C, the default/default/config.yaml file is properly saved, and it remembers I want all namespaces, and which view I was in.

Still there might be a use case to force -A by default, so I'll let the project admin decide to keep or close my issue.

@fharper
Copy link

fharper commented Apr 24, 2024

I was looking for that configuration. I still think it's relevant so folks don't have to quit with :q.

Also, the alias is not a proper solution, as it will cause errors for commands like k9s info for which you need to upgrade your alias for a function that will check if there is any other commands or flags and if not, ran k9s with the -A flag.

@agustingomes-therapieland
Copy link

agustingomes-therapieland commented May 16, 2024

@jflambert I'm using 0.32.4 and indeed using :q instead of Ctrl+C does save the state. Thank you for that tip.

Edit: for now I also set noExitOnCtrlC to true in the config to avoid losing my state

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

No branches or pull requests

3 participants