Skip to content

Commit

Permalink
Locks: whack-a-mole on JSON Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pier-oliviert committed Oct 9, 2024
1 parent 1ff87b9 commit 114983d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/konditions/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *Lock) Execute(ctx context.Context, task Task) (err error) {
return LockNotReleasedErr
}

patch := client.StrategicMergeFrom(l.obj)
patch := client.MergeFrom(l.obj)

l.obj.Conditions().SetCondition(Condition{
Type: l.condition.Type,
Expand All @@ -221,7 +221,7 @@ func (l *Lock) Execute(ctx context.Context, task Task) (err error) {
if err := l.client.Status().Patch(ctx, l.obj, patch); err != nil {
return err
}
patch = client.StrategicMergeFrom(l.obj)
patch = client.MergeFrom(l.obj)

err = task(l.condition)

Expand Down

0 comments on commit 114983d

Please sign in to comment.