Skip to content

Commit

Permalink
Use Patch for object update
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Dec 17, 2024
1 parent 21cec7c commit 227d64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/bucket/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (c *external) updateBucketCR(ctx context.Context, bucket *v1alpha1.Bucket,
case NeedsStatusUpdate:
return c.kubeClient.Status().Patch(ctx, bucket, client.MergeFrom(bucketDeepCopy))
case NeedsObjectUpdate:
return c.kubeClient.Update(ctx, bucket)
return c.kubeClient.Patch(ctx, bucket, client.MergeFrom(bucketDeepCopy))
default:
return nil
}
Expand Down

0 comments on commit 227d64e

Please sign in to comment.