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

Feature request: support an inverse operator on filtered search #848

Closed
jmound opened this issue Aug 21, 2020 · 0 comments
Closed

Feature request: support an inverse operator on filtered search #848

jmound opened this issue Aug 21, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jmound
Copy link

jmound commented Aug 21, 2020




Is your feature request related to a problem? Please describe.
The current filtering options allow for a subset of regular expressions. ie. On the pod list view for example, selecting filter (/) this works:

deafult|ns2|ns3|etc

However, there isn't full regex support. If, for example you wanted to view all pods not matching kube-system, this doesn't work:

!kube-system

Describe the solution you'd like
Full regex is cool, but if that's more complex (likely) than supporting just inverse searches, I think simple inverse searching would be a very helpful feature.

Describe alternatives you've considered
As suggested in the k9s slack, you can do k get po --field-selector metadata.namespace!=kube-system --all-namespaces

Additional context
The docs on filtering could use some more details- if you can use |, what else can you use?
Somewhat related: #564

@derailed derailed added the enhancement New feature or request label Aug 28, 2020
derailed added a commit that referenced this issue Oct 27, 2020
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this issue Apr 3, 2024
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants