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

FR: EventRecorder API

Open morhidi opened this issue 3 years ago • 2 comments

Hi Folks,

it would be great to see a higher level API for emitting events from the operator beyond what fabric8 currently offers. We ended up writing our own utility in Flink that handles repetitive events with a counter. There was support in earlier version of kubebuilder for such feature called EventRecorder , which later I guess was moved directly to the go client. We could follow the same approach here and add an event recorder that could be resolved from the context for example, and maybe also ask support from fabric8 to add this functionality. Let me know what you think.

Best, Matyas

morhidi avatar Jun 27 '22 10:06 morhidi

This might be better to have in fabric8 client also in our case. cc @manusa @shawkins

csviri avatar Jun 30 '22 10:06 csviri

This might be better to have in fabric8 client also in our case.

I'm not sure what this would look in the base fabric8 client - it appears that it would need to be generated for each api/resource.

shawkins avatar Jun 30 '22 15:06 shawkins