From 70bf6aad6fed4ac078c9ba87cfe64b89b4b64d86 Mon Sep 17 00:00:00 2001 From: Armando Ruocco Date: Wed, 8 Jan 2025 16:57:11 +0100 Subject: [PATCH] chore: correct typos in the `resource/status` pkg (#6543) Signed-off-by: Armando Ruocco --- pkg/resources/status/conditions.go | 2 +- pkg/resources/status/{update.go => patch.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename pkg/resources/status/{update.go => patch.go} (97%) diff --git a/pkg/resources/status/conditions.go b/pkg/resources/status/conditions.go index 54b09a056b..c8b814aded 100644 --- a/pkg/resources/status/conditions.go +++ b/pkg/resources/status/conditions.go @@ -74,7 +74,7 @@ func PatchConditionsWithOptimisticLock( return nil }); err != nil { - return fmt.Errorf("while updating conditions: %w", err) + return fmt.Errorf("while patching conditions: %w", err) } return nil diff --git a/pkg/resources/status/update.go b/pkg/resources/status/patch.go similarity index 97% rename from pkg/resources/status/update.go rename to pkg/resources/status/patch.go index 3f916cd0e1..3613a46f43 100644 --- a/pkg/resources/status/update.go +++ b/pkg/resources/status/patch.go @@ -73,7 +73,7 @@ func PatchWithOptimisticLock( return nil }); err != nil { - return fmt.Errorf("while updating conditions: %w", err) + return fmt.Errorf("while patching status: %w", err) } if cluster.Status.Phase != apiv1.PhaseHealthy && origCluster.Status.Phase == apiv1.PhaseHealthy {