From b098e6a9f178b4a0f7499cf3795fc6f4751e6693 Mon Sep 17 00:00:00 2001 From: Armando Ruocco Date: Wed, 18 Dec 2024 11:31:23 +0100 Subject: [PATCH] chore: use deepCopyInto Signed-off-by: Armando Ruocco --- pkg/resources/status/conditions.go | 2 +- pkg/resources/status/update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/resources/status/conditions.go b/pkg/resources/status/conditions.go index 54b09a056b..47b4427b5f 100644 --- a/pkg/resources/status/conditions.go +++ b/pkg/resources/status/conditions.go @@ -70,7 +70,7 @@ func PatchConditionsWithOptimisticLock( return err } - cluster.Status.Conditions = updatedCluster.Status.Conditions + updatedCluster.DeepCopyInto(cluster) return nil }); err != nil { diff --git a/pkg/resources/status/update.go b/pkg/resources/status/update.go index 87cc652236..469eacc354 100644 --- a/pkg/resources/status/update.go +++ b/pkg/resources/status/update.go @@ -63,7 +63,7 @@ func UpdateAndRefresh( return err } - cluster.Status = updatedCluster.Status + updatedCluster.DeepCopyInto(cluster) return nil }); err != nil {