File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ package broker
1818
1919import (
2020 "context"
21+ "os"
22+
23+ "knative.dev/pkg/injection"
2124
2225 "knative.dev/eventing/pkg/auth"
2326
@@ -69,7 +72,12 @@ func NewController(
6972 logger := logging .FromContext (ctx )
7073 brokerInformer := brokerinformer .Get (ctx )
7174 subscriptionInformer := subscriptioninformer .Get (ctx )
72- endpointsInformer := namespacedinformerfactory .Get (ctx ).Core ().V1 ().Endpoints ()
75+
76+ endpointsInformer := namespacedinformerfactory .Get (ctx ).Core ().V1 ().Endpoints ().Informer ()
77+ if err := controller .StartInformers (ctx .Done (), endpointsInformer ); err != nil {
78+ logger .Fatalw ("Failed to start namespaced endpoints informer" , zap .Error (err ))
79+ }
80+
7381 configmapInformer := configmapinformer .Get (ctx )
7482 secretInformer := secretinformer .Get (ctx )
7583 eventPolicyInformer := eventpolicyinformer .Get (ctx )
You can’t perform that action at this time.
0 commit comments