Skip to content

Changing ns should keep current kind #3422

@mpas97

Description

@mpas97

Describe the bug
If I have some resource open (let's say :secrets) in namespace A and I then do :ns B, I endup in B (expected) but always in the kind pods (unexpected). If I just tell k9s to switch namespace, I would expect to show the original kind again (in this example secrets) and not switching to pods. So for almost everything, I always have to enter two promts. First change :ns B and then :secrets (initial kind used).

To Reproduce
Steps to reproduce the behavior:

  1. Go to eg. :secrets in ns A
  2. Enter :ns B
  3. Notice that now you see pods, no longer secrets
  4. Redo :secrets to be in the initial view again (but ns B)

Versions (please complete the following information):

  • OS: macOS
  • K9s: 0.50.6
  • K8s: 1.34.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    as-designedWorks as designedquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions