Skip to content

Missing '.thresholds' in config.yaml result in 'assignment to entry in nil map' #2448

@karunsiri

Description

@karunsiri




Describe the bug
the .thresholds key is required to be present the default config file at $XDG_CONFIG/k9s/config.yaml

To Reproduce

  1. Copy the default configuration (config.yaml) from https://k9scli.io/topics/config/
  2. remove .shellPods.tty because k9s doesn't accept this config (another bug than this one)
  3. remove the .thresholds key from the config
  4. Start k9s and see the error assignment to entry in nil map
  5. Add .thresholds back to the config
  6. Start k9s and now it's working properly

Historical Documents

Expected behavior
k9s starts successfully with default configurations

Screenshots
image

Versions (please complete the following information):

  • OS: Fedora 38. Linux kernel 6.6
  • K9s: 0.31.1
  • K8s: 1.28.4

Additional context
all configs under ~/.config/k9s and ~/.local/share/k9s are deleted prior to issuing a k9s 0.31.1 command.

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