Skip to content

Commit 2a66b70

Browse files
committed
push-cluster-pred removed!
Signed-off-by: rohan-019 <[email protected]>
1 parent 0a85b02 commit 2a66b70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/controllers/execution/execution_controller.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)