autoscaler container watch namespaces panic #358
Labels
affects/none
PR/issue: this bug affects none version.
process/fixed
Process of bug
severity/none
Severity of bug
type/bug
Type: something is unexpected
Please check the FAQ documentation before raising an issue
Describe the bug (required)
I1019 12:20:34.031131 4054627 autoscaler.go:84] nebula-autoscaler version: { go1.20.8 gc linux/amd64}
I1019 12:20:34.031187 4054627 autoscaler.go:91] nebula-autoscaler watches namespaces [kevin default]
panic: interface conversion: *cache.multiNamespaceInformer is not cache.SharedIndexInformer: missing method GetController
goroutine 1 [running]:
github.com/vesoft-inc/nebula-operator/pkg/controller/autoscaler.NewHorizontalController({0x2510a50, 0xc0003d7d60}, {0x25245e0, 0xc000503a00}, 0x37e11d600, 0x45d964b800, 0x3fb999999999999a, 0x45d964b800, 0x6fc23ac00)
/root/go/src/github.com/vesoft-inc/nebula-operator/pkg/controller/autoscaler/autoscaler.go:128 +0x17d
github.com/vesoft-inc/nebula-operator/cmd/autoscaler/app.Run({0x2510a50, 0xc0003d7d60}, 0xc000164700)
/root/go/src/github.com/vesoft-inc/nebula-operator/cmd/autoscaler/app/autoscaler.go:130 +0x6ec
github.com/vesoft-inc/nebula-operator/cmd/autoscaler/app.NewAutoscalerCommand.func1(0xc00021ef00?, {0x21d6e37?, 0x4?, 0x4?})
/root/go/src/github.com/vesoft-inc/nebula-operator/cmd/autoscaler/app/autoscaler.go:64 +0x25
github.com/spf13/cobra.(*Command).execute(0xc00021ef00, {0xc0000520b0, 0x4, 0x4})
/root/go/src/github.com/vesoft-inc/nebula-operator/vendor/github.com/spf13/cobra/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc00021ef00)
/root/go/src/github.com/vesoft-inc/nebula-operator/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/root/go/src/github.com/vesoft-inc/nebula-operator/vendor/github.com/spf13/cobra/command.go:968
k8s.io/component-base/cli.run(0xc00021ef00)
/root/go/src/github.com/vesoft-inc/nebula-operator/vendor/k8s.io/component-base/cli/run.go:146 +0x317
k8s.io/component-base/cli.Run(0x2510a50?)
/root/go/src/github.com/vesoft-inc/nebula-operator/vendor/k8s.io/component-base/cli/run.go:46 +0x1d
main.main()
/root/go/src/github.com/vesoft-inc/nebula-operator/cmd/autoscaler/main.go:31 +0x2c
Your Environments (required)
uname -a
a3ffc7d8
)How To Reproduce(required)
Steps to reproduce the behavior:
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: