I get an npe at the start of this operator. This happen after an unclean installation and resistallation of kubevirt. it;s unclear to what makes it fail, but the npe is probably a bug:
E0722 00:00:59.557730 1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 1188 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x1add6c0?, 0x2fbab00})
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x86
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x0?})
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x1add6c0, 0x2fbab00})
/usr/lib/golang/src/runtime/panic.go:884 +0x212
kubevirt.io/containerized-data-importer/pkg/operator/controller.(*ReconcileCDI).watchCDICRD.func1({0x211b758?, 0xc004289240?})
/remote-source/app/pkg/operator/controller/cruft.go:289 +0x94
sigs.k8s.io/controller-runtime/pkg/handler.(*enqueueRequestsFromMapFunc).mapAndEnqueue(0x427d7d7b3a2273?, {0x210eb98, 0xc00078a520}, {0x211b758?, 0xc004289240?}, 0x386b2e6e6f697461?)
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/handler/enqueue_mapped.go:80 +0x4c
sigs.k8s.io/controller-runtime/pkg/handler.(*enqueueRequestsFromMapFunc).Create(0xc00051e108?, {{0x211b758?, 0xc004289240?}}, {0x210eb98, 0xc00078a520})
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/handler/enqueue_mapped.go:57 +0xd2
sigs.k8s.io/controller-runtime/pkg/source/internal.EventHandler.OnAdd({{0x2105548, 0xc00051e108}, {0x210eb98, 0xc00078a520}, {0x0, 0x0, 0x0}}, {0x1d50820?, 0xc004289240})
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/source/internal/eventsource.go:63 +0x248
k8s.io/client-go/tools/cache.(*processorListener).run.func1()
/remote-source/app/vendor/k8s.io/client-go/tools/cache/shared_informer.go:787 +0x134
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x0?)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x3e
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc0005aef38?, {0x20e71e0, 0xc004127200}, 0x1, 0xc004da0240)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x0?, 0x3b9aca00, 0x0, 0x0?, 0x0?)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(...)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90
k8s.io/client-go/tools/cache.(*processorListener).run(0xc000b3f780?)
/remote-source/app/vendor/k8s.io/client-go/tools/cache/shared_informer.go:781 +0x6b
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:73 +0x5a
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:71 +0x85
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x18bd394]