derailed / k9s

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

opening with non existing CRD fails #1419

Open gleichda opened 2 years ago

gleichda commented 2 years ago




Describe the bug

Opening k9s if a non existing CRD is selected will fail

To Reproduce

  1. Have a cluster with CRDs installed. (E.g. Gateway APIs)
  2. Select some CRD to display (e.g. HttpRoute)
  3. Close K9s
  4. Delete the cluster
  5. Create a new cluster with the same name
  6. Open K9s into a different Context without the CRDs installed

This might also occur if you just close and reopen. But had just one cluster ready to test.

Expected behavior

K9s falls back to some default CRD (e.g. Pods)

Screenshots image

Versions (please complete the following information):

BernhardGruen commented 2 years ago

I can confirm this behavior.

totallyGreg commented 2 years ago

For future self: k9s --command namespace to get you out of this.