Skip to content

Commit

Permalink
Be more specific in finalizer update err.
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Andrews <scott@andrews.me>
  • Loading branch information
gmrodgers and scothis committed Apr 7, 2022
1 parent b8fd9d1 commit 1edb1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reconcilers/reconcilers.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (r *ParentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
if updateErr := r.Update(ctx, parent); updateErr != nil {
log.Error(updateErr, "unable to update", typeName(r.Type), parent)
r.Recorder.Eventf(parent, corev1.EventTypeWarning, "UpdateFailed",
"Failed to update: %v", updateErr)
"Failed to update finalizers: %v", updateErr)
return ctrl.Result{}, updateErr
}
r.Recorder.Eventf(parent, corev1.EventTypeNormal, "Updated", "Updated")
Expand Down

0 comments on commit 1edb1b6

Please sign in to comment.