./hack/update-codegen.sh

Kubernetes-commit: 5594d94e6716599981948d21599700d6dfe43b11
This commit is contained in:
Lukasz Szaszkiewicz
2025-10-17 14:35:36 +02:00
committed by Kubernetes Publisher
parent f5fbdf257a
commit f2b8c99eff

View File

@@ -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.
func NewFilteredFooInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
@@ -82,7 +82,7 @@ func NewFilteredFooInformer(client versioned.Interface, namespace string, resync
}
return client.SamplecontrollerV1alpha1().Foos(namespace).Watch(ctx, options)
},
},
}, client),
&apissamplecontrollerv1alpha1.Foo{},
resyncPeriod,
indexers,