Skip to content

Commit

Permalink
Use filtered global resync for triggers (#3682)
Browse files Browse the repository at this point in the history
The current global resync accidently queues triggers that aren't
associated with our brokers.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
Co-authored-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
knative-prow-robot and pierDipi authored Feb 8, 2024
1 parent a045337 commit 626f5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/pkg/reconciler/trigger/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func NewController(ctx context.Context, watcher configmap.Watcher, configs *conf
})

globalResync := func(_ interface{}) {
impl.GlobalResync(triggerInformer.Informer())
impl.FilteredGlobalResync(filterTriggers(reconciler.BrokerLister, kafka.BrokerClass, FinalizerName), triggerInformer.Informer())
}

configmapInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{
Expand Down

0 comments on commit 626f5b7

Please sign in to comment.