Skip to content

Commit 060934f

Browse files
committed
Start informer
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
1 parent 9429896 commit 060934f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/reconciler/broker/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ func NewController(
6969
logger := logging.FromContext(ctx)
7070
brokerInformer := brokerinformer.Get(ctx)
7171
subscriptionInformer := subscriptioninformer.Get(ctx)
72+
7273
endpointsInformer := namespacedinformerfactory.Get(ctx).Core().V1().Endpoints()
74+
if err := controller.StartInformers(ctx.Done(), endpointsInformer.Informer()); err != nil {
75+
logger.Fatalw("Failed to start namespaced endpoints informer", zap.Error(err))
76+
}
77+
7378
configmapInformer := configmapinformer.Get(ctx)
7479
secretInformer := secretinformer.Get(ctx)
7580
eventPolicyInformer := eventpolicyinformer.Get(ctx)

0 commit comments

Comments
 (0)