Skip to content

View pods with context filter, along with namespace filter, prompts an error if the namespace exists only in the desired context #2414

@Tom-HA

Description

@Tom-HA




Describe the bug
When trying to view pods with context filter, along with namespace filter, I get an error if the namespace only exists in the desired context but not in the current one.

For example, if I'm in context named dev, and I'm looking for pods in context test under namespace pulki using pod @test pulki:
image

I'll get an error if namespace pulki exists only in the test context but not in dev context:
image

To Reproduce
Steps to reproduce the behavior:

  1. From context a, look for pods in context b with namespace that only exists in context b
  2. See error

Expected behavior
I expect to see pods under the pulki namespace in the test context

Versions (please complete the following information):

  • OS: OSX
  • K9s: v0.30.6
  • K8s: v1.24.17-eks-8cb36c9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions