Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Dec 16, 2024
1 parent 73715d3 commit 5fcb5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/bucket/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ func (c *external) updateBucketCR(ctx context.Context, bucket *v1alpha1.Bucket,
updatedBucketCopy := bucket.DeepCopy()
switch updateRequired {
case NeedsStatusUpdate:
return c.kubeClient.Status().Patch(ctx, bucket, client.MergeFrom(updatedBucketCopy))
return c.kubeClient.Status().Patch(ctx, bucketDeepCopy, client.MergeFrom(updatedBucketCopy))
case NeedsObjectUpdate:
return c.kubeClient.Patch(ctx, bucket, client.MergeFrom(updatedBucketCopy))
return c.kubeClient.Patch(ctx, bucketDeepCopy, client.MergeFrom(updatedBucketCopy))
default:
return nil
}
Expand Down

0 comments on commit 5fcb5c8

Please sign in to comment.