diff --git a/control-plane/pkg/reconciler/broker/controller.go b/control-plane/pkg/reconciler/broker/controller.go index 798d178b29..d488bee568 100644 --- a/control-plane/pkg/reconciler/broker/controller.go +++ b/control-plane/pkg/reconciler/broker/controller.go @@ -83,7 +83,9 @@ func NewController(ctx context.Context, watcher configmap.Watcher, env *config.E ) } - impl := brokerreconciler.NewImpl(ctx, reconciler, kafka.BrokerClass) + impl := brokerreconciler.NewImpl(ctx, reconciler, kafka.BrokerClass, func(impl *controller.Impl) controller.Options { + return controller.Options{PromoteFilterFunc: kafka.BrokerClassFilter()} + }) reconciler.Resolver = resolver.NewURIResolverFromTracker(ctx, impl.Tracker) reconciler.Prober = prober.NewAsync(ctx, http.DefaultClient, env.IngressPodPort, reconciler.ReceiverSelector(), impl.EnqueueKey) diff --git a/control-plane/pkg/reconciler/trigger/controller.go b/control-plane/pkg/reconciler/trigger/controller.go index 8f4bffe99c..cee3304f83 100644 --- a/control-plane/pkg/reconciler/trigger/controller.go +++ b/control-plane/pkg/reconciler/trigger/controller.go @@ -81,6 +81,7 @@ func NewController(ctx context.Context, _ configmap.Watcher, configs *config.Env FinalizerName: FinalizerName, AgentName: ControllerAgentName, SkipStatusUpdates: false, + PromoteFilterFunc: filterTriggers(reconciler.BrokerLister), } }) diff --git a/control-plane/pkg/reconciler/trigger/v2/controllerv2.go b/control-plane/pkg/reconciler/trigger/v2/controllerv2.go index 5d87484fb8..9191a257e2 100644 --- a/control-plane/pkg/reconciler/trigger/v2/controllerv2.go +++ b/control-plane/pkg/reconciler/trigger/v2/controllerv2.go @@ -72,6 +72,7 @@ func NewControllerV2(ctx context.Context, configs *config.Env) *controller.Impl FinalizerName: FinalizerName, AgentName: ControllerAgentName, SkipStatusUpdates: false, + PromoteFilterFunc: filterTriggers(reconciler.BrokerLister), } })