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

Skip to content

plugin with ksniff does not work - "Boom!! runtime error: index out of range [1] with length 1." #481

@Makusi75

Description

@Makusi75




Describe the bug
Bumped up K9s from 0.9.3 to 0.11.3 and the plugin for ksniff does not work any longer! :-(
When I try to launch the ksniff plugin with K9s 0.11.3, I got:

Boom!! runtime error: index out of range [1] with length 1.

My ~/.k9s/plugin.yml looks like this

plugin.yml

plugin:
ksniff:
shortCut: Shift-S
description: "Sniff"
scopes:
- containers
command: kubectl
background: true
args:
- sniff
- $POD
- -n
- $NAMESPACE
- -c
- $COL0

To Reproduce
Steps to reproduce the behavior:

  1. Setup the ~/.k9s/plugin.yml according to above
  2. Launch k9s version 0.11.3
  3. Goto the Containers view and click "Shift+S"
  4. Boom!! runtime error: index out of range [1] with length 1.

Expected behavior
Expected that Wireshark should open as releases up until 0.9.3

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Linux_x86_64
  • K9s 0.11.3
  • K8s 1.15.3

Additional context
Add any other context about the problem here.

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