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

Unable to find namespaces using specific keywords #3000

Open
aresler opened this issue Nov 29, 2024 · 2 comments
Open

Unable to find namespaces using specific keywords #3000

aresler opened this issue Nov 29, 2024 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@aresler
Copy link

aresler commented Nov 29, 2024




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:

  • OS: OSX 15.1.1
  • K9s: v0.32.7
  • K8s: client v1.25.2
@derailed
Copy link
Owner

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

@derailed derailed added bug Something isn't working question Further information is requested labels Nov 29, 2024
@aresler
Copy link
Author

aresler commented Dec 2, 2024

@derailed Ok, first, unfortunately, I couldn't reproduce the issue on a local minikube cluster. I created a namespace with identical name and identical labels. Then I can find it successfully using keyword pipe. This makes me think the issue is not with namespaces, but something to do with cluster/context?

Unfortunately, I'm not sure that I can share all my prod labels, but the namespace I'm trying to find does have the default label like kubernetes.io/metadata.name=project-foo-pipelines.

Please note that when I type /pipe in the search, it seems the filtering is not working at all, while if I'm using some random word like santa, the filter is applied and shows an empty list, because I don't have any namespace with santa in it. It's just a specific set of words that doesn't work on my prod cluster, I have no idea what the correlation between them is, but it does seem related to my cluster or context after all.

UPD: I'm happy to provide additional info, but if nothing comes to mind, feel free to close the issue or put it to a backlog, it's not very critical.

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

No branches or pull requests

2 participants