Skip to content

Commit

Permalink
Fix conflict RemoteMachine merges (k0smotron#922)
Browse files Browse the repository at this point in the history
Signed-off-by: makhov <[email protected]>
  • Loading branch information
makhov authored Feb 18, 2025
1 parent 219dfba commit 75e2ad4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (r *RemoteMachineController) Reconcile(ctx context.Context, req ctrl.Reques
}

err = retry.RetryOnConflict(retry.DefaultBackoff, func() error {
return r.Status().Patch(ctx, m, client.Merge)
return r.Status().Patch(ctx, m, client.MergeFrom(machine))
})
if err != nil {
log.Error(err, "Failed to update Machine")
Expand Down

0 comments on commit 75e2ad4

Please sign in to comment.