operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

r.Recorder is nil. Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference

Open vladsf opened this issue 1 year ago • 1 comments

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?

vladsf avatar Mar 05 '24 20:03 vladsf

I think it is duplicate of #6681

harshvijaythakkar avatar Mar 12 '24 07:03 harshvijaythakkar

Closing as duplicate

acornett21 avatar May 07 '24 21:05 acornett21