lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.3k stars 1.45k forks source link

App cash when searching namespace with and start with backslash "\" #7970

Open NEoKhajitt opened 8 months ago

NEoKhajitt commented 8 months ago

Describe the bug This was not intentional but an accidental discovery, I wanted to search for a namespace in my cluster, and accidentally hit backslash and got and error: App crash at /pods That app is then broken and even if you navigate to deployments or any other tab is hows App crash at /deployment etc. You then have to disconnect from the cluster and reconnect for the view to return to expected.

To Reproduce Steps to reproduce the behavior:

  1. Open Lens
  2. Connect to a Cluster
  3. Click on Pods or any tab that you can search a namespace
  4. Enter the backspace char \
  5. See Error produced

Expected behavior I would expect an empty result with the All Namespaces as a selectable, like when you start with a char you dont have any namespace in.

Screenshots Problem: image

Expectation: image

Environment (please complete the following information):

Logs: When you run the application executable from command line you will see some logging output. Please paste them here: Please let me know if there is a specifc section of the logs required, theres a lot of log output to filter for sensitive information. I can say, once the "App Crash" happens, there is no additional logging output, only the cluster refresh after a few seconds (which does not fail)

Your logs go here...

Kubeconfig: I can share the config if really required, but Honestly am not sure if this is related to the kube config at all.

your kubeconfig here