knative / operator

Combined operator for Knative.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue caused by the deletion of a resource taht does not exist in clusters

houshengbo opened this issue · comments

{"severity":"INFO","timestamp":"2023-07-20T19:49:42.348017231Z","logger":"knative-operator","caller":"common/config_maps.go:57","message":"Setting","commit":"4d5f699-dirty","knative.dev/pod":"knative-operator-7d978659cb-kh6zp","knative.dev/controller":"knative.dev.operator.pkg.reconciler.knativeserving.Reconciler","knative.dev/kind":"operator.knative.dev.KnativeServing","knative.dev/traceid":"e8dc2dc8-0fb7-45d5-82bd-78eb16c2f14c","knative.dev/key":"knative-serving/knative-serving","map":"config-tracing","zipkin-endpoint":"http://otel-collector-daemonset.observability-client.svc.cluster.local:9411/api/v2/spans"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x11fe218]
goroutine 625 [running]:
k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.(*Unstructured).GetKind(...)
        k8s.io/apimachinery@v0.25.4/pkg/apis/meta/v1/unstructured/unstructured.go:226
github.com/manifestival/manifestival.okToDelete(0x0)
        github.com/manifestival/manifestival@v0.7.1/manifestival.go:234 +0x38
github.com/manifestival/manifestival.Manifest.delete({{0xc0000f2200, 0x36, 0x40}, {0x1fa2cb0, 0xc0003f01b0}, {{0x1fa5b08, 0xc000570ae0}, 0x0}}, 0x1fa2cb0?, {0x0, ...})
        github.com/manifestival/manifestival@v0.7.1/manifestival.go:179 +0xae
github.com/manifestival/manifestival.Manifest.Delete({{0xc0000f2200, 0x36, 0x40}, {0x1fa2cb0, 0xc0003f01b0}, {{0x1fa5b08, 0xc000570ae0}, 0x0}}, {0x0, 0x0, ...})
        github.com/manifestival/manifestival@v0.7.1/manifestival.go:116 +0x1e5
knative.dev/operator/pkg/reconciler/common.Uninstall(0xc000bb3380)
        knative.dev/operator/pkg/reconciler/common/install.go:77 +0x278
knative.dev/operator/pkg/reconciler/knativeserving.(*Reconciler).FinalizeKind(0xc000819110, {0x1fa2b98, 0xc000bb4f90}, 0xc000327860?)
        knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go:93 +0x378
knative.dev/operator/pkg/client/injection/reconciler/operator/v1beta1/knativeserving.(*reconcilerImpl).Reconcile(0xc0007ec000, {0x1fa2b98, 0xc000bb4f60}, {0xc000910aa0, 0x1f})
        knative.dev/operator/pkg/client/injection/reconciler/operator/v1beta1/knativeserving/reconciler.go:241 +0x3fe
knative.dev/pkg/controller.(*Impl).processNextWorkItem(0xc000825e60)
        knative.dev/pkg@v0.0.0-20230224205330-75da922ef055/controller/controller.go:542 +0x58d
knative.dev/pkg/controller.(*Impl).RunContext.func3()
        knative.dev/pkg@v0.0.0-20230224205330-75da922ef055/controller/controller.go:491 +0x68
created by knative.dev/pkg/controller.(*Impl).RunContext
        knative.dev/pkg@v0.0.0-20230224205330-75da922ef055/controller/controller.go:489 +0x312