Skip to content

k9s doesn't honor the --namespace parameter #3278

Open
@AlexVPopov

Description

@AlexVPopov




Describe the bug
K9s is not honoring the value of the --namespace parameter and connects me to the last namespace I was connected to.

To Reproduce

  • Say the last namespace you were connected to is called a.
  • Execute k9s --namespace b --context my-context.
  • Instead of being connected to b, you again get connected to a and need to switch the namespace via ns b.

Expected behavior
I get connected to b.

Versions (please complete the following information):

  • OS: Windows 11 latest update with Ubuntu on WSL2 with the latest update.
  • K9s: v0.50.3
  • K8s: v1.30.9-gke.1127000

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