From 6d9904fc68bbaf82e43421a3d47c3885337ce868 Mon Sep 17 00:00:00 2001 From: Ville Aikas Date: Thu, 3 Sep 2020 12:11:29 -0700 Subject: [PATCH] remove unused triggerlister --- pkg/reconciler/mtbroker/broker.go | 2 -- pkg/reconciler/mtbroker/broker_test.go | 2 -- pkg/reconciler/mtbroker/controller.go | 3 --- 3 files changed, 7 deletions(-) diff --git a/pkg/reconciler/mtbroker/broker.go b/pkg/reconciler/mtbroker/broker.go index 1538cf136eb..cad000f9e93 100644 --- a/pkg/reconciler/mtbroker/broker.go +++ b/pkg/reconciler/mtbroker/broker.go @@ -36,7 +36,6 @@ import ( messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1" clientset "knative.dev/eventing/pkg/client/clientset/versioned" brokerreconciler "knative.dev/eventing/pkg/client/injection/reconciler/eventing/v1/broker" - eventinglisters "knative.dev/eventing/pkg/client/listers/eventing/v1" messaginglisters "knative.dev/eventing/pkg/client/listers/messaging/v1" "knative.dev/eventing/pkg/duck" "knative.dev/eventing/pkg/reconciler/mtbroker/resources" @@ -57,7 +56,6 @@ type Reconciler struct { // listers index properties about resources endpointsLister corev1listers.EndpointsLister subscriptionLister messaginglisters.SubscriptionLister - triggerLister eventinglisters.TriggerLister configmapLister corev1listers.ConfigMapLister channelableTracker duck.ListableTracker diff --git a/pkg/reconciler/mtbroker/broker_test.go b/pkg/reconciler/mtbroker/broker_test.go index 72a81ea3d72..022213dbf54 100644 --- a/pkg/reconciler/mtbroker/broker_test.go +++ b/pkg/reconciler/mtbroker/broker_test.go @@ -435,8 +435,6 @@ func TestReconcile(t *testing.T) { eventingClientSet: fakeeventingclient.Get(ctx), dynamicClientSet: fakedynamicclient.Get(ctx), subscriptionLister: listers.GetSubscriptionLister(), - triggerLister: listers.GetTriggerLister(), - endpointsLister: listers.GetEndpointsLister(), configmapLister: listers.GetConfigMapLister(), kresourceTracker: duck.NewListableTracker(ctx, conditions.Get, func(types.NamespacedName) {}, 0), diff --git a/pkg/reconciler/mtbroker/controller.go b/pkg/reconciler/mtbroker/controller.go index dc57b259438..2fc508bc3cf 100644 --- a/pkg/reconciler/mtbroker/controller.go +++ b/pkg/reconciler/mtbroker/controller.go @@ -25,7 +25,6 @@ import ( eventingclient "knative.dev/eventing/pkg/client/injection/client" "knative.dev/eventing/pkg/client/injection/ducks/duck/v1/channelable" brokerinformer "knative.dev/eventing/pkg/client/injection/informers/eventing/v1/broker" - triggerinformer "knative.dev/eventing/pkg/client/injection/informers/eventing/v1/trigger" subscriptioninformer "knative.dev/eventing/pkg/client/injection/informers/messaging/v1/subscription" brokerreconciler "knative.dev/eventing/pkg/client/injection/reconciler/eventing/v1/broker" "knative.dev/eventing/pkg/duck" @@ -60,7 +59,6 @@ func NewController( ) *controller.Impl { logger := logging.FromContext(ctx) brokerInformer := brokerinformer.Get(ctx) - triggerInformer := triggerinformer.Get(ctx) subscriptionInformer := subscriptioninformer.Get(ctx) endpointsInformer := endpointsinformer.Get(ctx) configmapInformer := configmapinformer.Get(ctx) @@ -77,7 +75,6 @@ func NewController( dynamicClientSet: dynamicclient.Get(ctx), endpointsLister: endpointsInformer.Lister(), subscriptionLister: subscriptionInformer.Lister(), - triggerLister: triggerInformer.Lister(), brokerClass: eventing.MTChannelBrokerClassValue, configmapLister: configmapInformer.Lister(), }