r.Recorder is nil. Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference
vladsf opened this issue · 2 comments
vladsf commented
Bug Report
Hi, I followed the latest Go lang guide to create the sample memcached operator.
memcached_controller.go
but it fails when I try to delete the applied sample yaml.
.. Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference
...
internal/controller.(*MemcachedReconciler).doFinalizerOperationsForMemcached(0xc0000163f0, 0xc000462500)
somehow r.Recorder is nil. So line 299 fails
Is there way to fix this?
harshvijaythakkar commented
I think it is duplicate of #6681