Skip to content

Commit 86f4820

Browse files
committed
🚑 hotfix
modified: controllers/pod_controller_functions.go
1 parent 2a721d6 commit 86f4820

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/pod_controller_functions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ func (r *PodReconciler) UpdateKubeObject(pod client.Object, ctx context.Context)
3636
if apierrors.IsConflict(err) {
3737
// The Pod has been updated since we read it.
3838
// Requeue the Pod to try to reconciliate again.
39-
return ctrl.Result{Requeue: true}, nil
39+
return ctrl.Result{Requeue: true}, err
4040
}
4141
if apierrors.IsNotFound(err) {
4242
// The Pod has been deleted since we read it.
4343
// Requeue the Pod to try to reconciliate again.
44-
return ctrl.Result{Requeue: false}, nil
44+
return ctrl.Result{Requeue: false}, err
4545
}
4646
log.Error(err, "unable to update pod")
47-
return ctrl.Result{}, err
47+
return ctrl.Result{Requeue: false}, err
4848
}
4949
return ctrl.Result{}, nil
5050
}

0 commit comments

Comments
 (0)