File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
pkg/controllers/execution Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,11 @@ func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error {
146146 }
147147
148148 if c .WorkPredicateFunc != nil {
149- // Combine custom predicate with delete ignore
149+ // Combine custom predicate with delete ignore for karmada-controller-manager (push) mode
150150 ctrlBuilder .For (& workv1alpha1.Work {}, builder .WithPredicates (c .WorkPredicateFunc , deleteIgnorePred ))
151151 } else {
152- // Use push cluster predicate with delete ignore for karmada-controller-manager mode
153- pushClusterPred := helper .WorkWithinPushClusterPredicate (mgr )
154- ctrlBuilder .For (& workv1alpha1.Work {}, builder .WithPredicates (pushClusterPred , deleteIgnorePred ))
152+ // karmada-agent (pull) mode - just ignore delete events
153+ ctrlBuilder .For (& workv1alpha1.Work {}, builder .WithPredicates (deleteIgnorePred ))
155154 }
156155
157156 return ctrlBuilder .Complete (c )
You can’t perform that action at this time.
0 commit comments