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

Skip to content

runtime error: index out of range [2] with length 2 #477

@stgarf

Description

@stgarf




Describe the bug
k9s crashes (and then will no longer properly open, presumably, because of a bad .k9s/config.yaml) when you type :rules with:
Boom!! runtime error: index out of range [2] with length 2.

after the crash, k9s won't start due to a bad view in the .k9s config
Boom!! Huh? 'rbac' Command not found.

view:
  active: rbac

To Reproduce
Steps to reproduce the behavior:

  1. Start k9s
  2. Type :rules
  3. Boom!! Profit!!1
  4. See error

Expected behavior
No crash :)

Screenshots
n/a

Versions (please complete the following information):

  • OS: macOS 10.15
  • K9s
Version:  0.11.1
Commit:  6b5da1091ef15de1692cb388c2d0e0b187f5e4ed
Date:  2020-01-06T16:50:20Z
  • K8s n/a

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