k9s
k9s copied to clipboard
Allow configuring k9s to use all namespaces by default
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.
It looks like I was affected by this bug!
https://github.com/derailed/k9s/issues/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.
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.