Skip to content

Commit

Permalink
Run reconcile loop on every task change
Browse files Browse the repository at this point in the history
  • Loading branch information
mtneug committed Dec 5, 2024
1 parent 98ab769 commit 881ea16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/workflow-manager/controllers/workflow_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
kerrors "k8s.io/apimachinery/pkg/util/errors"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/builder"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
logf "sigs.k8s.io/controller-runtime/pkg/log"
Expand Down Expand Up @@ -296,6 +297,6 @@ func (r *WorkflowReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named(WorkflowControllerName).
For(&enginev1.Workflow{}).
Owns(&enginev1.Task{}).
Owns(&enginev1.Task{}, builder.MatchEveryOwner).
Complete(r)
}

0 comments on commit 881ea16

Please sign in to comment.