-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version: 0.11.0
Commit: fbc25e6
Date: 2020-01-04T23:18:12Z
I have a single StatefulSet (for rabbitmq) that's not in one of my favorite or default namespaces. When I switch to view stateful sets :sts and then hit 0 to show all, after about a second or so I get the error below. I confirmed that this doesn't happen with the 0.10 release.
11:34AM Boom! runtime error: index out of range [1] with length 1
11:34AM goroutine 1 [running]:
runtime/debug.Stack(0x3803e20, 0x2730203, 0x0)
/usr/local/Cellar/go/1.13.5/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/derailed/k9s/cmd.run.func1()
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/cmd/root.go:73 +0x11d
panic(0x260d7a0, 0xc000d99e40)
/usr/local/Cellar/go/1.13.5/libexec/src/runtime/panic.go:679 +0x1b2
github.com/derailed/tview.(*Application).Run.func1(0xc0007d1480)
/Users/fernand/go_wk/derailed/pkg/mod/github.com/derailed/[email protected]/application.go:149 +0x82
panic(0x260d7a0, 0xc000d99e40)
/usr/local/Cellar/go/1.13.5/libexec/src/runtime/panic.go:679 +0x1b2
github.com/derailed/k9s/internal/render.StatefulSet.ColorerFunc.func1(0x0, 0x0, 0x1, 0xc0004478a0, 0x11, 0xc00083c360, 0x6, 0x6, 0x0, 0x0, ...)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/render/sts.go:31 +0x214
github.com/derailed/k9s/internal/ui.(*Table).buildRow(0xc000784d20, 0x0, 0x0, 0x1, 0x1, 0xc0004478a0, 0x11, 0xc00083c360, 0x6, 0x6, ...)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/ui/table.go:260 +0x32b
github.com/derailed/k9s/internal/ui.(*Table).doUpdate(0xc000784d20, 0xc0001afbc0, 0x6, 0x6, 0xc000760050, 0x1, 0x1, 0x0, 0x0, 0xc0008cb180)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/ui/table.go:189 +0x749
github.com/derailed/k9s/internal/ui.(*Table).Update(0xc000784d20, 0xc0001afbc0, 0x6, 0x6, 0xc000760050, 0x1, 0x1, 0x0, 0x0, 0xc0008cb180)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/ui/table.go:163 +0xfc
github.com/derailed/k9s/internal/view.(*Browser).TableDataChanged.func1()
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/view/browser.go:138 +0xcc
github.com/derailed/tview.(*Application).QueueUpdateDraw.func1()
/Users/fernand/go_wk/derailed/pkg/mod/github.com/derailed/[email protected]/application.go:493 +0x2f
github.com/derailed/tview.(*Application).Run(0xc0007d1480, 0x0, 0x0)
/Users/fernand/go_wk/derailed/pkg/mod/github.com/derailed/[email protected]/application.go:253 +0x615
github.com/derailed/k9s/internal/view.(*App).Run(0xc0004cf480)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/internal/view/app.go:295 +0x15c
github.com/derailed/k9s/cmd.run(0x37e5a00, 0x382c100, 0x0, 0x0)
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/cmd/root.go:88 +0x145
github.com/spf13/cobra.(*Command).execute(0x37e5a00, 0xc00003a1b0, 0x0, 0x0, 0x37e5a00, 0xc00003a1b0)
/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/[email protected]/command.go:830 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x37e5a00, 0x0, 0x0, 0x0)
/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/derailed/k9s/cmd.Execute()
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/cmd/root.go:63 +0x2d
main.main()
/Users/fernand/go_wk/derailed/src/github.com/derailed/k9s/main.go:25 +0x1a6
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working