Skip to content

Commit

Permalink
added label selector for mtchannel_broker
Browse files Browse the repository at this point in the history
  • Loading branch information
yijie-04 committed Jan 10, 2024
1 parent 37f0dff commit a414f3e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmd/mtchannel_broker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ import (
"context"

"knative.dev/pkg/injection/sharedmain"
"knative.dev/eventing/pkg/apis/sources"

filteredFactory "knative.dev/pkg/client/injection/kube/informers/factory/filtered"
"knative.dev/pkg/signals"

"knative.dev/eventing/pkg/reconciler/broker"
mttrigger "knative.dev/eventing/pkg/reconciler/broker/trigger"
)
Expand All @@ -33,7 +37,12 @@ const (
)

func main() {
sharedmain.Main(
ctx := signals.NewContext()

ctx = filteredFactory.WithSelectors(ctx,
sources.OIDCTokenRoleLabelSelector)

sharedmain.MainWithContext(ctx,
component,

broker.NewController,
Expand Down

0 comments on commit a414f3e

Please sign in to comment.