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 {