@@ -24,8 +24,6 @@ import (
24
24
"sync"
25
25
"time"
26
26
27
- kcpcache "github.com/kcp-dev/apimachinery/v2/pkg/cache"
28
- "github.com/kcp-dev/apimachinery/v2/third_party/informers"
29
27
apierrors "k8s.io/apimachinery/pkg/api/errors"
30
28
"k8s.io/apimachinery/pkg/api/meta"
31
29
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -48,7 +46,7 @@ type InformersOpts struct {
48
46
Mapper meta.RESTMapper
49
47
ResyncPeriod time.Duration
50
48
Namespace string
51
- NewInformer func (cache.ListerWatcher , runtime.Object , time.Duration , cache.Indexers ) kcpcache. ScopeableSharedIndexInformer
49
+ NewInformer func (cache.ListerWatcher , runtime.Object , time.Duration , cache.Indexers ) cache. SharedIndexInformer
52
50
Selector Selector
53
51
Transform cache.TransformFunc
54
52
UnsafeDisableDeepCopy bool
@@ -57,7 +55,7 @@ type InformersOpts struct {
57
55
58
56
// NewInformers creates a new InformersMap that can create informers under the hood.
59
57
func NewInformers (config * rest.Config , options * InformersOpts ) * Informers {
60
- newInformer := informers .NewSharedIndexInformer
58
+ newInformer := cache .NewSharedIndexInformer
61
59
if options .NewInformer != nil {
62
60
newInformer = options .NewInformer
63
61
}
@@ -177,7 +175,7 @@ type Informers struct {
177
175
unsafeDisableDeepCopy bool
178
176
179
177
// NewInformer allows overriding of the shared index informer constructor for testing.
180
- newInformer func (cache.ListerWatcher , runtime.Object , time.Duration , cache.Indexers ) kcpcache. ScopeableSharedIndexInformer
178
+ newInformer func (cache.ListerWatcher , runtime.Object , time.Duration , cache.Indexers ) cache. SharedIndexInformer
181
179
182
180
// WatchErrorHandler allows the shared index informer's
183
181
// watchErrorHandler to be set by overriding the options
0 commit comments