Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Hybner <git@hybner.net>
  • Loading branch information
Lukas Hybner committed Oct 19, 2021
1 parent 1ec05a9 commit 210c537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/githubactionrunner_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ func (r *GithubActionRunnerReconciler) handleFinalization(ctx context.Context, c
if err := r.unregisterRunner(ctx, cr, item); err != nil {
return err
}
if item.pod.Status.Phase == corev1.PodSucceeded {
logr.FromContext(ctx).Info("Deleting pod " + item.pod.Name)
if isCompleted(&item.pod) {
logr.FromContext(ctx).Info("Deleting succeeded pod", "podname", item.pod.Name)
err := r.DeleteResourceIfExists(ctx, &item.pod)
if err != nil {
return err
Expand Down

0 comments on commit 210c537

Please sign in to comment.