Add log lines

This commit is contained in:
Nikola Jokic 2025-09-26 13:12:14 +02:00
parent 5488aeb247
commit 813377cdad
No known key found for this signature in database
GPG Key ID: E4104494F9B8DDF6
1 changed files with 3 additions and 1 deletions

View File

@ -337,6 +337,8 @@ func (r *EphemeralRunnerReconciler) Reconcile(ctx context.Context, req ctrl.Requ
return ctrl.Result{}, err
}
log.Info("Deleted the ephemeral runner that has a job assigned but the pod has failed")
log.Info("Trying to remove the runner from the service")
actionsClient, err := r.GetActionsService(ctx, ephemeralRunner)
if err != nil {
log.Error(err, "Failed to get actions client for checking the job status")
@ -346,7 +348,7 @@ func (r *EphemeralRunnerReconciler) Reconcile(ctx context.Context, req ctrl.Requ
log.Error(err, "Failed to remove the runner from the service")
return ctrl.Result{}, nil
}
log.Info("Removed the runner from the service")
return ctrl.Result{}, nil
}
if err := r.deletePodAsFailed(ctx, ephemeralRunner, pod, log); err != nil {