DRA API: s/v1beta2/v1/ and generated files

Kubernetes-commit: 4e592f6c145bb322786aa77ff2d25d8fe370b893
This commit is contained in:
Patrick Ohly
2025-07-03 13:29:02 +02:00
committed by Kubernetes Publisher
parent dce90c45af
commit 14fa3d1f20
66 changed files with 1145 additions and 450 deletions

View File

@@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT.
package v1beta2
package v1
import (
context "context"
time "time"
apiresourcev1beta2 "k8s.io/api/resource/v1beta2"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
apiresourcev1 "k8s.io/api/resource/v1"
metav1 "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"
resourcev1beta2 "k8s.io/client-go/listers/resource/v1beta2"
resourcev1 "k8s.io/client-go/listers/resource/v1"
cache "k8s.io/client-go/tools/cache"
)
@@ -36,7 +36,7 @@ import (
// DeviceClasses.
type DeviceClassInformer interface {
Informer() cache.SharedIndexInformer
Lister() resourcev1beta2.DeviceClassLister
Lister() resourcev1.DeviceClassLister
}
type deviceClassInformer struct {
@@ -57,32 +57,32 @@ func NewDeviceClassInformer(client kubernetes.Interface, resyncPeriod time.Durat
func NewFilteredDeviceClassInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1beta2().DeviceClasses().List(context.Background(), options)
return client.ResourceV1().DeviceClasses().List(context.Background(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1beta2().DeviceClasses().Watch(context.Background(), options)
return client.ResourceV1().DeviceClasses().Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) {
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1beta2().DeviceClasses().List(ctx, options)
return client.ResourceV1().DeviceClasses().List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) {
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.ResourceV1beta2().DeviceClasses().Watch(ctx, options)
return client.ResourceV1().DeviceClasses().Watch(ctx, options)
},
},
&apiresourcev1beta2.DeviceClass{},
&apiresourcev1.DeviceClass{},
resyncPeriod,
indexers,
)
@@ -93,9 +93,9 @@ func (f *deviceClassInformer) defaultInformer(client kubernetes.Interface, resyn
}
func (f *deviceClassInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&apiresourcev1beta2.DeviceClass{}, f.defaultInformer)
return f.factory.InformerFor(&apiresourcev1.DeviceClass{}, f.defaultInformer)
}
func (f *deviceClassInformer) Lister() resourcev1beta2.DeviceClassLister {
return resourcev1beta2.NewDeviceClassLister(f.Informer().GetIndexer())
func (f *deviceClassInformer) Lister() resourcev1.DeviceClassLister {
return resourcev1.NewDeviceClassLister(f.Informer().GetIndexer())
}