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

Skip to content

Aliases for pods with label filters not working #3462

@FrankFoerster24

Description

@FrankFoerster24

Describe the bug
Aliases cannot contain filters for some resources anymore. It worked with the previous version v0.50.7, but not anymore with the current version v0.50.8. However, when I enter the alias content itself, everything works as expected.

Resources that don't work anymore:

  • Pods,
  • Deployments,
  • DaemonSet.

Resources where it still works:

  • Namespaces,
  • ClusterRoles.

These are the ones I tested. Observation, maybe misleading: resources with namespace scope don't work, with cluster scope do work.

To Reproduce
Steps to reproduce the behavior:

  1. define an alias like:
aliases:
  pingress: pod app=ingress-nginx
  1. start k9s
  2. test the alias: :pingress
  3. observe that k9s shows all pods, not filtered at all
  4. test the alias content: :pod app=ingress-nginx
  5. observe that k9s shows only pods with that label.

Historical Documents
Log file looks all happy, no errors there.

Expected behavior
Aliases work with filters.

Screenshots
n/a

Versions (please complete the following information):

  • OS: OSX 15.5
  • K9s: v0.50.8
  • K8s: v1.20.15

Additional context
n/a

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