-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Hi,
I'm using the common way to get CR file creation using event manager:
func (r *PolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
err := r.Get(ctx, req.NamespacedName, &policyV3)
if err == nil {
return r.handleV3Policy(req, &policyV3)
} else if apierrors.IsNotFound(err) {
r.tracer.Infof("delete event detected. removing policy %v", req.NamespacedName)
return r.handleDeletion(req)
}
Usually the CR file is deleted and then a new updated one is created .
The problem is that I'm getting a NotFound error often on creation event.
Metadata
Metadata
Assignees
Labels
No labels