From 813377cdadcc9f7fb44055ad57feb5add7e2a13c Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Fri, 26 Sep 2025 13:12:14 +0200 Subject: [PATCH] Add log lines --- controllers/actions.github.com/ephemeralrunner_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/actions.github.com/ephemeralrunner_controller.go b/controllers/actions.github.com/ephemeralrunner_controller.go index 1396af5f..077fd912 100644 --- a/controllers/actions.github.com/ephemeralrunner_controller.go +++ b/controllers/actions.github.com/ephemeralrunner_controller.go @@ -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 {