rebase: update K8s packages to v0.32.1

Update K8s packages in go.mod to v0.32.1

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M
2025-01-16 09:41:46 +05:30
committed by mergify[bot]
parent 5aef21ea4e
commit 7eb99fc6c9
2442 changed files with 273386 additions and 47788 deletions

View File

@ -19,16 +19,16 @@ limitations under the License.
package v1alpha3
import (
"context"
context "context"
time "time"
resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
apiresourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
resourcev1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache"
)
@ -36,7 +36,7 @@ import (
// DeviceClasses.
type DeviceClassInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha3.DeviceClassLister
Lister() resourcev1alpha3.DeviceClassLister
}
type deviceClassInformer struct {
@ -70,7 +70,7 @@ func NewFilteredDeviceClassInformer(client kubernetes.Interface, resyncPeriod ti
return client.ResourceV1alpha3().DeviceClasses().Watch(context.TODO(), options)
},
},
&resourcev1alpha3.DeviceClass{},
&apiresourcev1alpha3.DeviceClass{},
resyncPeriod,
indexers,
)
@ -81,9 +81,9 @@ func (f *deviceClassInformer) defaultInformer(client kubernetes.Interface, resyn
}
func (f *deviceClassInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha3.DeviceClass{}, f.defaultInformer)
return f.factory.InformerFor(&apiresourcev1alpha3.DeviceClass{}, f.defaultInformer)
}
func (f *deviceClassInformer) Lister() v1alpha3.DeviceClassLister {
return v1alpha3.NewDeviceClassLister(f.Informer().GetIndexer())
func (f *deviceClassInformer) Lister() resourcev1alpha3.DeviceClassLister {
return resourcev1alpha3.NewDeviceClassLister(f.Informer().GetIndexer())
}

View File

@ -26,8 +26,6 @@ import (
type Interface interface {
// DeviceClasses returns a DeviceClassInformer.
DeviceClasses() DeviceClassInformer
// PodSchedulingContexts returns a PodSchedulingContextInformer.
PodSchedulingContexts() PodSchedulingContextInformer
// ResourceClaims returns a ResourceClaimInformer.
ResourceClaims() ResourceClaimInformer
// ResourceClaimTemplates returns a ResourceClaimTemplateInformer.
@ -52,11 +50,6 @@ func (v *version) DeviceClasses() DeviceClassInformer {
return &deviceClassInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
}
// PodSchedulingContexts returns a PodSchedulingContextInformer.
func (v *version) PodSchedulingContexts() PodSchedulingContextInformer {
return &podSchedulingContextInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
// ResourceClaims returns a ResourceClaimInformer.
func (v *version) ResourceClaims() ResourceClaimInformer {
return &resourceClaimInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}

View File

@ -1,90 +0,0 @@
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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. DO NOT EDIT.
package v1alpha3
import (
"context"
time "time"
resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache"
)
// PodSchedulingContextInformer provides access to a shared informer and lister for
// PodSchedulingContexts.
type PodSchedulingContextInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha3.PodSchedulingContextLister
}
type podSchedulingContextInformer struct {
factory internalinterfaces.SharedInformerFactory
tweakListOptions internalinterfaces.TweakListOptionsFunc
namespace string
}
// NewPodSchedulingContextInformer constructs a new informer for PodSchedulingContext 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 NewPodSchedulingContextInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredPodSchedulingContextInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredPodSchedulingContextInformer constructs a new informer for PodSchedulingContext 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 NewFilteredPodSchedulingContextInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1alpha3().PodSchedulingContexts(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1alpha3().PodSchedulingContexts(namespace).Watch(context.TODO(), options)
},
},
&resourcev1alpha3.PodSchedulingContext{},
resyncPeriod,
indexers,
)
}
func (f *podSchedulingContextInformer) defaultInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredPodSchedulingContextInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
func (f *podSchedulingContextInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha3.PodSchedulingContext{}, f.defaultInformer)
}
func (f *podSchedulingContextInformer) Lister() v1alpha3.PodSchedulingContextLister {
return v1alpha3.NewPodSchedulingContextLister(f.Informer().GetIndexer())
}

View File

@ -19,16 +19,16 @@ limitations under the License.
package v1alpha3
import (
"context"
context "context"
time "time"
resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
apiresourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
resourcev1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache"
)
@ -36,7 +36,7 @@ import (
// ResourceClaims.
type ResourceClaimInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha3.ResourceClaimLister
Lister() resourcev1alpha3.ResourceClaimLister
}
type resourceClaimInformer struct {
@ -71,7 +71,7 @@ func NewFilteredResourceClaimInformer(client kubernetes.Interface, namespace str
return client.ResourceV1alpha3().ResourceClaims(namespace).Watch(context.TODO(), options)
},
},
&resourcev1alpha3.ResourceClaim{},
&apiresourcev1alpha3.ResourceClaim{},
resyncPeriod,
indexers,
)
@ -82,9 +82,9 @@ func (f *resourceClaimInformer) defaultInformer(client kubernetes.Interface, res
}
func (f *resourceClaimInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha3.ResourceClaim{}, f.defaultInformer)
return f.factory.InformerFor(&apiresourcev1alpha3.ResourceClaim{}, f.defaultInformer)
}
func (f *resourceClaimInformer) Lister() v1alpha3.ResourceClaimLister {
return v1alpha3.NewResourceClaimLister(f.Informer().GetIndexer())
func (f *resourceClaimInformer) Lister() resourcev1alpha3.ResourceClaimLister {
return resourcev1alpha3.NewResourceClaimLister(f.Informer().GetIndexer())
}

View File

@ -19,16 +19,16 @@ limitations under the License.
package v1alpha3
import (
"context"
context "context"
time "time"
resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
apiresourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
resourcev1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache"
)
@ -36,7 +36,7 @@ import (
// ResourceClaimTemplates.
type ResourceClaimTemplateInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha3.ResourceClaimTemplateLister
Lister() resourcev1alpha3.ResourceClaimTemplateLister
}
type resourceClaimTemplateInformer struct {
@ -71,7 +71,7 @@ func NewFilteredResourceClaimTemplateInformer(client kubernetes.Interface, names
return client.ResourceV1alpha3().ResourceClaimTemplates(namespace).Watch(context.TODO(), options)
},
},
&resourcev1alpha3.ResourceClaimTemplate{},
&apiresourcev1alpha3.ResourceClaimTemplate{},
resyncPeriod,
indexers,
)
@ -82,9 +82,9 @@ func (f *resourceClaimTemplateInformer) defaultInformer(client kubernetes.Interf
}
func (f *resourceClaimTemplateInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha3.ResourceClaimTemplate{}, f.defaultInformer)
return f.factory.InformerFor(&apiresourcev1alpha3.ResourceClaimTemplate{}, f.defaultInformer)
}
func (f *resourceClaimTemplateInformer) Lister() v1alpha3.ResourceClaimTemplateLister {
return v1alpha3.NewResourceClaimTemplateLister(f.Informer().GetIndexer())
func (f *resourceClaimTemplateInformer) Lister() resourcev1alpha3.ResourceClaimTemplateLister {
return resourcev1alpha3.NewResourceClaimTemplateLister(f.Informer().GetIndexer())
}

View File

@ -19,16 +19,16 @@ limitations under the License.
package v1alpha3
import (
"context"
context "context"
time "time"
resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
apiresourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes"
v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
resourcev1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache"
)
@ -36,7 +36,7 @@ import (
// ResourceSlices.
type ResourceSliceInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha3.ResourceSliceLister
Lister() resourcev1alpha3.ResourceSliceLister
}
type resourceSliceInformer struct {
@ -70,7 +70,7 @@ func NewFilteredResourceSliceInformer(client kubernetes.Interface, resyncPeriod
return client.ResourceV1alpha3().ResourceSlices().Watch(context.TODO(), options)
},
},
&resourcev1alpha3.ResourceSlice{},
&apiresourcev1alpha3.ResourceSlice{},
resyncPeriod,
indexers,
)
@ -81,9 +81,9 @@ func (f *resourceSliceInformer) defaultInformer(client kubernetes.Interface, res
}
func (f *resourceSliceInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha3.ResourceSlice{}, f.defaultInformer)
return f.factory.InformerFor(&apiresourcev1alpha3.ResourceSlice{}, f.defaultInformer)
}
func (f *resourceSliceInformer) Lister() v1alpha3.ResourceSliceLister {
return v1alpha3.NewResourceSliceLister(f.Informer().GetIndexer())
func (f *resourceSliceInformer) Lister() resourcev1alpha3.ResourceSliceLister {
return resourcev1alpha3.NewResourceSliceLister(f.Informer().GetIndexer())
}