Merge branch 'master' into master

This commit is contained in:
J. Fernández 2025-03-04 17:25:26 +01:00 committed by GitHub
commit bff5a0294b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -154,15 +154,15 @@ func (r *AutoscalingRunnerSetReconciler) Reconcile(ctx context.Context, req ctrl
if autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion] != build.Version { if autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion] != build.Version {
if err := r.Delete(ctx, autoscalingRunnerSet); err != nil { if err := r.Delete(ctx, autoscalingRunnerSet); err != nil {
log.Error(err, "Failed to delete autoscaling runner set on version mismatch", log.Error(err, "Failed to delete autoscaling runner set on version mismatch",
"targetVersion", build.Version, "buildVersion", build.Version,
"actualVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], "autoscalingRunnerSetVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion],
) )
return ctrl.Result{}, nil return ctrl.Result{}, nil
} }
log.Info("Autoscaling runner set version doesn't match the build version. Deleting the resource.", log.Info("Autoscaling runner set version doesn't match the build version. Deleting the resource.",
"targetVersion", build.Version, "buildVersion", build.Version,
"actualVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion], "autoscalingRunnerSetVersion", autoscalingRunnerSet.Labels[LabelKeyKubernetesVersion],
) )
return ctrl.Result{}, nil return ctrl.Result{}, nil
} }