Skip to content

Commit

Permalink
Add secret informer and lister to controller (#495)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Jan 27, 2020
1 parent b88239d commit 1267de9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"k8s.io/client-go/dynamic"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
corelisters "k8s.io/client-go/listers/core/v1"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
core_util "kmodules.xyz/client-go/core/v1"
Expand Down Expand Up @@ -79,6 +80,10 @@ type Config struct {
RSQueue *queue.Worker
RSInformer cache.SharedIndexInformer

// Secret
SecretInformer cache.SharedIndexInformer
SecretLister corelisters.SecretLister

OperatorNamespace string
GoverningService string
ResyncPeriod time.Duration
Expand Down

0 comments on commit 1267de9

Please sign in to comment.