From 5fcb5c8363175daab0b693da29a7871e49772b0b Mon Sep 17 00:00:00 2001 From: nolancon Date: Mon, 16 Dec 2024 09:08:27 -0500 Subject: [PATCH] test --- internal/controller/bucket/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/bucket/helpers.go b/internal/controller/bucket/helpers.go index 957642ef..43a8ec7a 100644 --- a/internal/controller/bucket/helpers.go +++ b/internal/controller/bucket/helpers.go @@ -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 }