xianshun163 commented on issue #854: URL: https://github.com/apache/apisix-ingress-controller/issues/854#issuecomment-1075045025
@tao12345666333 use the ApisixPluginConfig , make the apisix ingress controller panic: W0322 19:03:41.005468 1 reflector.go:441] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: watch of *v2beta3.ApisixPluginConfig ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode watch event: no kind \"ApisixPluginConfig\" is registered for version \"apisix.apache.org/v2beta3\" in scheme \"pkg/runtime/scheme.go:100\"") has prevented the request from succeeding W0322 19:03:41.012135 1 reflector.go:441] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: watch of *v2beta3.ApisixUpstream ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode watch event: no kind \"ApisixUpstream\" is registered for version \"apisix.apache.org/v2beta3\" in scheme \"pkg/runtime/scheme.go:100\"") has prevented the request from succeeding E0322 19:03:41.904002 1 runtime.go:76] Observed a panic: invalid ApisixPluginConfig type goroutine 553 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic(0x1a0bbc0, 0x1f7f950) /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:74 +0x95 k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:48 +0x86 panic(0x1a0bbc0, 0x1f7f950) /usr/local/go/src/runtime/panic.go:965 +0x1b9 github.com/apache/apisix-ingress-controller/pkg/kube.MustNewApisixPluginConfig(...) /build/controller/pkg/kube/apisix_plugin_config.go:109 github.com/apache/apisix-ingress-controller/pkg/ingress.(*apisixPluginConfigController).onDelete(0xc0006fc560, 0x1b83860, 0xc002d0a960) /build/controller/pkg/ingress/apisix_pluginconfig.go:306 +0x719 k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnDelete(...) /go/pkg/mod/k8s.io/[email protected]/tools/cache/controller.go:245 k8s.io/client-go/tools/cache.(*processorListener).run.func1() /go/pkg/mod/k8s.io/[email protected]/tools/cache/shared_informer.go:779 +0x166 k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc00034bf60) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155 +0x5f k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000aaaf60, 0x1f9e2a0, 0xc0007882d0, 0x1a8e201, 0xc0004e08a0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156 +0x9b k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00034bf60, 0x3b9aca00, 0x0, 0x1, 0xc0004e08a0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133 +0x98 k8s.io/apimachinery/pkg/util/wait.Until(...) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:90 k8s.io/client-go/tools/cache.(*processorListener).run(0xc000132a00) /go/pkg/mod/k8s.io/[email protected]/tools/cache/shared_informer.go:771 +0x95 k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0xc0003c3330, 0xc000418450) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:73 +0x51 created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:71 +0x65 panic: invalid ApisixPluginConfig type [recovered] panic: invalid ApisixPluginConfig type goroutine 553 [running]: k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:55 +0x109 panic(0x1a0bbc0, 0x1f7f950) /usr/local/go/src/runtime/panic.go:965 +0x1b9 github.com/apache/apisix-ingress-controller/pkg/kube.MustNewApisixPluginConfig(...) /build/controller/pkg/kube/apisix_plugin_config.go:109 github.com/apache/apisix-ingress-controller/pkg/ingress.(*apisixPluginConfigController).onDelete(0xc0006fc560, 0x1b83860, 0xc002d0a960) /build/controller/pkg/ingress/apisix_pluginconfig.go:306 +0x719 k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnDelete(...) /go/pkg/mod/k8s.io/[email protected]/tools/cache/controller.go:245 k8s.io/client-go/tools/cache.(*processorListener).run.func1() /go/pkg/mod/k8s.io/[email protected]/tools/cache/shared_informer.go:779 +0x166 k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc00034bf60) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155 +0x5f k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc002f0bf60, 0x1f9e2a0, 0xc0007882d0, 0x1a8e201, 0xc0004e08a0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156 +0x9b k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00034bf60, 0x3b9aca00, 0x0, 0x1, 0xc0004e08a0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133 +0x98 k8s.io/apimachinery/pkg/util/wait.Until(...) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:90 k8s.io/client-go/tools/cache.(*processorListener).run(0xc000132a00) /go/pkg/mod/k8s.io/[email protected]/tools/cache/shared_informer.go:771 +0x95 k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0xc0003c3330, 0xc000418450) /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:73 +0x51 created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:71 +0x65 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
