Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Switching to ":Deploy" sends you to deployments from namespace "deploy" #3621

@vpagh

Description

@vpagh




Describe the bug
When using at least one capital in the resource type name, "Enter" will bring you to the resources from that resource type but the namespace is changed to the resource type name.

To Reproduce
Steps to reproduce the behavior:

  1. Start k9s
  2. Goto an overview of the nodes (:nodes), not really necessary but this makes us start on the same page.
  3. Now enter: ":Deploy" and ENTER
  4. You have switched to deployments in the 'deploy' namespace (which you probably don't have)

These also work in step 3:

  • Stateful
  • daeMONset
  • pVc
  • almost any resource that contains at least one capital
  • you can use tab completion with this too

Expected behavior
When doing a ":Deploy" or ":pVc" the command should fail or maybe better: set all to lowercase and show the requested resource types.

Screenshots
Image

Versions (please complete the following information):

  • OS: macOS 15.7.1
  • K9s: v0.50.15
  • K8s: v1.33.5-eks-113cf36

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-progressMark issue as being worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions