Skip to content

Commit

Permalink
Merge pull request #3069 from aledbf/replace-deprecated-api
Browse files Browse the repository at this point in the history
Replace client-go deprecated method
  • Loading branch information
k8s-ci-robot authored Sep 10, 2018
2 parents 68a12e2 + 281318b commit 3cac3b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/ingress/controller/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ func New(checkOCSP bool,
store.listers.IngressAnnotation.Store = cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc)

// create informers factory, enable and assign required informers
infFactory := informers.NewFilteredSharedInformerFactory(client, resyncPeriod, namespace, func(*metav1.ListOptions) {})
infFactory := informers.NewSharedInformerFactoryWithOptions(client, resyncPeriod,
informers.WithNamespace(namespace),
informers.WithTweakListOptions(func(*metav1.ListOptions) {}))

store.informers.Ingress = infFactory.Extensions().V1beta1().Ingresses().Informer()
store.listers.Ingress.Store = store.informers.Ingress.GetStore()
Expand Down

0 comments on commit 3cac3b6

Please sign in to comment.