From e12a892748f024abfc7c7341e9f7983b88e16498 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Tue, 4 Mar 2025 17:01:34 +0100 Subject: [PATCH] Rename log from target/actual to build/autoscalingRunnerSet version (#3957) --- .../actions.github.com/autoscalingrunnerset_controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/actions.github.com/autoscalingrunnerset_controller.go b/controllers/actions.github.com/autoscalingrunnerset_controller.go index 6746df3d..5ea12298 100644 --- a/controllers/actions.github.com/autoscalingrunnerset_controller.go +++ b/controllers/actions.github.com/autoscalingrunnerset_controller.go @@ -154,15 +154,15 @@ func (r *AutoscalingRunnerSetReconciler) Reconcile(ctx context.Context, req ctrl if autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion] != build.Version { if err := r.Delete(ctx, autoscalingRunnerSet); err != nil { log.Error(err, "Failed to delete autoscaling runner set on version mismatch", - "targetVersion", build.Version, - "actualVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], + "buildVersion", build.Version, + "autoscalingRunnerSetVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], ) return ctrl.Result{}, nil } log.Info("Autoscaling runner set version doesn't match the build version. Deleting the resource.", - "targetVersion", build.Version, - "actualVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], + "buildVersion", build.Version, + "autoscalingRunnerSetVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], ) return ctrl.Result{}, nil }