Skip to content

[Bug]: views.yaml columns not respected on startup #2449

@edosrecki

Description

@edosrecki




Describe the bug
When I start k9s using default command (pods), or even explicitly specifying command (k9s -c pods), columns that I configured in views.yaml file are not respected. Instead I see a default set of columns. Then when I manually switch to pods view (:pods), columns that I defined are respected.

To Reproduce

  1. Create k9s/views.yaml:
views:
  v1/pods:
    columns:
      - NAME
      - NAMESPACE
      - STATUS
      - READY
      - RESTARTS
      - AGE
  1. Start k9s with k9s --comand pods
  2. Observe that default set of columns is shown, instead of ones specified in views.yaml.
  3. Type :pods command.
  4. Observe that columns specified in views.yaml are shown now.

Expected behavior
When k9s start up I expect it to immediately load resources with columns that I specified in views.yaml file.

Versions:

  • OS: MacOS 14.2.1
  • K9s: 0.31.1
  • K8s: 1.26.11

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