Skip to content

Can't switch namespaces in helm view #3421

@mpas97

Description

@mpas97

(Same as #2916, but as no one replied there, I felt free to recreate it)

Describe the bug
When in the helm view I can't switch namespaces via the short cuts (pressing 0, 1, 2, ...).
But as a workaround, going from :helm in namespace A to some other kind like :pods, then change namespace there, to then go back to :helm just works.

To Reproduce
Steps to reproduce the behavior:

  1. open k9s

  2. go to the namespace view :namespace

  3. press enter on any namespace that contains a helm release

  4. go to the helm view :helm

  5. now the helm releases of that namespace should be listed

  6. try changing the namespace by using the short cuts 0, 1, 2, ...

    • 0 yields the error current user can't access namespace all
    • 1 yieds the error ``list access denied for user on "":helm`
  7. close k9s

  8. run helm list -A and see all helm releases across the cluster

Log output

ERR Flash error error="`list access denied for user on \"namespaceY\":helm"

(where namespaceY was redacted)

Expected behavior
Changing ns through number shortcuts should work the same way, as changing ns in an other kind and go back to :helm

Versions (please complete the following information):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions