mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-01 00:00:03 +08:00
./hack/update-codegen.sh
Kubernetes-commit: 5594d94e6716599981948d21599700d6dfe43b11
This commit is contained in:
committed by
Kubernetes Publisher
parent
f5fbdf257a
commit
f2b8c99eff
@@ -57,7 +57,7 @@ func NewFooInformer(client versioned.Interface, namespace string, resyncPeriod t
|
|||||||
// one. This reduces memory footprint and number of connections to the server.
|
// one. This reduces memory footprint and number of connections to the server.
|
||||||
func NewFilteredFooInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
func NewFilteredFooInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
||||||
return cache.NewSharedIndexInformer(
|
return cache.NewSharedIndexInformer(
|
||||||
&cache.ListWatch{
|
cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{
|
||||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||||
if tweakListOptions != nil {
|
if tweakListOptions != nil {
|
||||||
tweakListOptions(&options)
|
tweakListOptions(&options)
|
||||||
@@ -82,7 +82,7 @@ func NewFilteredFooInformer(client versioned.Interface, namespace string, resync
|
|||||||
}
|
}
|
||||||
return client.SamplecontrollerV1alpha1().Foos(namespace).Watch(ctx, options)
|
return client.SamplecontrollerV1alpha1().Foos(namespace).Watch(ctx, options)
|
||||||
},
|
},
|
||||||
},
|
}, client),
|
||||||
&apissamplecontrollerv1alpha1.Foo{},
|
&apissamplecontrollerv1alpha1.Foo{},
|
||||||
resyncPeriod,
|
resyncPeriod,
|
||||||
indexers,
|
indexers,
|
||||||
|
|||||||
Reference in New Issue
Block a user