Skip to content

Commit

Permalink
Merge pull request #116 from qixiang/update-instead-of-patch
Browse files Browse the repository at this point in the history
Update DependencyUpdateCheck instead of patching
  • Loading branch information
gnaponie authored Dec 9, 2024
2 parents a8749f6 + b05514a commit e3b71bd
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 e3b71bd

Please sign in to comment.