Skip to content

Commit

Permalink
Update DependencyUpdateCheck instead of patching
Browse files Browse the repository at this point in the history
  • Loading branch information
qixiang committed Dec 9, 2024
1 parent a8749f6 commit b05514a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/controller/dependencyupdatecheck_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ func (r *DependencyUpdateCheckReconciler) Reconcile(ctx context.Context, req ctr
}
dependencyupdatecheck.Annotations[MintMakerProcessedAnnotationName] = "true"

patch := client.MergeFrom(dependencyupdatecheck.DeepCopy())
err = r.Client.Patch(ctx, dependencyupdatecheck, patch)
err = r.Client.Update(ctx, dependencyupdatecheck)
if err != nil {
log.Error(err, "failed to update DependencyUpdateCheck annotations")
return ctrl.Result{}, nil
Expand Down

0 comments on commit b05514a

Please sign in to comment.