Skip to content

Custom view does not work randomly #3255

@keliansb

Description

@keliansb




Describe the bug

I have a custom view configured to display some custom columns when viewing pods.
The issue is weird because this view does not work randomly.
Going into another namespace sometimes reset the view and it seems that a default one is displayed.

To Reproduce

  1. Execute :namespace command
  2. Go to a specific namespace
  3. Press Enter to list pods
  4. Repeat for another namespace

Historical Documents

Here is the views.yaml file I am using:

views:
  v1/pods:
    sortColumn: NAME:asc
    columns:
      - NAMESPACE
      - NAME
      - PF
      - READY
      - STATUS
      - RESTARTS
      - CPU
      - MEM
      - "%CPU/R|H"
      - "%CPU/L"
      - "%MEM/R|H"
      - "%MEM/L"
      - IP:.metadata.annotations.cni\.projectcalico\.org/podIPs
      - NODE
      - AGE

Expected behavior

Columns from custom view are always used.

Screenshots

Here are the columns displayed instead of my custom view:

Image

Versions (please complete the following information):

  • OS: Windows 11 24H2
  • K9s: 0.50.0
  • K8s: 1.31.4

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