derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.56k stars 1.74k forks source link

Unable to find namespaces using specific keywords #3000

Open aresler opened 3 days ago

aresler commented 3 days ago




Describe the bug When searching for a specific namespace using the search key "/", some words are not searched properly. For example, "pipe", "flow" etc.

To Reproduce Steps to reproduce the behavior:

  1. Have some namespaces with a name ending with pipelines or kubeflow. e.g. project-foo-pipelines or project-foo-kubeflow
  2. Go to the namespaces list (type :ns)
  3. Hit the search key "/" to open the search prompt
  4. Type pipe or flow to try and find the namespaces from step 1
  5. Observe that all namespaces are still on-screen as if the search didn't work

Expected behavior I would expect the resource like project-foo-pipelines to be found when searching for pipe keyword. I.e. this is the only namespace that should be on screen after filtering out all the others. However, when using this particular keyword, all namespaces are still on screen.

Most of the keywords work without a problem. I found the issue only with some specific keywords, like pipe, flow or kube.

Screenshots Screenshot-2024-11-29-000142@2x

Versions:

derailed commented 2 days ago

@aresler Interesting! What does your namespaces labels look like and do they contain "pipe" | "flow"?