Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Dec 16, 2024
1 parent 893824e commit fba868a
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, updatedBucketCopy, client.MergeFrom(bucketDeepCopy))
case NeedsObjectUpdate:
return c.kubeClient.Patch(ctx, bucket, client.MergeFrom(updatedBucketCopy))
return c.kubeClient.Patch(ctx, updatedBucketCopy, client.MergeFrom(bucketDeepCopy))
default:
return nil
}
Expand Down

0 comments on commit fba868a

Please sign in to comment.