From 946613edb9645e5cc59e75c0c700d83f2481a7b1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 12:41:36 +0000 Subject: [PATCH 1/2] chore(deps): update module k8s.io/code-generator to v0.36.0 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 19a2e233a..5d689185d 100644 --- a/Makefile +++ b/Makefile @@ -381,7 +381,7 @@ KUSTOMIZE_VERSION ?= v5.8.1 CONTROLLER_TOOLS_VERSION ?= v0.20.1 ENVTEST_VERSION ?= release-0.23 GOLANGCI_LINT_VERSION ?= v2.11.4 -CODEGENERATOR_VERSION ?= v0.35.4 +CODEGENERATOR_VERSION ?= v0.36.0 KIND_VERSION ?= v0.31.0 OLM_VERSION ?= 0.42.0 From 486cf5433c02b3ee208a575b3ebc198e05ae505b Mon Sep 17 00:00:00 2001 From: Andrii Chubatiuk Date: Sat, 9 May 2026 15:46:22 +0300 Subject: [PATCH 2/2] updated generated code --- .../informers/externalversions/factory.go | 112 ++++++++++++++---- .../informers/externalversions/generic.go | 2 +- .../internalinterfaces/factory_interfaces.go | 21 +++- .../externalversions/operator/interface.go | 2 +- .../externalversions/operator/v1/interface.go | 2 +- .../externalversions/operator/v1/vlagent.go | 50 +++++--- .../externalversions/operator/v1/vlcluster.go | 50 +++++--- .../externalversions/operator/v1/vlsingle.go | 50 +++++--- .../externalversions/operator/v1/vmanomaly.go | 50 +++++--- .../externalversions/operator/v1/vtcluster.go | 50 +++++--- .../externalversions/operator/v1/vtsingle.go | 50 +++++--- .../operator/v1alpha1/interface.go | 2 +- .../operator/v1alpha1/vmdistributed.go | 50 +++++--- .../operator/v1beta1/interface.go | 2 +- .../operator/v1beta1/vlogs.go | 50 +++++--- .../operator/v1beta1/vmagent.go | 50 +++++--- .../operator/v1beta1/vmalert.go | 50 +++++--- .../operator/v1beta1/vmalertmanager.go | 50 +++++--- .../operator/v1beta1/vmalertmanagerconfig.go | 50 +++++--- .../operator/v1beta1/vmauth.go | 50 +++++--- .../operator/v1beta1/vmcluster.go | 50 +++++--- .../operator/v1beta1/vmnodescrape.go | 50 +++++--- .../operator/v1beta1/vmpodscrape.go | 50 +++++--- .../operator/v1beta1/vmprobe.go | 50 +++++--- .../operator/v1beta1/vmrule.go | 50 +++++--- .../operator/v1beta1/vmscrapeconfig.go | 50 +++++--- .../operator/v1beta1/vmservicescrape.go | 50 +++++--- .../operator/v1beta1/vmsingle.go | 50 +++++--- .../operator/v1beta1/vmstaticscrape.go | 50 +++++--- .../operator/v1beta1/vmuser.go | 50 +++++--- .../operator/v1/expansion_generated.go | 2 +- api/client/listers/operator/v1/vlagent.go | 2 +- api/client/listers/operator/v1/vlcluster.go | 2 +- api/client/listers/operator/v1/vlsingle.go | 2 +- api/client/listers/operator/v1/vmanomaly.go | 2 +- api/client/listers/operator/v1/vtcluster.go | 2 +- api/client/listers/operator/v1/vtsingle.go | 2 +- .../operator/v1alpha1/expansion_generated.go | 2 +- .../operator/v1alpha1/vmdistributed.go | 2 +- .../operator/v1beta1/expansion_generated.go | 2 +- api/client/listers/operator/v1beta1/vlogs.go | 2 +- .../listers/operator/v1beta1/vmagent.go | 2 +- .../listers/operator/v1beta1/vmalert.go | 2 +- .../operator/v1beta1/vmalertmanager.go | 2 +- .../operator/v1beta1/vmalertmanagerconfig.go | 2 +- api/client/listers/operator/v1beta1/vmauth.go | 2 +- .../listers/operator/v1beta1/vmcluster.go | 2 +- .../listers/operator/v1beta1/vmnodescrape.go | 2 +- .../listers/operator/v1beta1/vmpodscrape.go | 2 +- .../listers/operator/v1beta1/vmprobe.go | 2 +- api/client/listers/operator/v1beta1/vmrule.go | 2 +- .../operator/v1beta1/vmscrapeconfig.go | 2 +- .../operator/v1beta1/vmservicescrape.go | 2 +- .../listers/operator/v1beta1/vmsingle.go | 2 +- .../operator/v1beta1/vmstaticscrape.go | 2 +- api/client/listers/operator/v1beta1/vmuser.go | 2 +- api/client/versioned/clientset.go | 2 +- .../versioned/fake/clientset_generated.go | 4 +- api/client/versioned/fake/doc.go | 2 +- api/client/versioned/fake/register.go | 2 +- api/client/versioned/scheme/doc.go | 2 +- api/client/versioned/scheme/register.go | 2 +- api/client/versioned/typed/operator/v1/doc.go | 2 +- .../versioned/typed/operator/v1/fake/doc.go | 2 +- .../operator/v1/fake/fake_operator_client.go | 2 +- .../typed/operator/v1/fake/fake_vlagent.go | 2 +- .../typed/operator/v1/fake/fake_vlcluster.go | 2 +- .../typed/operator/v1/fake/fake_vlsingle.go | 2 +- .../typed/operator/v1/fake/fake_vmanomaly.go | 2 +- .../typed/operator/v1/fake/fake_vtcluster.go | 2 +- .../typed/operator/v1/fake/fake_vtsingle.go | 2 +- .../typed/operator/v1/generated_expansion.go | 2 +- .../typed/operator/v1/operator_client.go | 2 +- .../versioned/typed/operator/v1/vlagent.go | 2 +- .../versioned/typed/operator/v1/vlcluster.go | 2 +- .../versioned/typed/operator/v1/vlsingle.go | 2 +- .../versioned/typed/operator/v1/vmanomaly.go | 2 +- .../versioned/typed/operator/v1/vtcluster.go | 2 +- .../versioned/typed/operator/v1/vtsingle.go | 2 +- .../versioned/typed/operator/v1alpha1/doc.go | 2 +- .../typed/operator/v1alpha1/fake/doc.go | 2 +- .../v1alpha1/fake/fake_operator_client.go | 2 +- .../v1alpha1/fake/fake_vmdistributed.go | 2 +- .../operator/v1alpha1/generated_expansion.go | 2 +- .../operator/v1alpha1/operator_client.go | 2 +- .../typed/operator/v1alpha1/vmdistributed.go | 2 +- .../versioned/typed/operator/v1beta1/doc.go | 2 +- .../typed/operator/v1beta1/fake/doc.go | 2 +- .../v1beta1/fake/fake_operator_client.go | 2 +- .../typed/operator/v1beta1/fake/fake_vlogs.go | 2 +- .../operator/v1beta1/fake/fake_vmagent.go | 2 +- .../operator/v1beta1/fake/fake_vmalert.go | 2 +- .../v1beta1/fake/fake_vmalertmanager.go | 2 +- .../v1beta1/fake/fake_vmalertmanagerconfig.go | 2 +- .../operator/v1beta1/fake/fake_vmauth.go | 2 +- .../operator/v1beta1/fake/fake_vmcluster.go | 2 +- .../v1beta1/fake/fake_vmnodescrape.go | 2 +- .../operator/v1beta1/fake/fake_vmpodscrape.go | 2 +- .../operator/v1beta1/fake/fake_vmprobe.go | 2 +- .../operator/v1beta1/fake/fake_vmrule.go | 2 +- .../v1beta1/fake/fake_vmscrapeconfig.go | 2 +- .../v1beta1/fake/fake_vmservicescrape.go | 2 +- .../operator/v1beta1/fake/fake_vmsingle.go | 2 +- .../v1beta1/fake/fake_vmstaticscrape.go | 2 +- .../operator/v1beta1/fake/fake_vmuser.go | 2 +- .../operator/v1beta1/generated_expansion.go | 2 +- .../typed/operator/v1beta1/operator_client.go | 2 +- .../versioned/typed/operator/v1beta1/vlogs.go | 2 +- .../typed/operator/v1beta1/vmagent.go | 2 +- .../typed/operator/v1beta1/vmalert.go | 2 +- .../typed/operator/v1beta1/vmalertmanager.go | 2 +- .../operator/v1beta1/vmalertmanagerconfig.go | 2 +- .../typed/operator/v1beta1/vmauth.go | 2 +- .../typed/operator/v1beta1/vmcluster.go | 2 +- .../typed/operator/v1beta1/vmnodescrape.go | 2 +- .../typed/operator/v1beta1/vmpodscrape.go | 2 +- .../typed/operator/v1beta1/vmprobe.go | 2 +- .../typed/operator/v1beta1/vmrule.go | 2 +- .../typed/operator/v1beta1/vmscrapeconfig.go | 2 +- .../typed/operator/v1beta1/vmservicescrape.go | 2 +- .../typed/operator/v1beta1/vmsingle.go | 2 +- .../typed/operator/v1beta1/vmstaticscrape.go | 2 +- .../typed/operator/v1beta1/vmuser.go | 2 +- 123 files changed, 946 insertions(+), 535 deletions(-) diff --git a/api/client/informers/externalversions/factory.go b/api/client/informers/externalversions/factory.go index 055dcc68a..0f12afe52 100644 --- a/api/client/informers/externalversions/factory.go +++ b/api/client/informers/externalversions/factory.go @@ -13,11 +13,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package externalversions import ( + context "context" reflect "reflect" sync "sync" time "time" @@ -28,6 +29,7 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" + wait "k8s.io/apimachinery/pkg/util/wait" cache "k8s.io/client-go/tools/cache" ) @@ -42,6 +44,7 @@ type sharedInformerFactory struct { defaultResync time.Duration customResync map[reflect.Type]time.Duration transform cache.TransformFunc + informerName *cache.InformerName informers map[reflect.Type]cache.SharedIndexInformer // startedInformers is used for tracking which informers have been started. @@ -88,6 +91,21 @@ func WithTransform(transform cache.TransformFunc) SharedInformerOption { } } +// WithInformerName sets the InformerName for informer identity used in metrics. +// The InformerName must be created via cache.NewInformerName() at startup, +// which validates global uniqueness. Each informer type will register its +// GVR under this name. +func WithInformerName(informerName *cache.InformerName) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + factory.informerName = informerName + return factory + } +} + +func (f *sharedInformerFactory) InformerName() *cache.InformerName { + return f.informerName +} + // NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces. func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync) @@ -122,6 +140,10 @@ func NewSharedInformerFactoryWithOptions(client versioned.Interface, defaultResy } func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) { + f.StartWithContext(wait.ContextForChannel(stopCh)) +} + +func (f *sharedInformerFactory) StartWithContext(ctx context.Context) { f.lock.Lock() defer f.lock.Unlock() @@ -131,15 +153,9 @@ func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) { for informerType, informer := range f.informers { if !f.startedInformers[informerType] { - f.wg.Add(1) - // We need a new variable in each loop iteration, - // otherwise the goroutine would use the loop variable - // and that keeps changing. - informer := informer - go func() { - defer f.wg.Done() - informer.Run(stopCh) - }() + f.wg.Go(func() { + informer.RunWithContext(ctx) + }) f.startedInformers[informerType] = true } } @@ -152,9 +168,15 @@ func (f *sharedInformerFactory) Shutdown() { // Will return immediately if there is nothing to wait for. f.wg.Wait() + f.informerName.Release() } func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool { + result := f.WaitForCacheSyncWithContext(wait.ContextForChannel(stopCh)) + return result.Synced +} + +func (f *sharedInformerFactory) WaitForCacheSyncWithContext(ctx context.Context) cache.SyncResult { informers := func() map[reflect.Type]cache.SharedIndexInformer { f.lock.Lock() defer f.lock.Unlock() @@ -168,10 +190,31 @@ func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[ref return informers }() - res := map[reflect.Type]bool{} + // Wait for informers to sync, without polling. + cacheSyncs := make([]cache.DoneChecker, 0, len(informers)) + for _, informer := range informers { + cacheSyncs = append(cacheSyncs, informer.HasSyncedChecker()) + } + cache.WaitFor(ctx, "" /* no logging */, cacheSyncs...) + + res := cache.SyncResult{ + Synced: make(map[reflect.Type]bool, len(informers)), + } + failed := false for informType, informer := range informers { - res[informType] = cache.WaitForCacheSync(stopCh, informer.HasSynced) + hasSynced := informer.HasSynced() + if !hasSynced { + failed = true + } + res.Synced[informType] = hasSynced } + if failed { + // context.Cause is more informative than ctx.Err(). + // This must be non-nil, otherwise WaitFor wouldn't have stopped + // prematurely. + res.Err = context.Cause(ctx) + } + return res } @@ -193,7 +236,9 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal } informer = newFunc(f.client, resyncPeriod) - informer.SetTransform(f.transform) + if f.transform != nil { + informer.SetTransform(f.transform) + } f.informers[informerType] = informer return informer @@ -210,27 +255,46 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal // defer factory.WaitForStop() // Returns immediately if nothing was started. // genericInformer := factory.ForResource(resource) // typedInformer := factory.SomeAPIGroup().V1().SomeType() -// factory.Start(ctx.Done()) // Start processing these informers. -// synced := factory.WaitForCacheSync(ctx.Done()) -// for v, ok := range synced { -// if !ok { -// fmt.Fprintf(os.Stderr, "caches failed to sync: %v", v) -// return -// } +// handle, err := typeInformer.Informer().AddEventHandler(...) +// if err != nil { +// return fmt.Errorf("register event handler: %v", err) +// } +// defer typeInformer.Informer().RemoveEventHandler(handle) // Avoids leaking goroutines. +// factory.StartWithContext(ctx) // Start processing these informers. +// synced := factory.WaitForCacheSyncWithContext(ctx) +// if err := synced.AsError(); err != nil { +// return err +// } +// for v := range synced { +// // Only if desired log some information similar to this. +// fmt.Fprintf(os.Stdout, "cache synced: %s", v) +// } +// +// // Also make sure that all of the initial cache events have been delivered. +// if !WaitFor(ctx, "event handler sync", handle.HasSyncedChecker()) { +// // Must have failed because of context. +// return fmt.Errorf("sync event handler: %w", context.Cause(ctx)) // } // // // Creating informers can also be created after Start, but then // // Start must be called again: // anotherGenericInformer := factory.ForResource(resource) -// factory.Start(ctx.Done()) +// factory.StartWithContext(ctx) type SharedInformerFactory interface { internalinterfaces.SharedInformerFactory // Start initializes all requested informers. They are handled in goroutines // which run until the stop channel gets closed. // Warning: Start does not block. When run in a go-routine, it will race with a later WaitForCacheSync. + // + // Contextual logging: StartWithContext should be used instead of Start in code which supports contextual logging. Start(stopCh <-chan struct{}) + // StartWithContext initializes all requested informers. They are handled in goroutines + // which run until the context gets canceled. + // Warning: StartWithContext does not block. When run in a go-routine, it will race with a later WaitForCacheSync. + StartWithContext(ctx context.Context) + // Shutdown marks a factory as shutting down. At that point no new // informers can be started anymore and Start will return without // doing anything. @@ -245,8 +309,14 @@ type SharedInformerFactory interface { // WaitForCacheSync blocks until all started informers' caches were synced // or the stop channel gets closed. + // + // Contextual logging: WaitForCacheSync should be used instead of WaitForCacheSync in code which supports contextual logging. It also returns a more useful result. WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool + // WaitForCacheSyncWithContext blocks until all started informers' caches were synced + // or the context gets canceled. + WaitForCacheSyncWithContext(ctx context.Context) cache.SyncResult + // ForResource gives generic access to a shared informer of the matching type. ForResource(resource schema.GroupVersionResource) (GenericInformer, error) diff --git a/api/client/informers/externalversions/generic.go b/api/client/informers/externalversions/generic.go index 7c550fe06..ea32f6519 100644 --- a/api/client/informers/externalversions/generic.go +++ b/api/client/informers/externalversions/generic.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package externalversions diff --git a/api/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/api/client/informers/externalversions/internalinterfaces/factory_interfaces.go index 8e396afd3..cde1a370f 100644 --- a/api/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/api/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package internalinterfaces @@ -33,7 +33,26 @@ type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexI type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer + InformerName() *cache.InformerName } // TweakListOptionsFunc is a function that transforms a v1.ListOptions. type TweakListOptionsFunc func(*v1.ListOptions) + +// InformerOptions holds the options for creating an informer. +type InformerOptions struct { + // ResyncPeriod is the resync period for this informer. + // If not set, defaults to 0 (no resync). + ResyncPeriod time.Duration + + // Indexers are the indexers for this informer. + Indexers cache.Indexers + + // InformerName is used to uniquely identify this informer for metrics. + // If not set, metrics will not be published for this informer. + // Use cache.NewInformerName() to create an InformerName at startup. + InformerName *cache.InformerName + + // TweakListOptions is an optional function to modify the list options. + TweakListOptions TweakListOptionsFunc +} diff --git a/api/client/informers/externalversions/operator/interface.go b/api/client/informers/externalversions/operator/interface.go index 39f9796ef..cfad14c4f 100644 --- a/api/client/informers/externalversions/operator/interface.go +++ b/api/client/informers/externalversions/operator/interface.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package operator diff --git a/api/client/informers/externalversions/operator/v1/interface.go b/api/client/informers/externalversions/operator/v1/interface.go index 8f6b9420d..f2670ceca 100644 --- a/api/client/informers/externalversions/operator/v1/interface.go +++ b/api/client/informers/externalversions/operator/v1/interface.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/informers/externalversions/operator/v1/vlagent.go b/api/client/informers/externalversions/operator/v1/vlagent.go index 58cffd2d6..3fb323e52 100644 --- a/api/client/informers/externalversions/operator/v1/vlagent.go +++ b/api/client/informers/externalversions/operator/v1/vlagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vLAgentInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVLAgentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVLAgentInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVLAgentInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVLAgentInformer constructs a new informer for VLAgent type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVLAgentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVLAgentInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVLAgentInformerWithOptions constructs a new informer for VLAgent type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVLAgentInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vlagents"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLAgents(namespace).List(context.Background(), options) + return client.OperatorV1().VLAgents(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLAgents(namespace).Watch(context.Background(), options) + return client.OperatorV1().VLAgents(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLAgents(namespace).List(ctx, options) + return client.OperatorV1().VLAgents(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLAgents(namespace).Watch(ctx, options) + return client.OperatorV1().VLAgents(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VLAgent{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vLAgentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVLAgentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVLAgentInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vLAgentInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1/vlcluster.go b/api/client/informers/externalversions/operator/v1/vlcluster.go index 3e60fb4ae..f5adfcee7 100644 --- a/api/client/informers/externalversions/operator/v1/vlcluster.go +++ b/api/client/informers/externalversions/operator/v1/vlcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vLClusterInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVLClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVLClusterInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVLClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVLClusterInformer constructs a new informer for VLCluster type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVLClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVLClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVLClusterInformerWithOptions constructs a new informer for VLCluster type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVLClusterInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vlclusters"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLClusters(namespace).List(context.Background(), options) + return client.OperatorV1().VLClusters(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLClusters(namespace).Watch(context.Background(), options) + return client.OperatorV1().VLClusters(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLClusters(namespace).List(ctx, options) + return client.OperatorV1().VLClusters(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLClusters(namespace).Watch(ctx, options) + return client.OperatorV1().VLClusters(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VLCluster{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vLClusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVLClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVLClusterInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vLClusterInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1/vlsingle.go b/api/client/informers/externalversions/operator/v1/vlsingle.go index 397052e74..395aa1da3 100644 --- a/api/client/informers/externalversions/operator/v1/vlsingle.go +++ b/api/client/informers/externalversions/operator/v1/vlsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vLSingleInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVLSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVLSingleInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVLSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVLSingleInformer constructs a new informer for VLSingle type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVLSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVLSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVLSingleInformerWithOptions constructs a new informer for VLSingle type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVLSingleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vlsingles"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLSingles(namespace).List(context.Background(), options) + return client.OperatorV1().VLSingles(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLSingles(namespace).Watch(context.Background(), options) + return client.OperatorV1().VLSingles(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLSingles(namespace).List(ctx, options) + return client.OperatorV1().VLSingles(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VLSingles(namespace).Watch(ctx, options) + return client.OperatorV1().VLSingles(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VLSingle{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vLSingleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVLSingleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVLSingleInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vLSingleInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1/vmanomaly.go b/api/client/informers/externalversions/operator/v1/vmanomaly.go index 7f73c18d3..a0c99307c 100644 --- a/api/client/informers/externalversions/operator/v1/vmanomaly.go +++ b/api/client/informers/externalversions/operator/v1/vmanomaly.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAnomalyInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAnomalyInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAnomalyInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAnomalyInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAnomalyInformer constructs a new informer for VMAnomaly type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAnomalyInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAnomalyInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAnomalyInformerWithOptions constructs a new informer for VMAnomaly type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAnomalyInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vmanomalys"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VMAnomalies(namespace).List(context.Background(), options) + return client.OperatorV1().VMAnomalies(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VMAnomalies(namespace).Watch(context.Background(), options) + return client.OperatorV1().VMAnomalies(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VMAnomalies(namespace).List(ctx, options) + return client.OperatorV1().VMAnomalies(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VMAnomalies(namespace).Watch(ctx, options) + return client.OperatorV1().VMAnomalies(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VMAnomaly{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAnomalyInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAnomalyInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAnomalyInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAnomalyInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1/vtcluster.go b/api/client/informers/externalversions/operator/v1/vtcluster.go index 1804b0579..7d4f9dc39 100644 --- a/api/client/informers/externalversions/operator/v1/vtcluster.go +++ b/api/client/informers/externalversions/operator/v1/vtcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vTClusterInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVTClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVTClusterInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVTClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVTClusterInformer constructs a new informer for VTCluster type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVTClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVTClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVTClusterInformerWithOptions constructs a new informer for VTCluster type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVTClusterInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vtclusters"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTClusters(namespace).List(context.Background(), options) + return client.OperatorV1().VTClusters(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTClusters(namespace).Watch(context.Background(), options) + return client.OperatorV1().VTClusters(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTClusters(namespace).List(ctx, options) + return client.OperatorV1().VTClusters(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTClusters(namespace).Watch(ctx, options) + return client.OperatorV1().VTClusters(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VTCluster{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vTClusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVTClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVTClusterInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vTClusterInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1/vtsingle.go b/api/client/informers/externalversions/operator/v1/vtsingle.go index b6740df39..64497ced3 100644 --- a/api/client/informers/externalversions/operator/v1/vtsingle.go +++ b/api/client/informers/externalversions/operator/v1/vtsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1 @@ -27,6 +27,7 @@ import ( apioperatorv1 "github.com/VictoriaMetrics/operator/api/operator/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vTSingleInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVTSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVTSingleInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVTSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVTSingleInformer constructs a new informer for VTSingle type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVTSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVTSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVTSingleInformerWithOptions constructs a new informer for VTSingle type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVTSingleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1", Resource: "vtsingles"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTSingles(namespace).List(context.Background(), options) + return client.OperatorV1().VTSingles(namespace).List(context.Background(), opts) }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTSingles(namespace).Watch(context.Background(), options) + return client.OperatorV1().VTSingles(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTSingles(namespace).List(ctx, options) + return client.OperatorV1().VTSingles(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1().VTSingles(namespace).Watch(ctx, options) + return client.OperatorV1().VTSingles(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1.VTSingle{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vTSingleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVTSingleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVTSingleInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vTSingleInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1alpha1/interface.go b/api/client/informers/externalversions/operator/v1alpha1/interface.go index 31d082830..cb0fbb2a4 100644 --- a/api/client/informers/externalversions/operator/v1alpha1/interface.go +++ b/api/client/informers/externalversions/operator/v1alpha1/interface.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/informers/externalversions/operator/v1alpha1/vmdistributed.go b/api/client/informers/externalversions/operator/v1alpha1/vmdistributed.go index 4071b36f2..e4c9ddacd 100644 --- a/api/client/informers/externalversions/operator/v1alpha1/vmdistributed.go +++ b/api/client/informers/externalversions/operator/v1alpha1/vmdistributed.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1alpha1 @@ -27,6 +27,7 @@ import ( apioperatorv1alpha1 "github.com/VictoriaMetrics/operator/api/operator/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMDistributedInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMDistributedInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMDistributedInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMDistributedInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMDistributedInformer constructs a new informer for VMDistributed type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMDistributedInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMDistributedInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMDistributedInformerWithOptions constructs a new informer for VMDistributed type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMDistributedInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1alpha1", Resource: "vmdistributeds"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1alpha1().VMDistributed(namespace).List(context.Background(), options) + return client.OperatorV1alpha1().VMDistributed(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1alpha1().VMDistributed(namespace).Watch(context.Background(), options) + return client.OperatorV1alpha1().VMDistributed(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1alpha1().VMDistributed(namespace).List(ctx, options) + return client.OperatorV1alpha1().VMDistributed(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1alpha1().VMDistributed(namespace).Watch(ctx, options) + return client.OperatorV1alpha1().VMDistributed(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1alpha1.VMDistributed{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMDistributedInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMDistributedInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMDistributedInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMDistributedInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/interface.go b/api/client/informers/externalversions/operator/v1beta1/interface.go index d17b8d108..60fa3619b 100644 --- a/api/client/informers/externalversions/operator/v1beta1/interface.go +++ b/api/client/informers/externalversions/operator/v1beta1/interface.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/informers/externalversions/operator/v1beta1/vlogs.go b/api/client/informers/externalversions/operator/v1beta1/vlogs.go index e70da4af9..a5757a034 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vlogs.go +++ b/api/client/informers/externalversions/operator/v1beta1/vlogs.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vLogsInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVLogsInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVLogsInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVLogsInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVLogsInformer constructs a new informer for VLogs type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVLogsInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVLogsInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVLogsInformerWithOptions constructs a new informer for VLogs type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVLogsInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vlogss"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VLogs(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VLogs(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VLogs(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VLogs(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VLogs(namespace).List(ctx, options) + return client.OperatorV1beta1().VLogs(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VLogs(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VLogs(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VLogs{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vLogsInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVLogsInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVLogsInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vLogsInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmagent.go b/api/client/informers/externalversions/operator/v1beta1/vmagent.go index 0e494fefb..f16b10550 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmagent.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAgentInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAgentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAgentInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAgentInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAgentInformer constructs a new informer for VMAgent type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAgentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAgentInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAgentInformerWithOptions constructs a new informer for VMAgent type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAgentInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmagents"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAgents(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMAgents(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAgents(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMAgents(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAgents(namespace).List(ctx, options) + return client.OperatorV1beta1().VMAgents(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAgents(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMAgents(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMAgent{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAgentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAgentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAgentInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAgentInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmalert.go b/api/client/informers/externalversions/operator/v1beta1/vmalert.go index d57856db3..42970c452 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmalert.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmalert.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAlertInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAlertInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAlertInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAlertInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAlertInformer constructs a new informer for VMAlert type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAlertInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAlertInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAlertInformerWithOptions constructs a new informer for VMAlert type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAlertInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmalerts"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlerts(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMAlerts(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlerts(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMAlerts(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlerts(namespace).List(ctx, options) + return client.OperatorV1beta1().VMAlerts(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlerts(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMAlerts(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMAlert{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAlertInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAlertInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAlertInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAlertInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmalertmanager.go b/api/client/informers/externalversions/operator/v1beta1/vmalertmanager.go index 352f0301d..0a47ee93a 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmalertmanager.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmalertmanager.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAlertmanagerInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAlertmanagerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAlertmanagerInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAlertmanagerInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAlertmanagerInformer constructs a new informer for VMAlertmanager type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAlertmanagerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAlertmanagerInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAlertmanagerInformerWithOptions constructs a new informer for VMAlertmanager type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAlertmanagerInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmalertmanagers"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagers(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMAlertmanagers(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagers(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMAlertmanagers(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagers(namespace).List(ctx, options) + return client.OperatorV1beta1().VMAlertmanagers(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagers(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMAlertmanagers(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMAlertmanager{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAlertmanagerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAlertmanagerInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAlertmanagerInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAlertmanagerInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmalertmanagerconfig.go b/api/client/informers/externalversions/operator/v1beta1/vmalertmanagerconfig.go index 9ac826af6..4f697d4d1 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmalertmanagerconfig.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmalertmanagerconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAlertmanagerConfigInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAlertmanagerConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAlertmanagerConfigInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAlertmanagerConfigInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAlertmanagerConfigInformer constructs a new informer for VMAlertmanagerConfig type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAlertmanagerConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAlertmanagerConfigInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAlertmanagerConfigInformerWithOptions constructs a new informer for VMAlertmanagerConfig type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAlertmanagerConfigInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmalertmanagerconfigs"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).List(ctx, options) + return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMAlertmanagerConfigs(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMAlertmanagerConfig{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAlertmanagerConfigInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAlertmanagerConfigInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAlertmanagerConfigInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAlertmanagerConfigInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmauth.go b/api/client/informers/externalversions/operator/v1beta1/vmauth.go index b42b4927d..31054ad0e 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmauth.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmauth.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMAuthInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMAuthInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMAuthInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMAuthInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMAuthInformer constructs a new informer for VMAuth type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMAuthInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMAuthInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMAuthInformerWithOptions constructs a new informer for VMAuth type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMAuthInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmauths"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAuths(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMAuths(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAuths(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMAuths(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAuths(namespace).List(ctx, options) + return client.OperatorV1beta1().VMAuths(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMAuths(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMAuths(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMAuth{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMAuthInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMAuthInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMAuthInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMAuthInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmcluster.go b/api/client/informers/externalversions/operator/v1beta1/vmcluster.go index 818f92517..e1cfa28c8 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmcluster.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMClusterInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMClusterInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMClusterInformer constructs a new informer for VMCluster type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMClusterInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMClusterInformerWithOptions constructs a new informer for VMCluster type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMClusterInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmclusters"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMClusters(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMClusters(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMClusters(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMClusters(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMClusters(namespace).List(ctx, options) + return client.OperatorV1beta1().VMClusters(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMClusters(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMClusters(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMCluster{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMClusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMClusterInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMClusterInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmnodescrape.go b/api/client/informers/externalversions/operator/v1beta1/vmnodescrape.go index 865a624ec..050ebcd29 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmnodescrape.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmnodescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMNodeScrapeInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMNodeScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMNodeScrapeInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMNodeScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMNodeScrapeInformer constructs a new informer for VMNodeScrape type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMNodeScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMNodeScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMNodeScrapeInformerWithOptions constructs a new informer for VMNodeScrape type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMNodeScrapeInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmnodescrapes"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMNodeScrapes(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMNodeScrapes(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMNodeScrapes(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMNodeScrapes(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMNodeScrapes(namespace).List(ctx, options) + return client.OperatorV1beta1().VMNodeScrapes(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMNodeScrapes(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMNodeScrapes(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMNodeScrape{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMNodeScrapeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMNodeScrapeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMNodeScrapeInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMNodeScrapeInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmpodscrape.go b/api/client/informers/externalversions/operator/v1beta1/vmpodscrape.go index 2dbdedb75..3399d1cc5 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmpodscrape.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmpodscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMPodScrapeInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMPodScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMPodScrapeInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMPodScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMPodScrapeInformer constructs a new informer for VMPodScrape type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMPodScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMPodScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMPodScrapeInformerWithOptions constructs a new informer for VMPodScrape type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMPodScrapeInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmpodscrapes"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMPodScrapes(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMPodScrapes(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMPodScrapes(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMPodScrapes(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMPodScrapes(namespace).List(ctx, options) + return client.OperatorV1beta1().VMPodScrapes(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMPodScrapes(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMPodScrapes(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMPodScrape{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMPodScrapeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMPodScrapeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMPodScrapeInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMPodScrapeInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmprobe.go b/api/client/informers/externalversions/operator/v1beta1/vmprobe.go index c223873e1..4ff42d14c 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmprobe.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmprobe.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMProbeInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMProbeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMProbeInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMProbeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMProbeInformer constructs a new informer for VMProbe type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMProbeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMProbeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMProbeInformerWithOptions constructs a new informer for VMProbe type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMProbeInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmprobes"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMProbes(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMProbes(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMProbes(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMProbes(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMProbes(namespace).List(ctx, options) + return client.OperatorV1beta1().VMProbes(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMProbes(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMProbes(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMProbe{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMProbeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMProbeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMProbeInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMProbeInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmrule.go b/api/client/informers/externalversions/operator/v1beta1/vmrule.go index c41268f09..f371552ef 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmrule.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmrule.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMRuleInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMRuleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMRuleInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMRuleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMRuleInformer constructs a new informer for VMRule type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMRuleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMRuleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMRuleInformerWithOptions constructs a new informer for VMRule type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMRuleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmrules"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMRules(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMRules(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMRules(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMRules(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMRules(namespace).List(ctx, options) + return client.OperatorV1beta1().VMRules(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMRules(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMRules(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMRule{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMRuleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMRuleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMRuleInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMRuleInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmscrapeconfig.go b/api/client/informers/externalversions/operator/v1beta1/vmscrapeconfig.go index 133c9fe48..7008e4989 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmscrapeconfig.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmscrapeconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMScrapeConfigInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMScrapeConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMScrapeConfigInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMScrapeConfigInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMScrapeConfigInformer constructs a new informer for VMScrapeConfig type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMScrapeConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMScrapeConfigInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMScrapeConfigInformerWithOptions constructs a new informer for VMScrapeConfig type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMScrapeConfigInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmscrapeconfigs"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMScrapeConfigs(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMScrapeConfigs(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMScrapeConfigs(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMScrapeConfigs(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMScrapeConfigs(namespace).List(ctx, options) + return client.OperatorV1beta1().VMScrapeConfigs(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMScrapeConfigs(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMScrapeConfigs(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMScrapeConfig{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMScrapeConfigInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMScrapeConfigInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMScrapeConfigInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMScrapeConfigInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmservicescrape.go b/api/client/informers/externalversions/operator/v1beta1/vmservicescrape.go index e60dc88d1..8ea6744e3 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmservicescrape.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmservicescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMServiceScrapeInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMServiceScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMServiceScrapeInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMServiceScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMServiceScrapeInformer constructs a new informer for VMServiceScrape type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMServiceScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMServiceScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMServiceScrapeInformerWithOptions constructs a new informer for VMServiceScrape type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMServiceScrapeInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmservicescrapes"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMServiceScrapes(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMServiceScrapes(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMServiceScrapes(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMServiceScrapes(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMServiceScrapes(namespace).List(ctx, options) + return client.OperatorV1beta1().VMServiceScrapes(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMServiceScrapes(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMServiceScrapes(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMServiceScrape{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMServiceScrapeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMServiceScrapeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMServiceScrapeInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMServiceScrapeInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmsingle.go b/api/client/informers/externalversions/operator/v1beta1/vmsingle.go index abfde0930..a81bc0b87 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmsingle.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMSingleInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMSingleInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMSingleInformer constructs a new informer for VMSingle type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMSingleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMSingleInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMSingleInformerWithOptions constructs a new informer for VMSingle type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMSingleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmsingles"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMSingles(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMSingles(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMSingles(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMSingles(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMSingles(namespace).List(ctx, options) + return client.OperatorV1beta1().VMSingles(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMSingles(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMSingles(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMSingle{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMSingleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMSingleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMSingleInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMSingleInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmstaticscrape.go b/api/client/informers/externalversions/operator/v1beta1/vmstaticscrape.go index 96572eb27..978da6889 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmstaticscrape.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmstaticscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMStaticScrapeInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMStaticScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMStaticScrapeInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMStaticScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMStaticScrapeInformer constructs a new informer for VMStaticScrape type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMStaticScrapeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMStaticScrapeInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMStaticScrapeInformerWithOptions constructs a new informer for VMStaticScrape type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMStaticScrapeInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmstaticscrapes"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMStaticScrapes(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMStaticScrapes(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMStaticScrapes(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMStaticScrapes(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMStaticScrapes(namespace).List(ctx, options) + return client.OperatorV1beta1().VMStaticScrapes(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMStaticScrapes(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMStaticScrapes(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMStaticScrape{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMStaticScrapeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMStaticScrapeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMStaticScrapeInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMStaticScrapeInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/informers/externalversions/operator/v1beta1/vmuser.go b/api/client/informers/externalversions/operator/v1beta1/vmuser.go index 8721fa9f4..1b6c2e875 100644 --- a/api/client/informers/externalversions/operator/v1beta1/vmuser.go +++ b/api/client/informers/externalversions/operator/v1beta1/vmuser.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.35. DO NOT EDIT. +// Code generated by informer-gen-v0.36. DO NOT EDIT. package v1beta1 @@ -27,6 +27,7 @@ import ( apioperatorv1beta1 "github.com/VictoriaMetrics/operator/api/operator/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" ) @@ -48,48 +49,61 @@ type vMUserInformer struct { // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewVMUserInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredVMUserInformer(client, namespace, resyncPeriod, indexers, nil) + return NewVMUserInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers}) } // NewFilteredVMUserInformer constructs a new informer for VMUser type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredVMUserInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( + return NewVMUserInformerWithOptions(client, namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: indexers, TweakListOptions: tweakListOptions}) +} + +// NewVMUserInformerWithOptions constructs a new informer for VMUser type with additional options. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVMUserInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer { + gvr := schema.GroupVersionResource{Group: "operator", Version: "v1beta1", Resource: "vmusers"} + identifier := options.InformerName.WithResource(gvr) + tweakListOptions := options.TweakListOptions + return cache.NewSharedIndexInformerWithOptions( cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + ListFunc: func(opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMUsers(namespace).List(context.Background(), options) + return client.OperatorV1beta1().VMUsers(namespace).List(context.Background(), opts) }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMUsers(namespace).Watch(context.Background(), options) + return client.OperatorV1beta1().VMUsers(namespace).Watch(context.Background(), opts) }, - ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) { + ListWithContextFunc: func(ctx context.Context, opts v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMUsers(namespace).List(ctx, options) + return client.OperatorV1beta1().VMUsers(namespace).List(ctx, opts) }, - WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) { + WatchFuncWithContext: func(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { - tweakListOptions(&options) + tweakListOptions(&opts) } - return client.OperatorV1beta1().VMUsers(namespace).Watch(ctx, options) + return client.OperatorV1beta1().VMUsers(namespace).Watch(ctx, opts) }, }, client), &apioperatorv1beta1.VMUser{}, - resyncPeriod, - indexers, + cache.SharedIndexInformerOptions{ + ResyncPeriod: options.ResyncPeriod, + Indexers: options.Indexers, + Identifier: identifier, + }, ) } func (f *vMUserInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredVMUserInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) + return NewVMUserInformerWithOptions(client, f.namespace, internalinterfaces.InformerOptions{ResyncPeriod: resyncPeriod, Indexers: cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, InformerName: f.factory.InformerName(), TweakListOptions: f.tweakListOptions}) } func (f *vMUserInformer) Informer() cache.SharedIndexInformer { diff --git a/api/client/listers/operator/v1/expansion_generated.go b/api/client/listers/operator/v1/expansion_generated.go index 3d3176343..eb485c3de 100644 --- a/api/client/listers/operator/v1/expansion_generated.go +++ b/api/client/listers/operator/v1/expansion_generated.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vlagent.go b/api/client/listers/operator/v1/vlagent.go index 3a668f847..8f94af9b0 100644 --- a/api/client/listers/operator/v1/vlagent.go +++ b/api/client/listers/operator/v1/vlagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vlcluster.go b/api/client/listers/operator/v1/vlcluster.go index fe61f2379..f59b0e77b 100644 --- a/api/client/listers/operator/v1/vlcluster.go +++ b/api/client/listers/operator/v1/vlcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vlsingle.go b/api/client/listers/operator/v1/vlsingle.go index 22e0621e2..40228e251 100644 --- a/api/client/listers/operator/v1/vlsingle.go +++ b/api/client/listers/operator/v1/vlsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vmanomaly.go b/api/client/listers/operator/v1/vmanomaly.go index 6d921c38a..d35a55b05 100644 --- a/api/client/listers/operator/v1/vmanomaly.go +++ b/api/client/listers/operator/v1/vmanomaly.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vtcluster.go b/api/client/listers/operator/v1/vtcluster.go index 8e48355c8..eff285a89 100644 --- a/api/client/listers/operator/v1/vtcluster.go +++ b/api/client/listers/operator/v1/vtcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1/vtsingle.go b/api/client/listers/operator/v1/vtsingle.go index f294b4297..864ebd74f 100644 --- a/api/client/listers/operator/v1/vtsingle.go +++ b/api/client/listers/operator/v1/vtsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/listers/operator/v1alpha1/expansion_generated.go b/api/client/listers/operator/v1alpha1/expansion_generated.go index 18c988ef3..00951b61e 100644 --- a/api/client/listers/operator/v1alpha1/expansion_generated.go +++ b/api/client/listers/operator/v1alpha1/expansion_generated.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/listers/operator/v1alpha1/vmdistributed.go b/api/client/listers/operator/v1alpha1/vmdistributed.go index aeceef284..8c7929399 100644 --- a/api/client/listers/operator/v1alpha1/vmdistributed.go +++ b/api/client/listers/operator/v1alpha1/vmdistributed.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/listers/operator/v1beta1/expansion_generated.go b/api/client/listers/operator/v1beta1/expansion_generated.go index 245920d4f..7eee30bd2 100644 --- a/api/client/listers/operator/v1beta1/expansion_generated.go +++ b/api/client/listers/operator/v1beta1/expansion_generated.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vlogs.go b/api/client/listers/operator/v1beta1/vlogs.go index 825088bfb..e42d09433 100644 --- a/api/client/listers/operator/v1beta1/vlogs.go +++ b/api/client/listers/operator/v1beta1/vlogs.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmagent.go b/api/client/listers/operator/v1beta1/vmagent.go index 31dd84a0f..1d8912386 100644 --- a/api/client/listers/operator/v1beta1/vmagent.go +++ b/api/client/listers/operator/v1beta1/vmagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmalert.go b/api/client/listers/operator/v1beta1/vmalert.go index 6dba25018..951e9d626 100644 --- a/api/client/listers/operator/v1beta1/vmalert.go +++ b/api/client/listers/operator/v1beta1/vmalert.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmalertmanager.go b/api/client/listers/operator/v1beta1/vmalertmanager.go index 0488bf519..b4bf68935 100644 --- a/api/client/listers/operator/v1beta1/vmalertmanager.go +++ b/api/client/listers/operator/v1beta1/vmalertmanager.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmalertmanagerconfig.go b/api/client/listers/operator/v1beta1/vmalertmanagerconfig.go index 601a9ca8d..a3c9285e5 100644 --- a/api/client/listers/operator/v1beta1/vmalertmanagerconfig.go +++ b/api/client/listers/operator/v1beta1/vmalertmanagerconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmauth.go b/api/client/listers/operator/v1beta1/vmauth.go index 9d659eb77..661aecd50 100644 --- a/api/client/listers/operator/v1beta1/vmauth.go +++ b/api/client/listers/operator/v1beta1/vmauth.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmcluster.go b/api/client/listers/operator/v1beta1/vmcluster.go index e1f0b4f01..1788bc53a 100644 --- a/api/client/listers/operator/v1beta1/vmcluster.go +++ b/api/client/listers/operator/v1beta1/vmcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmnodescrape.go b/api/client/listers/operator/v1beta1/vmnodescrape.go index 30f8125d2..f71c3fe4d 100644 --- a/api/client/listers/operator/v1beta1/vmnodescrape.go +++ b/api/client/listers/operator/v1beta1/vmnodescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmpodscrape.go b/api/client/listers/operator/v1beta1/vmpodscrape.go index a54d1bcde..00212319e 100644 --- a/api/client/listers/operator/v1beta1/vmpodscrape.go +++ b/api/client/listers/operator/v1beta1/vmpodscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmprobe.go b/api/client/listers/operator/v1beta1/vmprobe.go index e9aab1007..2e549294f 100644 --- a/api/client/listers/operator/v1beta1/vmprobe.go +++ b/api/client/listers/operator/v1beta1/vmprobe.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmrule.go b/api/client/listers/operator/v1beta1/vmrule.go index ef4e672cc..9147a3317 100644 --- a/api/client/listers/operator/v1beta1/vmrule.go +++ b/api/client/listers/operator/v1beta1/vmrule.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmscrapeconfig.go b/api/client/listers/operator/v1beta1/vmscrapeconfig.go index e5d8e956d..b3168d6a8 100644 --- a/api/client/listers/operator/v1beta1/vmscrapeconfig.go +++ b/api/client/listers/operator/v1beta1/vmscrapeconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmservicescrape.go b/api/client/listers/operator/v1beta1/vmservicescrape.go index c82cd19eb..911c5536c 100644 --- a/api/client/listers/operator/v1beta1/vmservicescrape.go +++ b/api/client/listers/operator/v1beta1/vmservicescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmsingle.go b/api/client/listers/operator/v1beta1/vmsingle.go index 07cdead81..0452fa55c 100644 --- a/api/client/listers/operator/v1beta1/vmsingle.go +++ b/api/client/listers/operator/v1beta1/vmsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmstaticscrape.go b/api/client/listers/operator/v1beta1/vmstaticscrape.go index 391bffa12..1ced0bdfc 100644 --- a/api/client/listers/operator/v1beta1/vmstaticscrape.go +++ b/api/client/listers/operator/v1beta1/vmstaticscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/listers/operator/v1beta1/vmuser.go b/api/client/listers/operator/v1beta1/vmuser.go index 4832cd11a..226b393c9 100644 --- a/api/client/listers/operator/v1beta1/vmuser.go +++ b/api/client/listers/operator/v1beta1/vmuser.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.35. DO NOT EDIT. +// Code generated by lister-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/clientset.go b/api/client/versioned/clientset.go index 3cee6e5be..1e4ef4186 100644 --- a/api/client/versioned/clientset.go +++ b/api/client/versioned/clientset.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package versioned diff --git a/api/client/versioned/fake/clientset_generated.go b/api/client/versioned/fake/clientset_generated.go index 44fb7ab96..0ddbeea9d 100644 --- a/api/client/versioned/fake/clientset_generated.go +++ b/api/client/versioned/fake/clientset_generated.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake @@ -82,7 +82,7 @@ func (c *Clientset) Tracker() testing.ObjectTracker { return c.tracker } -// IsWatchListSemanticsSupported informs the reflector that this client +// IsWatchListSemanticsUnSupported informs the reflector that this client // doesn't support WatchList semantics. // // This is a synthetic method whose sole purpose is to satisfy the optional diff --git a/api/client/versioned/fake/doc.go b/api/client/versioned/fake/doc.go index 7e73b7a75..b53c4009f 100644 --- a/api/client/versioned/fake/doc.go +++ b/api/client/versioned/fake/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // This package has the automatically generated fake clientset. package fake diff --git a/api/client/versioned/fake/register.go b/api/client/versioned/fake/register.go index b0e9b85f7..9331c2a86 100644 --- a/api/client/versioned/fake/register.go +++ b/api/client/versioned/fake/register.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/scheme/doc.go b/api/client/versioned/scheme/doc.go index ee636369c..fae76ce04 100644 --- a/api/client/versioned/scheme/doc.go +++ b/api/client/versioned/scheme/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // This package contains the scheme of the automatically generated clientset. package scheme diff --git a/api/client/versioned/scheme/register.go b/api/client/versioned/scheme/register.go index 864b89947..4dac92508 100644 --- a/api/client/versioned/scheme/register.go +++ b/api/client/versioned/scheme/register.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package scheme diff --git a/api/client/versioned/typed/operator/v1/doc.go b/api/client/versioned/typed/operator/v1/doc.go index 5ddde437a..7800558c7 100644 --- a/api/client/versioned/typed/operator/v1/doc.go +++ b/api/client/versioned/typed/operator/v1/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/api/client/versioned/typed/operator/v1/fake/doc.go b/api/client/versioned/typed/operator/v1/fake/doc.go index 9e8c3be38..7d0455c86 100644 --- a/api/client/versioned/typed/operator/v1/fake/doc.go +++ b/api/client/versioned/typed/operator/v1/fake/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_operator_client.go b/api/client/versioned/typed/operator/v1/fake/fake_operator_client.go index 309f1bbd8..14c9c78e5 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_operator_client.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vlagent.go b/api/client/versioned/typed/operator/v1/fake/fake_vlagent.go index cfaffd977..6eba24e38 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vlagent.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vlagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vlcluster.go b/api/client/versioned/typed/operator/v1/fake/fake_vlcluster.go index 82a2bcdfa..1f002b201 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vlcluster.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vlcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vlsingle.go b/api/client/versioned/typed/operator/v1/fake/fake_vlsingle.go index db64b7c2b..df9a3f810 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vlsingle.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vlsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vmanomaly.go b/api/client/versioned/typed/operator/v1/fake/fake_vmanomaly.go index 789e0c6d8..7348d69f6 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vmanomaly.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vmanomaly.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vtcluster.go b/api/client/versioned/typed/operator/v1/fake/fake_vtcluster.go index b93e7a319..ab5745e34 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vtcluster.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vtcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/fake/fake_vtsingle.go b/api/client/versioned/typed/operator/v1/fake/fake_vtsingle.go index be0dceae0..ced2c12e9 100644 --- a/api/client/versioned/typed/operator/v1/fake/fake_vtsingle.go +++ b/api/client/versioned/typed/operator/v1/fake/fake_vtsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1/generated_expansion.go b/api/client/versioned/typed/operator/v1/generated_expansion.go index 288b8ab09..65c60a04e 100644 --- a/api/client/versioned/typed/operator/v1/generated_expansion.go +++ b/api/client/versioned/typed/operator/v1/generated_expansion.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/operator_client.go b/api/client/versioned/typed/operator/v1/operator_client.go index 6041a40fd..cd9e82eb3 100644 --- a/api/client/versioned/typed/operator/v1/operator_client.go +++ b/api/client/versioned/typed/operator/v1/operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vlagent.go b/api/client/versioned/typed/operator/v1/vlagent.go index dad9a43c5..98fe406dd 100644 --- a/api/client/versioned/typed/operator/v1/vlagent.go +++ b/api/client/versioned/typed/operator/v1/vlagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vlcluster.go b/api/client/versioned/typed/operator/v1/vlcluster.go index adf42deeb..bbedd3dc0 100644 --- a/api/client/versioned/typed/operator/v1/vlcluster.go +++ b/api/client/versioned/typed/operator/v1/vlcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vlsingle.go b/api/client/versioned/typed/operator/v1/vlsingle.go index 7187b1d68..3b0d7eaf3 100644 --- a/api/client/versioned/typed/operator/v1/vlsingle.go +++ b/api/client/versioned/typed/operator/v1/vlsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vmanomaly.go b/api/client/versioned/typed/operator/v1/vmanomaly.go index ac0f1f723..9275bb6ba 100644 --- a/api/client/versioned/typed/operator/v1/vmanomaly.go +++ b/api/client/versioned/typed/operator/v1/vmanomaly.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vtcluster.go b/api/client/versioned/typed/operator/v1/vtcluster.go index e81a0b6b1..f1addb793 100644 --- a/api/client/versioned/typed/operator/v1/vtcluster.go +++ b/api/client/versioned/typed/operator/v1/vtcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1/vtsingle.go b/api/client/versioned/typed/operator/v1/vtsingle.go index d313e8623..2868fb867 100644 --- a/api/client/versioned/typed/operator/v1/vtsingle.go +++ b/api/client/versioned/typed/operator/v1/vtsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1 diff --git a/api/client/versioned/typed/operator/v1alpha1/doc.go b/api/client/versioned/typed/operator/v1alpha1/doc.go index 16d8a65d8..1fa4a4b26 100644 --- a/api/client/versioned/typed/operator/v1alpha1/doc.go +++ b/api/client/versioned/typed/operator/v1alpha1/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/api/client/versioned/typed/operator/v1alpha1/fake/doc.go b/api/client/versioned/typed/operator/v1alpha1/fake/doc.go index 9e8c3be38..7d0455c86 100644 --- a/api/client/versioned/typed/operator/v1alpha1/fake/doc.go +++ b/api/client/versioned/typed/operator/v1alpha1/fake/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/api/client/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go b/api/client/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go index e566cd8a7..778395651 100644 --- a/api/client/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go +++ b/api/client/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1alpha1/fake/fake_vmdistributed.go b/api/client/versioned/typed/operator/v1alpha1/fake/fake_vmdistributed.go index 1d5c53666..cd9591aae 100644 --- a/api/client/versioned/typed/operator/v1alpha1/fake/fake_vmdistributed.go +++ b/api/client/versioned/typed/operator/v1alpha1/fake/fake_vmdistributed.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1alpha1/generated_expansion.go b/api/client/versioned/typed/operator/v1alpha1/generated_expansion.go index e683025ee..b5c845717 100644 --- a/api/client/versioned/typed/operator/v1alpha1/generated_expansion.go +++ b/api/client/versioned/typed/operator/v1alpha1/generated_expansion.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/versioned/typed/operator/v1alpha1/operator_client.go b/api/client/versioned/typed/operator/v1alpha1/operator_client.go index 912e92583..2db389b38 100644 --- a/api/client/versioned/typed/operator/v1alpha1/operator_client.go +++ b/api/client/versioned/typed/operator/v1alpha1/operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/versioned/typed/operator/v1alpha1/vmdistributed.go b/api/client/versioned/typed/operator/v1alpha1/vmdistributed.go index 2362a54db..c3522a2c5 100644 --- a/api/client/versioned/typed/operator/v1alpha1/vmdistributed.go +++ b/api/client/versioned/typed/operator/v1alpha1/vmdistributed.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1alpha1 diff --git a/api/client/versioned/typed/operator/v1beta1/doc.go b/api/client/versioned/typed/operator/v1beta1/doc.go index ce4249c84..2e02238a1 100644 --- a/api/client/versioned/typed/operator/v1beta1/doc.go +++ b/api/client/versioned/typed/operator/v1beta1/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // This package has the automatically generated typed clients. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/fake/doc.go b/api/client/versioned/typed/operator/v1beta1/fake/doc.go index 9e8c3be38..7d0455c86 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/doc.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/doc.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_operator_client.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_operator_client.go index a6161bb5a..1f0208916 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_operator_client.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vlogs.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vlogs.go index 35f8d8553..71c3fa604 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vlogs.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vlogs.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmagent.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmagent.go index 8c6548ad0..844f09f6f 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmagent.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalert.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalert.go index 8c1b01f4a..2001e7de2 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalert.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalert.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanager.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanager.go index ec45cb805..e279c5ebe 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanager.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanager.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanagerconfig.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanagerconfig.go index a1171bc7a..715572cf5 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanagerconfig.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmalertmanagerconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmauth.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmauth.go index ce736f10e..184e30086 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmauth.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmauth.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmcluster.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmcluster.go index a219adc70..539dd89fa 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmcluster.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmnodescrape.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmnodescrape.go index 46f1baafa..4dbcc4d7c 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmnodescrape.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmnodescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmpodscrape.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmpodscrape.go index 0dd3fa330..a74d973d6 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmpodscrape.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmpodscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmprobe.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmprobe.go index c1caa0e97..6fce63a27 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmprobe.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmprobe.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmrule.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmrule.go index 70e340733..ff4c72551 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmrule.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmrule.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmscrapeconfig.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmscrapeconfig.go index 5bafb62a4..9551cf4ae 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmscrapeconfig.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmscrapeconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmservicescrape.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmservicescrape.go index ebff0e040..04b3d9150 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmservicescrape.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmservicescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmsingle.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmsingle.go index f0dfedf96..777c492c4 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmsingle.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmstaticscrape.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmstaticscrape.go index bb339d80d..31c295760 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmstaticscrape.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmstaticscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmuser.go b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmuser.go index 36360893f..84accf689 100644 --- a/api/client/versioned/typed/operator/v1beta1/fake/fake_vmuser.go +++ b/api/client/versioned/typed/operator/v1beta1/fake/fake_vmuser.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package fake diff --git a/api/client/versioned/typed/operator/v1beta1/generated_expansion.go b/api/client/versioned/typed/operator/v1beta1/generated_expansion.go index 2b132f99b..c0ea4fbd8 100644 --- a/api/client/versioned/typed/operator/v1beta1/generated_expansion.go +++ b/api/client/versioned/typed/operator/v1beta1/generated_expansion.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/operator_client.go b/api/client/versioned/typed/operator/v1beta1/operator_client.go index 72bf42b93..153fd229a 100644 --- a/api/client/versioned/typed/operator/v1beta1/operator_client.go +++ b/api/client/versioned/typed/operator/v1beta1/operator_client.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vlogs.go b/api/client/versioned/typed/operator/v1beta1/vlogs.go index bc93123d7..884917a3e 100644 --- a/api/client/versioned/typed/operator/v1beta1/vlogs.go +++ b/api/client/versioned/typed/operator/v1beta1/vlogs.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmagent.go b/api/client/versioned/typed/operator/v1beta1/vmagent.go index c939d26f6..7d7fd79c7 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmagent.go +++ b/api/client/versioned/typed/operator/v1beta1/vmagent.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmalert.go b/api/client/versioned/typed/operator/v1beta1/vmalert.go index 7dcac0318..15f786a5d 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmalert.go +++ b/api/client/versioned/typed/operator/v1beta1/vmalert.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmalertmanager.go b/api/client/versioned/typed/operator/v1beta1/vmalertmanager.go index eb048e337..a36746f72 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmalertmanager.go +++ b/api/client/versioned/typed/operator/v1beta1/vmalertmanager.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmalertmanagerconfig.go b/api/client/versioned/typed/operator/v1beta1/vmalertmanagerconfig.go index d4b43cca1..4e23426ee 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmalertmanagerconfig.go +++ b/api/client/versioned/typed/operator/v1beta1/vmalertmanagerconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmauth.go b/api/client/versioned/typed/operator/v1beta1/vmauth.go index 2c0642748..55ffeb5df 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmauth.go +++ b/api/client/versioned/typed/operator/v1beta1/vmauth.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmcluster.go b/api/client/versioned/typed/operator/v1beta1/vmcluster.go index da49fade1..466ee3d53 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmcluster.go +++ b/api/client/versioned/typed/operator/v1beta1/vmcluster.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmnodescrape.go b/api/client/versioned/typed/operator/v1beta1/vmnodescrape.go index 8d6cec2c3..3e8c2cdf1 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmnodescrape.go +++ b/api/client/versioned/typed/operator/v1beta1/vmnodescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmpodscrape.go b/api/client/versioned/typed/operator/v1beta1/vmpodscrape.go index 9c009ac0e..1813c11af 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmpodscrape.go +++ b/api/client/versioned/typed/operator/v1beta1/vmpodscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmprobe.go b/api/client/versioned/typed/operator/v1beta1/vmprobe.go index 5cee2d7f8..4c54f4722 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmprobe.go +++ b/api/client/versioned/typed/operator/v1beta1/vmprobe.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmrule.go b/api/client/versioned/typed/operator/v1beta1/vmrule.go index ccf615215..71e5ec201 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmrule.go +++ b/api/client/versioned/typed/operator/v1beta1/vmrule.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmscrapeconfig.go b/api/client/versioned/typed/operator/v1beta1/vmscrapeconfig.go index 099895b14..79152bcc8 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmscrapeconfig.go +++ b/api/client/versioned/typed/operator/v1beta1/vmscrapeconfig.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmservicescrape.go b/api/client/versioned/typed/operator/v1beta1/vmservicescrape.go index 3431875de..211e749c1 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmservicescrape.go +++ b/api/client/versioned/typed/operator/v1beta1/vmservicescrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmsingle.go b/api/client/versioned/typed/operator/v1beta1/vmsingle.go index 875370a71..5e243d0ed 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmsingle.go +++ b/api/client/versioned/typed/operator/v1beta1/vmsingle.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmstaticscrape.go b/api/client/versioned/typed/operator/v1beta1/vmstaticscrape.go index 924136a05..f018a9873 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmstaticscrape.go +++ b/api/client/versioned/typed/operator/v1beta1/vmstaticscrape.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1 diff --git a/api/client/versioned/typed/operator/v1beta1/vmuser.go b/api/client/versioned/typed/operator/v1beta1/vmuser.go index fd343cd1f..8b1acf710 100644 --- a/api/client/versioned/typed/operator/v1beta1/vmuser.go +++ b/api/client/versioned/typed/operator/v1beta1/vmuser.go @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.35. DO NOT EDIT. +// Code generated by client-gen-v0.36. DO NOT EDIT. package v1beta1