Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yijie-04 committed Apr 2, 2024
1 parent 67b9c9a commit 4dd8713
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions control-plane/pkg/reconciler/trigger/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package trigger
import (
"context"

"knative.dev/eventing/pkg/auth"
"go.uber.org/zap"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
"knative.dev/eventing/pkg/auth"
v1 "knative.dev/eventing/pkg/client/informers/externalversions/eventing/v1"
kubeclient "knative.dev/pkg/client/injection/kube/client"
configmapinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/configmap"
Expand Down Expand Up @@ -157,7 +157,7 @@ func NewController(ctx context.Context, watcher configmap.Watcher, configs *conf

// Reconciler Trigger when the OIDC service account changes
// serviceaccountInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{
oidcServiceaccountInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{
oidcServiceaccountInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{
FilterFunc: controller.FilterController(&eventing.Trigger{}),
Handler: controller.HandleAll(impl.EnqueueControllerOf),
})
Expand Down
8 changes: 4 additions & 4 deletions control-plane/pkg/reconciler/trigger/namespaced_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"knative.dev/eventing-kafka-broker/control-plane/pkg/kafka/clientpool"
"knative.dev/eventing-kafka-broker/control-plane/pkg/kafka/offset"

"knative.dev/eventing/pkg/auth"
"k8s.io/client-go/tools/cache"
"knative.dev/eventing/pkg/auth"
kubeclient "knative.dev/pkg/client/injection/kube/client"
configmapinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/configmap"
podinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/pod"
Expand Down Expand Up @@ -84,10 +84,10 @@ func NewNamespacedController(ctx context.Context, watcher configmap.Watcher, con
FlagsHolder: &FlagsHolder{
Flags: feature.Flags{},
},
BrokerLister: brokerInformer.Lister(),
ConfigMapLister: configmapInformer.Lister(),
BrokerLister: brokerInformer.Lister(),
ConfigMapLister: configmapInformer.Lister(),
// ServiceAccountLister: serviceaccountInformer.Lister(),
ServiceAccountLister: oidcServiceaccountInformer.Lister(),
ServiceAccountLister: oidcServiceaccountInformer.Lister(),
EventingClient: eventingclient.Get(ctx),
Env: configs,
GetKafkaClient: clientPool.GetClient,
Expand Down

0 comments on commit 4dd8713

Please sign in to comment.