Skip to content

Commit

Permalink
Use filtered global resync for triggers (#3681)
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 <pierdipi@redhat.com>
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
knative-prow-robot and pierDipi authored Feb 8, 2024
1 parent fff36ac commit a3ac3c2
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 a3ac3c2

Please sign in to comment.