Skip to content

Commit ca235da

Browse files
committed
fixup! fixup! fixup! [control-operator] finalizer blocks deletion of task until all pods are gone
1 parent d4bd623 commit ca235da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

control-operator/internal/controller/task_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ func (r *TaskReconciler) consumeGRPCConsumerIfReady(ctx context.Context, t *alie
272272

273273
// handleFinalizer sets the finalizer, when Task isn't marked for deletion, and when deletion reconcile is triggered
274274
// it then clears the gRPC connection and deletes the underlying POD and doesn't allow Task to be deleted
275-
// until POD is gone.
275+
// until pod is gone.
276276
// Note: if you add finalizer to a task you cannot delete it unless you remove the finalizer, run:
277277
// kubectl patch task --type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
278-
func (r *TaskReconciler) handleFinalizer(ctx context.Context, t *aliecsv1alpha1.Task, log logr.Logger) (ctrl.Result, bool, error) {
278+
func (r *TaskReconciler) handleFinalizer(ctx context.Context, t *aliecsv1alpha1.Task, log logr.Logger) (result ctrl.Result, stopReconciliation bool, err error) {
279279
if t.DeletionTimestamp.IsZero() {
280280
if controllerutil.AddFinalizer(t, taskFinalizer) {
281281
return ctrl.Result{}, true, r.Update(ctx, t)

0 commit comments

Comments
 (0)