<p>The <a href="https://book.kubebuilder.io" rel="nofollow noreferrer">Kubebuilder V3 documentation</a> explains that it talks about &quot;How to batch multiple events into a single reconciliation call&quot;. However, I could not find any information about event management in this documentation.</p>
<p>Could you please provide information/code sample about how to send Events with <code>Kubebuilder-v3/operator-sdk</code>?</p>

Fabrice Jammes
<p><a href="https://book-v1.book.kubebuilder.io/basics/simple_controller.html" rel="nofollow noreferrer">This part</a> from the official documentation should answer your question:</p>
<blockquote>
<p><strong>This business logic of the Controller is implemented in the <code>Reconcile</code> function. This function takes the Namespace and Name of a ContainerSet, allowing multiple Events to be batched together into a single Reconcile call.</strong>
The function shown here creates or updates a Deployment using the replicas and image specified in ContainerSet.Spec. Note that it sets an OwnerReference for the Deployment to enable garbage collection on the Deployment once the ContainerSet is deleted.</p>
<ol>
<li>Read the ContainerSet using the NamespacedName</li>
<li>If there is an error or it has been deleted, return</li>
<li>Create the new desired DeploymentSpec from the ContainerSetSpec</li>
<li>Read the Deployment and compare the Deployment.Spec to the ContainerSet.Spec</li>
<li>If the observed Deployment.Spec does not match the desired spec
-   Deployment was not found: create a new Deployment
-   Deployment was found and changes are needed: update the Deployment</li>
</ol>
</blockquote>
<p>There you can also find example with the code.</p>
