From 14fa3d1f20c030d2ecf98de0c1a746458d267528 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Thu, 3 Jul 2025 13:29:02 +0200 Subject: [PATCH] DRA API: s/v1beta2/v1/ and generated files Kubernetes-commit: 4e592f6c145bb322786aa77ff2d25d8fe370b893 --- applyconfigurations/internal/internal.go | 582 ++++++++++++++++++ .../resource/v1/allocateddevicestatus.go | 8 +- .../resource/v1/allocationresult.go | 8 +- .../resource/v1/celdeviceselector.go | 2 +- applyconfigurations/resource/v1/counter.go | 2 +- applyconfigurations/resource/v1/counterset.go | 2 +- applyconfigurations/resource/v1/device.go | 32 +- .../v1/deviceallocationconfiguration.go | 10 +- .../resource/v1/deviceallocationresult.go | 2 +- .../resource/v1/deviceattribute.go | 2 +- .../resource/v1/devicecapacity.go | 2 +- .../resource/v1/deviceclaim.go | 2 +- .../resource/v1/deviceclaimconfiguration.go | 2 +- .../resource/v1/deviceclass.go | 34 +- .../resource/v1/deviceclassconfiguration.go | 2 +- .../resource/v1/deviceclassspec.go | 2 +- .../resource/v1/deviceconfiguration.go | 2 +- .../resource/v1/deviceconstraint.go | 10 +- .../resource/v1/devicecounterconsumption.go | 2 +- .../resource/v1/devicerequest.go | 2 +- .../v1/devicerequestallocationresult.go | 2 +- .../resource/v1/deviceselector.go | 2 +- .../resource/v1/devicesubrequest.go | 18 +- .../resource/v1/devicetaint.go | 18 +- .../resource/v1/devicetoleration.go | 18 +- .../resource/v1/exactdevicerequest.go | 18 +- .../resource/v1/networkdevicedata.go | 2 +- .../resource/v1/opaquedeviceconfiguration.go | 2 +- .../resource/v1/resourceclaim.go | 36 +- .../v1/resourceclaimconsumerreference.go | 2 +- .../resource/v1/resourceclaimspec.go | 2 +- .../resource/v1/resourceclaimstatus.go | 2 +- .../resource/v1/resourceclaimtemplate.go | 34 +- .../resource/v1/resourceclaimtemplatespec.go | 18 +- .../resource/v1/resourcepool.go | 2 +- .../resource/v1/resourceslice.go | 34 +- .../resource/v1/resourceslicespec.go | 22 +- applyconfigurations/utils.go | 76 +++ informers/generic.go | 11 + informers/resource/interface.go | 8 + informers/resource/v1/deviceclass.go | 34 +- informers/resource/v1/interface.go | 2 +- informers/resource/v1/resourceclaim.go | 34 +- .../resource/v1/resourceclaimtemplate.go | 34 +- informers/resource/v1/resourceslice.go | 34 +- kubernetes/clientset.go | 13 + kubernetes/fake/clientset_generated.go | 7 + kubernetes/fake/register.go | 2 + kubernetes/scheme/register.go | 2 + kubernetes/typed/resource/v1/deviceclass.go | 38 +- kubernetes/typed/resource/v1/doc.go | 2 +- .../resource/v1/fake/fake_deviceclass.go | 30 +- .../resource/v1/fake/fake_resource_client.go | 14 +- .../resource/v1/fake/fake_resourceclaim.go | 30 +- .../v1/fake/fake_resourceclaimtemplate.go | 28 +- .../resource/v1/fake/fake_resourceslice.go | 30 +- .../typed/resource/v1/generated_expansion.go | 2 +- .../typed/resource/v1/resource_client.go | 42 +- kubernetes/typed/resource/v1/resourceclaim.go | 42 +- .../resource/v1/resourceclaimtemplate.go | 38 +- kubernetes/typed/resource/v1/resourceslice.go | 38 +- listers/resource/v1/deviceclass.go | 12 +- listers/resource/v1/expansion_generated.go | 2 +- listers/resource/v1/resourceclaim.go | 18 +- listers/resource/v1/resourceclaimtemplate.go | 18 +- listers/resource/v1/resourceslice.go | 12 +- 66 files changed, 1145 insertions(+), 450 deletions(-) diff --git a/applyconfigurations/internal/internal.go b/applyconfigurations/internal/internal.go index db1b3cb4d..8a827c167 100644 --- a/applyconfigurations/internal/internal.go +++ b/applyconfigurations/internal/internal.go @@ -12735,6 +12735,588 @@ var schemaYAML = typed.YAMLObject(`types: - name: namespace type: scalar: string +- name: io.k8s.api.resource.v1.AllocatedDeviceStatus + map: + fields: + - name: conditions + type: + list: + elementType: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Condition + elementRelationship: associative + keys: + - type + - name: data + type: + namedType: __untyped_atomic_ + - name: device + type: + scalar: string + default: "" + - name: driver + type: + scalar: string + default: "" + - name: networkData + type: + namedType: io.k8s.api.resource.v1.NetworkDeviceData + - name: pool + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.AllocationResult + map: + fields: + - name: devices + type: + namedType: io.k8s.api.resource.v1.DeviceAllocationResult + default: {} + - name: nodeSelector + type: + namedType: io.k8s.api.core.v1.NodeSelector +- name: io.k8s.api.resource.v1.CELDeviceSelector + map: + fields: + - name: expression + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.Counter + map: + fields: + - name: value + type: + namedType: io.k8s.apimachinery.pkg.api.resource.Quantity +- name: io.k8s.api.resource.v1.CounterSet + map: + fields: + - name: counters + type: + map: + elementType: + namedType: io.k8s.api.resource.v1.Counter + - name: name + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.Device + map: + fields: + - name: allNodes + type: + scalar: boolean + - name: attributes + type: + map: + elementType: + namedType: io.k8s.api.resource.v1.DeviceAttribute + - name: capacity + type: + map: + elementType: + namedType: io.k8s.api.resource.v1.DeviceCapacity + - name: consumesCounters + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceCounterConsumption + elementRelationship: atomic + - name: name + type: + scalar: string + default: "" + - name: nodeName + type: + scalar: string + - name: nodeSelector + type: + namedType: io.k8s.api.core.v1.NodeSelector + - name: taints + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceTaint + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceAllocationConfiguration + map: + fields: + - name: opaque + type: + namedType: io.k8s.api.resource.v1.OpaqueDeviceConfiguration + - name: requests + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: source + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.DeviceAllocationResult + map: + fields: + - name: config + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceAllocationConfiguration + elementRelationship: atomic + - name: results + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceRequestAllocationResult + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceAttribute + map: + fields: + - name: bool + type: + scalar: boolean + - name: int + type: + scalar: numeric + - name: string + type: + scalar: string + - name: version + type: + scalar: string +- name: io.k8s.api.resource.v1.DeviceCapacity + map: + fields: + - name: value + type: + namedType: io.k8s.apimachinery.pkg.api.resource.Quantity +- name: io.k8s.api.resource.v1.DeviceClaim + map: + fields: + - name: config + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceClaimConfiguration + elementRelationship: atomic + - name: constraints + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceConstraint + elementRelationship: atomic + - name: requests + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceRequest + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceClaimConfiguration + map: + fields: + - name: opaque + type: + namedType: io.k8s.api.resource.v1.OpaqueDeviceConfiguration + - name: requests + type: + list: + elementType: + scalar: string + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceClass + map: + fields: + - name: apiVersion + type: + scalar: string + - name: kind + type: + scalar: string + - name: metadata + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + default: {} + - name: spec + type: + namedType: io.k8s.api.resource.v1.DeviceClassSpec + default: {} +- name: io.k8s.api.resource.v1.DeviceClassConfiguration + map: + fields: + - name: opaque + type: + namedType: io.k8s.api.resource.v1.OpaqueDeviceConfiguration +- name: io.k8s.api.resource.v1.DeviceClassSpec + map: + fields: + - name: config + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceClassConfiguration + elementRelationship: atomic + - name: selectors + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceSelector + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceConstraint + map: + fields: + - name: matchAttribute + type: + scalar: string + - name: requests + type: + list: + elementType: + scalar: string + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceCounterConsumption + map: + fields: + - name: counterSet + type: + scalar: string + default: "" + - name: counters + type: + map: + elementType: + namedType: io.k8s.api.resource.v1.Counter +- name: io.k8s.api.resource.v1.DeviceRequest + map: + fields: + - name: exactly + type: + namedType: io.k8s.api.resource.v1.ExactDeviceRequest + - name: firstAvailable + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceSubRequest + elementRelationship: atomic + - name: name + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.DeviceRequestAllocationResult + map: + fields: + - name: adminAccess + type: + scalar: boolean + - name: device + type: + scalar: string + default: "" + - name: driver + type: + scalar: string + default: "" + - name: pool + type: + scalar: string + default: "" + - name: request + type: + scalar: string + default: "" + - name: tolerations + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceToleration + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceSelector + map: + fields: + - name: cel + type: + namedType: io.k8s.api.resource.v1.CELDeviceSelector +- name: io.k8s.api.resource.v1.DeviceSubRequest + map: + fields: + - name: allocationMode + type: + scalar: string + - name: count + type: + scalar: numeric + - name: deviceClassName + type: + scalar: string + default: "" + - name: name + type: + scalar: string + default: "" + - name: selectors + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceSelector + elementRelationship: atomic + - name: tolerations + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceToleration + elementRelationship: atomic +- name: io.k8s.api.resource.v1.DeviceTaint + map: + fields: + - name: effect + type: + scalar: string + default: "" + - name: key + type: + scalar: string + default: "" + - name: timeAdded + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time + - name: value + type: + scalar: string +- name: io.k8s.api.resource.v1.DeviceToleration + map: + fields: + - name: effect + type: + scalar: string + - name: key + type: + scalar: string + - name: operator + type: + scalar: string + default: Equal + - name: tolerationSeconds + type: + scalar: numeric + - name: value + type: + scalar: string +- name: io.k8s.api.resource.v1.ExactDeviceRequest + map: + fields: + - name: adminAccess + type: + scalar: boolean + - name: allocationMode + type: + scalar: string + - name: count + type: + scalar: numeric + - name: deviceClassName + type: + scalar: string + default: "" + - name: selectors + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceSelector + elementRelationship: atomic + - name: tolerations + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.DeviceToleration + elementRelationship: atomic +- name: io.k8s.api.resource.v1.NetworkDeviceData + map: + fields: + - name: hardwareAddress + type: + scalar: string + - name: interfaceName + type: + scalar: string + - name: ips + type: + list: + elementType: + scalar: string + elementRelationship: atomic +- name: io.k8s.api.resource.v1.OpaqueDeviceConfiguration + map: + fields: + - name: driver + type: + scalar: string + default: "" + - name: parameters + type: + namedType: __untyped_atomic_ +- name: io.k8s.api.resource.v1.ResourceClaim + map: + fields: + - name: apiVersion + type: + scalar: string + - name: kind + type: + scalar: string + - name: metadata + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + default: {} + - name: spec + type: + namedType: io.k8s.api.resource.v1.ResourceClaimSpec + default: {} + - name: status + type: + namedType: io.k8s.api.resource.v1.ResourceClaimStatus + default: {} +- name: io.k8s.api.resource.v1.ResourceClaimConsumerReference + map: + fields: + - name: apiGroup + type: + scalar: string + - name: name + type: + scalar: string + default: "" + - name: resource + type: + scalar: string + default: "" + - name: uid + type: + scalar: string + default: "" +- name: io.k8s.api.resource.v1.ResourceClaimSpec + map: + fields: + - name: devices + type: + namedType: io.k8s.api.resource.v1.DeviceClaim + default: {} +- name: io.k8s.api.resource.v1.ResourceClaimStatus + map: + fields: + - name: allocation + type: + namedType: io.k8s.api.resource.v1.AllocationResult + - name: devices + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.AllocatedDeviceStatus + elementRelationship: associative + keys: + - driver + - device + - pool + - name: reservedFor + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.ResourceClaimConsumerReference + elementRelationship: associative + keys: + - uid +- name: io.k8s.api.resource.v1.ResourceClaimTemplate + map: + fields: + - name: apiVersion + type: + scalar: string + - name: kind + type: + scalar: string + - name: metadata + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + default: {} + - name: spec + type: + namedType: io.k8s.api.resource.v1.ResourceClaimTemplateSpec + default: {} +- name: io.k8s.api.resource.v1.ResourceClaimTemplateSpec + map: + fields: + - name: metadata + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + default: {} + - name: spec + type: + namedType: io.k8s.api.resource.v1.ResourceClaimSpec + default: {} +- name: io.k8s.api.resource.v1.ResourcePool + map: + fields: + - name: generation + type: + scalar: numeric + default: 0 + - name: name + type: + scalar: string + default: "" + - name: resourceSliceCount + type: + scalar: numeric + default: 0 +- name: io.k8s.api.resource.v1.ResourceSlice + map: + fields: + - name: apiVersion + type: + scalar: string + - name: kind + type: + scalar: string + - name: metadata + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + default: {} + - name: spec + type: + namedType: io.k8s.api.resource.v1.ResourceSliceSpec + default: {} +- name: io.k8s.api.resource.v1.ResourceSliceSpec + map: + fields: + - name: allNodes + type: + scalar: boolean + - name: devices + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.Device + elementRelationship: atomic + - name: driver + type: + scalar: string + default: "" + - name: nodeName + type: + scalar: string + - name: nodeSelector + type: + namedType: io.k8s.api.core.v1.NodeSelector + - name: perDeviceNodeSelection + type: + scalar: boolean + - name: pool + type: + namedType: io.k8s.api.resource.v1.ResourcePool + default: {} + - name: sharedCounters + type: + list: + elementType: + namedType: io.k8s.api.resource.v1.CounterSet + elementRelationship: atomic - name: io.k8s.api.resource.v1alpha3.CELDeviceSelector map: fields: diff --git a/applyconfigurations/resource/v1/allocateddevicestatus.go b/applyconfigurations/resource/v1/allocateddevicestatus.go index a69cf26eb..8bac58899 100644 --- a/applyconfigurations/resource/v1/allocateddevicestatus.go +++ b/applyconfigurations/resource/v1/allocateddevicestatus.go @@ -16,11 +16,11 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( runtime "k8s.io/apimachinery/pkg/runtime" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // AllocatedDeviceStatusApplyConfiguration represents a declarative configuration of the AllocatedDeviceStatus type for use @@ -29,7 +29,7 @@ type AllocatedDeviceStatusApplyConfiguration struct { Driver *string `json:"driver,omitempty"` Pool *string `json:"pool,omitempty"` Device *string `json:"device,omitempty"` - Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"` + Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"` Data *runtime.RawExtension `json:"data,omitempty"` NetworkData *NetworkDeviceDataApplyConfiguration `json:"networkData,omitempty"` } @@ -67,7 +67,7 @@ func (b *AllocatedDeviceStatusApplyConfiguration) WithDevice(value string) *Allo // WithConditions adds the given value to the Conditions field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Conditions field. -func (b *AllocatedDeviceStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *AllocatedDeviceStatusApplyConfiguration { +func (b *AllocatedDeviceStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *AllocatedDeviceStatusApplyConfiguration { for i := range values { if values[i] == nil { panic("nil value passed to WithConditions") diff --git a/applyconfigurations/resource/v1/allocationresult.go b/applyconfigurations/resource/v1/allocationresult.go index a82b01c96..137ffb804 100644 --- a/applyconfigurations/resource/v1/allocationresult.go +++ b/applyconfigurations/resource/v1/allocationresult.go @@ -16,17 +16,17 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - v1 "k8s.io/client-go/applyconfigurations/core/v1" + corev1 "k8s.io/client-go/applyconfigurations/core/v1" ) // AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use // with apply. type AllocationResultApplyConfiguration struct { Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` } // AllocationResultApplyConfiguration constructs a declarative configuration of the AllocationResult type for use with @@ -46,7 +46,7 @@ func (b *AllocationResultApplyConfiguration) WithDevices(value *DeviceAllocation // WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NodeSelector field is set to the value of the last call. -func (b *AllocationResultApplyConfiguration) WithNodeSelector(value *v1.NodeSelectorApplyConfiguration) *AllocationResultApplyConfiguration { +func (b *AllocationResultApplyConfiguration) WithNodeSelector(value *corev1.NodeSelectorApplyConfiguration) *AllocationResultApplyConfiguration { b.NodeSelector = value return b } diff --git a/applyconfigurations/resource/v1/celdeviceselector.go b/applyconfigurations/resource/v1/celdeviceselector.go index c2c3e52f0..4d1e8ecb7 100644 --- a/applyconfigurations/resource/v1/celdeviceselector.go +++ b/applyconfigurations/resource/v1/celdeviceselector.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // CELDeviceSelectorApplyConfiguration represents a declarative configuration of the CELDeviceSelector type for use // with apply. diff --git a/applyconfigurations/resource/v1/counter.go b/applyconfigurations/resource/v1/counter.go index 4afdb9a3a..92ec63bb4 100644 --- a/applyconfigurations/resource/v1/counter.go +++ b/applyconfigurations/resource/v1/counter.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( resource "k8s.io/apimachinery/pkg/api/resource" diff --git a/applyconfigurations/resource/v1/counterset.go b/applyconfigurations/resource/v1/counterset.go index 2882b4ef2..3a5d2863d 100644 --- a/applyconfigurations/resource/v1/counterset.go +++ b/applyconfigurations/resource/v1/counterset.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // CounterSetApplyConfiguration represents a declarative configuration of the CounterSet type for use // with apply. diff --git a/applyconfigurations/resource/v1/device.go b/applyconfigurations/resource/v1/device.go index a05eb513f..900fdd74b 100644 --- a/applyconfigurations/resource/v1/device.go +++ b/applyconfigurations/resource/v1/device.go @@ -16,24 +16,24 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/client-go/applyconfigurations/core/v1" + resourcev1 "k8s.io/api/resource/v1" + corev1 "k8s.io/client-go/applyconfigurations/core/v1" ) // DeviceApplyConfiguration represents a declarative configuration of the Device type for use // with apply. type DeviceApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Attributes map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` - Capacity map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` - ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` - AllNodes *bool `json:"allNodes,omitempty"` - Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + Name *string `json:"name,omitempty"` + Attributes map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` + Capacity map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` + ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllNodes *bool `json:"allNodes,omitempty"` + Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` } // DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with @@ -54,9 +54,9 @@ func (b *DeviceApplyConfiguration) WithName(value string) *DeviceApplyConfigurat // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, the entries provided by each call will be put on the Attributes field, // overwriting an existing map entries in Attributes field with the same key. -func (b *DeviceApplyConfiguration) WithAttributes(entries map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration) *DeviceApplyConfiguration { +func (b *DeviceApplyConfiguration) WithAttributes(entries map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration) *DeviceApplyConfiguration { if b.Attributes == nil && len(entries) > 0 { - b.Attributes = make(map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration, len(entries)) + b.Attributes = make(map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration, len(entries)) } for k, v := range entries { b.Attributes[k] = v @@ -68,9 +68,9 @@ func (b *DeviceApplyConfiguration) WithAttributes(entries map[resourcev1beta2.Qu // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, the entries provided by each call will be put on the Capacity field, // overwriting an existing map entries in Capacity field with the same key. -func (b *DeviceApplyConfiguration) WithCapacity(entries map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration) *DeviceApplyConfiguration { +func (b *DeviceApplyConfiguration) WithCapacity(entries map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration) *DeviceApplyConfiguration { if b.Capacity == nil && len(entries) > 0 { - b.Capacity = make(map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration, len(entries)) + b.Capacity = make(map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration, len(entries)) } for k, v := range entries { b.Capacity[k] = v @@ -102,7 +102,7 @@ func (b *DeviceApplyConfiguration) WithNodeName(value string) *DeviceApplyConfig // WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NodeSelector field is set to the value of the last call. -func (b *DeviceApplyConfiguration) WithNodeSelector(value *v1.NodeSelectorApplyConfiguration) *DeviceApplyConfiguration { +func (b *DeviceApplyConfiguration) WithNodeSelector(value *corev1.NodeSelectorApplyConfiguration) *DeviceApplyConfiguration { b.NodeSelector = value return b } diff --git a/applyconfigurations/resource/v1/deviceallocationconfiguration.go b/applyconfigurations/resource/v1/deviceallocationconfiguration.go index 971fe807c..f1d009cc4 100644 --- a/applyconfigurations/resource/v1/deviceallocationconfiguration.go +++ b/applyconfigurations/resource/v1/deviceallocationconfiguration.go @@ -16,17 +16,17 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" ) // DeviceAllocationConfigurationApplyConfiguration represents a declarative configuration of the DeviceAllocationConfiguration type for use // with apply. type DeviceAllocationConfigurationApplyConfiguration struct { - Source *resourcev1beta2.AllocationConfigSource `json:"source,omitempty"` - Requests []string `json:"requests,omitempty"` + Source *resourcev1.AllocationConfigSource `json:"source,omitempty"` + Requests []string `json:"requests,omitempty"` DeviceConfigurationApplyConfiguration `json:",inline"` } @@ -39,7 +39,7 @@ func DeviceAllocationConfiguration() *DeviceAllocationConfigurationApplyConfigur // WithSource sets the Source field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Source field is set to the value of the last call. -func (b *DeviceAllocationConfigurationApplyConfiguration) WithSource(value resourcev1beta2.AllocationConfigSource) *DeviceAllocationConfigurationApplyConfiguration { +func (b *DeviceAllocationConfigurationApplyConfiguration) WithSource(value resourcev1.AllocationConfigSource) *DeviceAllocationConfigurationApplyConfiguration { b.Source = &value return b } diff --git a/applyconfigurations/resource/v1/deviceallocationresult.go b/applyconfigurations/resource/v1/deviceallocationresult.go index 5d9f01307..e95e45f28 100644 --- a/applyconfigurations/resource/v1/deviceallocationresult.go +++ b/applyconfigurations/resource/v1/deviceallocationresult.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceAllocationResultApplyConfiguration represents a declarative configuration of the DeviceAllocationResult type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceattribute.go b/applyconfigurations/resource/v1/deviceattribute.go index c5f88c3f7..c2e5829a9 100644 --- a/applyconfigurations/resource/v1/deviceattribute.go +++ b/applyconfigurations/resource/v1/deviceattribute.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceAttributeApplyConfiguration represents a declarative configuration of the DeviceAttribute type for use // with apply. diff --git a/applyconfigurations/resource/v1/devicecapacity.go b/applyconfigurations/resource/v1/devicecapacity.go index f62168cde..9dd7bcfaf 100644 --- a/applyconfigurations/resource/v1/devicecapacity.go +++ b/applyconfigurations/resource/v1/devicecapacity.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( resource "k8s.io/apimachinery/pkg/api/resource" diff --git a/applyconfigurations/resource/v1/deviceclaim.go b/applyconfigurations/resource/v1/deviceclaim.go index 33af599ac..8297805f2 100644 --- a/applyconfigurations/resource/v1/deviceclaim.go +++ b/applyconfigurations/resource/v1/deviceclaim.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceClaimApplyConfiguration represents a declarative configuration of the DeviceClaim type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceclaimconfiguration.go b/applyconfigurations/resource/v1/deviceclaimconfiguration.go index 08464b399..a5bae3bf9 100644 --- a/applyconfigurations/resource/v1/deviceclaimconfiguration.go +++ b/applyconfigurations/resource/v1/deviceclaimconfiguration.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceClaimConfigurationApplyConfiguration represents a declarative configuration of the DeviceClaimConfiguration type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceclass.go b/applyconfigurations/resource/v1/deviceclass.go index 39cac1154..2c9ed5bb3 100644 --- a/applyconfigurations/resource/v1/deviceclass.go +++ b/applyconfigurations/resource/v1/deviceclass.go @@ -16,23 +16,23 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" internal "k8s.io/client-go/applyconfigurations/internal" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // DeviceClassApplyConfiguration represents a declarative configuration of the DeviceClass type for use // with apply. type DeviceClassApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *DeviceClassSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *DeviceClassSpecApplyConfiguration `json:"spec,omitempty"` } // DeviceClass constructs a declarative configuration of the DeviceClass type for use with @@ -41,7 +41,7 @@ func DeviceClass(name string) *DeviceClassApplyConfiguration { b := &DeviceClassApplyConfiguration{} b.WithName(name) b.WithKind("DeviceClass") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b } @@ -56,27 +56,27 @@ func DeviceClass(name string) *DeviceClassApplyConfiguration { // Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // applied if another fieldManager has updated or force applied any of the previously applied fields. // Experimental! -func ExtractDeviceClass(deviceClass *resourcev1beta2.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error) { +func ExtractDeviceClass(deviceClass *resourcev1.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error) { return extractDeviceClass(deviceClass, fieldManager, "") } // ExtractDeviceClassStatus is the same as ExtractDeviceClass except // that it extracts the status subresource applied configuration. // Experimental! -func ExtractDeviceClassStatus(deviceClass *resourcev1beta2.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error) { +func ExtractDeviceClassStatus(deviceClass *resourcev1.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error) { return extractDeviceClass(deviceClass, fieldManager, "status") } -func extractDeviceClass(deviceClass *resourcev1beta2.DeviceClass, fieldManager string, subresource string) (*DeviceClassApplyConfiguration, error) { +func extractDeviceClass(deviceClass *resourcev1.DeviceClass, fieldManager string, subresource string) (*DeviceClassApplyConfiguration, error) { b := &DeviceClassApplyConfiguration{} - err := managedfields.ExtractInto(deviceClass, internal.Parser().Type("io.k8s.api.resource.v1beta2.DeviceClass"), fieldManager, b, subresource) + err := managedfields.ExtractInto(deviceClass, internal.Parser().Type("io.k8s.api.resource.v1.DeviceClass"), fieldManager, b, subresource) if err != nil { return nil, err } b.WithName(deviceClass.Name) b.WithKind("DeviceClass") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b, nil } func (b DeviceClassApplyConfiguration) IsApplyConfiguration() {} @@ -154,7 +154,7 @@ func (b *DeviceClassApplyConfiguration) WithGeneration(value int64) *DeviceClass // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *DeviceClassApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeviceClassApplyConfiguration { +func (b *DeviceClassApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DeviceClassApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b @@ -163,7 +163,7 @@ func (b *DeviceClassApplyConfiguration) WithCreationTimestamp(value metav1.Time) // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *DeviceClassApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeviceClassApplyConfiguration { +func (b *DeviceClassApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DeviceClassApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b @@ -211,7 +211,7 @@ func (b *DeviceClassApplyConfiguration) WithAnnotations(entries map[string]strin // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *DeviceClassApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DeviceClassApplyConfiguration { +func (b *DeviceClassApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DeviceClassApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { @@ -235,7 +235,7 @@ func (b *DeviceClassApplyConfiguration) WithFinalizers(values ...string) *Device func (b *DeviceClassApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } diff --git a/applyconfigurations/resource/v1/deviceclassconfiguration.go b/applyconfigurations/resource/v1/deviceclassconfiguration.go index 904410280..73d7e15a7 100644 --- a/applyconfigurations/resource/v1/deviceclassconfiguration.go +++ b/applyconfigurations/resource/v1/deviceclassconfiguration.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceClassConfigurationApplyConfiguration represents a declarative configuration of the DeviceClassConfiguration type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceclassspec.go b/applyconfigurations/resource/v1/deviceclassspec.go index c92a83e6b..0ad738a6f 100644 --- a/applyconfigurations/resource/v1/deviceclassspec.go +++ b/applyconfigurations/resource/v1/deviceclassspec.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceClassSpecApplyConfiguration represents a declarative configuration of the DeviceClassSpec type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceconfiguration.go b/applyconfigurations/resource/v1/deviceconfiguration.go index 2032433f3..7f4b88a3d 100644 --- a/applyconfigurations/resource/v1/deviceconfiguration.go +++ b/applyconfigurations/resource/v1/deviceconfiguration.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceConfigurationApplyConfiguration represents a declarative configuration of the DeviceConfiguration type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceconstraint.go b/applyconfigurations/resource/v1/deviceconstraint.go index 460ffdd08..3582bd62b 100644 --- a/applyconfigurations/resource/v1/deviceconstraint.go +++ b/applyconfigurations/resource/v1/deviceconstraint.go @@ -16,17 +16,17 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" ) // DeviceConstraintApplyConfiguration represents a declarative configuration of the DeviceConstraint type for use // with apply. type DeviceConstraintApplyConfiguration struct { - Requests []string `json:"requests,omitempty"` - MatchAttribute *resourcev1beta2.FullyQualifiedName `json:"matchAttribute,omitempty"` + Requests []string `json:"requests,omitempty"` + MatchAttribute *resourcev1.FullyQualifiedName `json:"matchAttribute,omitempty"` } // DeviceConstraintApplyConfiguration constructs a declarative configuration of the DeviceConstraint type for use with @@ -48,7 +48,7 @@ func (b *DeviceConstraintApplyConfiguration) WithRequests(values ...string) *Dev // WithMatchAttribute sets the MatchAttribute field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MatchAttribute field is set to the value of the last call. -func (b *DeviceConstraintApplyConfiguration) WithMatchAttribute(value resourcev1beta2.FullyQualifiedName) *DeviceConstraintApplyConfiguration { +func (b *DeviceConstraintApplyConfiguration) WithMatchAttribute(value resourcev1.FullyQualifiedName) *DeviceConstraintApplyConfiguration { b.MatchAttribute = &value return b } diff --git a/applyconfigurations/resource/v1/devicecounterconsumption.go b/applyconfigurations/resource/v1/devicecounterconsumption.go index 9d6d0a873..6377d0041 100644 --- a/applyconfigurations/resource/v1/devicecounterconsumption.go +++ b/applyconfigurations/resource/v1/devicecounterconsumption.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceCounterConsumptionApplyConfiguration represents a declarative configuration of the DeviceCounterConsumption type for use // with apply. diff --git a/applyconfigurations/resource/v1/devicerequest.go b/applyconfigurations/resource/v1/devicerequest.go index 426c97487..a17ecfc69 100644 --- a/applyconfigurations/resource/v1/devicerequest.go +++ b/applyconfigurations/resource/v1/devicerequest.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceRequestApplyConfiguration represents a declarative configuration of the DeviceRequest type for use // with apply. diff --git a/applyconfigurations/resource/v1/devicerequestallocationresult.go b/applyconfigurations/resource/v1/devicerequestallocationresult.go index ab826812e..a3069c1a8 100644 --- a/applyconfigurations/resource/v1/devicerequestallocationresult.go +++ b/applyconfigurations/resource/v1/devicerequestallocationresult.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use // with apply. diff --git a/applyconfigurations/resource/v1/deviceselector.go b/applyconfigurations/resource/v1/deviceselector.go index fd064e5f6..0426206a8 100644 --- a/applyconfigurations/resource/v1/deviceselector.go +++ b/applyconfigurations/resource/v1/deviceselector.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceSelectorApplyConfiguration represents a declarative configuration of the DeviceSelector type for use // with apply. diff --git a/applyconfigurations/resource/v1/devicesubrequest.go b/applyconfigurations/resource/v1/devicesubrequest.go index aaf8600ad..39c299958 100644 --- a/applyconfigurations/resource/v1/devicesubrequest.go +++ b/applyconfigurations/resource/v1/devicesubrequest.go @@ -16,21 +16,21 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" ) // DeviceSubRequestApplyConfiguration represents a declarative configuration of the DeviceSubRequest type for use // with apply. type DeviceSubRequestApplyConfiguration struct { - Name *string `json:"name,omitempty"` - DeviceClassName *string `json:"deviceClassName,omitempty"` - Selectors []DeviceSelectorApplyConfiguration `json:"selectors,omitempty"` - AllocationMode *resourcev1beta2.DeviceAllocationMode `json:"allocationMode,omitempty"` - Count *int64 `json:"count,omitempty"` - Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + Name *string `json:"name,omitempty"` + DeviceClassName *string `json:"deviceClassName,omitempty"` + Selectors []DeviceSelectorApplyConfiguration `json:"selectors,omitempty"` + AllocationMode *resourcev1.DeviceAllocationMode `json:"allocationMode,omitempty"` + Count *int64 `json:"count,omitempty"` + Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` } // DeviceSubRequestApplyConfiguration constructs a declarative configuration of the DeviceSubRequest type for use with @@ -71,7 +71,7 @@ func (b *DeviceSubRequestApplyConfiguration) WithSelectors(values ...*DeviceSele // WithAllocationMode sets the AllocationMode field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the AllocationMode field is set to the value of the last call. -func (b *DeviceSubRequestApplyConfiguration) WithAllocationMode(value resourcev1beta2.DeviceAllocationMode) *DeviceSubRequestApplyConfiguration { +func (b *DeviceSubRequestApplyConfiguration) WithAllocationMode(value resourcev1.DeviceAllocationMode) *DeviceSubRequestApplyConfiguration { b.AllocationMode = &value return b } diff --git a/applyconfigurations/resource/v1/devicetaint.go b/applyconfigurations/resource/v1/devicetaint.go index b21f98a15..c4e7a2217 100644 --- a/applyconfigurations/resource/v1/devicetaint.go +++ b/applyconfigurations/resource/v1/devicetaint.go @@ -16,20 +16,20 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // DeviceTaintApplyConfiguration represents a declarative configuration of the DeviceTaint type for use // with apply. type DeviceTaintApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` - Effect *resourcev1beta2.DeviceTaintEffect `json:"effect,omitempty"` - TimeAdded *v1.Time `json:"timeAdded,omitempty"` + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + Effect *resourcev1.DeviceTaintEffect `json:"effect,omitempty"` + TimeAdded *metav1.Time `json:"timeAdded,omitempty"` } // DeviceTaintApplyConfiguration constructs a declarative configuration of the DeviceTaint type for use with @@ -57,7 +57,7 @@ func (b *DeviceTaintApplyConfiguration) WithValue(value string) *DeviceTaintAppl // WithEffect sets the Effect field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Effect field is set to the value of the last call. -func (b *DeviceTaintApplyConfiguration) WithEffect(value resourcev1beta2.DeviceTaintEffect) *DeviceTaintApplyConfiguration { +func (b *DeviceTaintApplyConfiguration) WithEffect(value resourcev1.DeviceTaintEffect) *DeviceTaintApplyConfiguration { b.Effect = &value return b } @@ -65,7 +65,7 @@ func (b *DeviceTaintApplyConfiguration) WithEffect(value resourcev1beta2.DeviceT // WithTimeAdded sets the TimeAdded field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the TimeAdded field is set to the value of the last call. -func (b *DeviceTaintApplyConfiguration) WithTimeAdded(value v1.Time) *DeviceTaintApplyConfiguration { +func (b *DeviceTaintApplyConfiguration) WithTimeAdded(value metav1.Time) *DeviceTaintApplyConfiguration { b.TimeAdded = &value return b } diff --git a/applyconfigurations/resource/v1/devicetoleration.go b/applyconfigurations/resource/v1/devicetoleration.go index ae471233f..de995b25a 100644 --- a/applyconfigurations/resource/v1/devicetoleration.go +++ b/applyconfigurations/resource/v1/devicetoleration.go @@ -16,20 +16,20 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" ) // DeviceTolerationApplyConfiguration represents a declarative configuration of the DeviceToleration type for use // with apply. type DeviceTolerationApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Operator *resourcev1beta2.DeviceTolerationOperator `json:"operator,omitempty"` - Value *string `json:"value,omitempty"` - Effect *resourcev1beta2.DeviceTaintEffect `json:"effect,omitempty"` - TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` + Key *string `json:"key,omitempty"` + Operator *resourcev1.DeviceTolerationOperator `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + Effect *resourcev1.DeviceTaintEffect `json:"effect,omitempty"` + TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` } // DeviceTolerationApplyConfiguration constructs a declarative configuration of the DeviceToleration type for use with @@ -49,7 +49,7 @@ func (b *DeviceTolerationApplyConfiguration) WithKey(value string) *DeviceTolera // WithOperator sets the Operator field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Operator field is set to the value of the last call. -func (b *DeviceTolerationApplyConfiguration) WithOperator(value resourcev1beta2.DeviceTolerationOperator) *DeviceTolerationApplyConfiguration { +func (b *DeviceTolerationApplyConfiguration) WithOperator(value resourcev1.DeviceTolerationOperator) *DeviceTolerationApplyConfiguration { b.Operator = &value return b } @@ -65,7 +65,7 @@ func (b *DeviceTolerationApplyConfiguration) WithValue(value string) *DeviceTole // WithEffect sets the Effect field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Effect field is set to the value of the last call. -func (b *DeviceTolerationApplyConfiguration) WithEffect(value resourcev1beta2.DeviceTaintEffect) *DeviceTolerationApplyConfiguration { +func (b *DeviceTolerationApplyConfiguration) WithEffect(value resourcev1.DeviceTaintEffect) *DeviceTolerationApplyConfiguration { b.Effect = &value return b } diff --git a/applyconfigurations/resource/v1/exactdevicerequest.go b/applyconfigurations/resource/v1/exactdevicerequest.go index 2d7d7155e..414ea3fde 100644 --- a/applyconfigurations/resource/v1/exactdevicerequest.go +++ b/applyconfigurations/resource/v1/exactdevicerequest.go @@ -16,21 +16,21 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" ) // ExactDeviceRequestApplyConfiguration represents a declarative configuration of the ExactDeviceRequest type for use // with apply. type ExactDeviceRequestApplyConfiguration struct { - DeviceClassName *string `json:"deviceClassName,omitempty"` - Selectors []DeviceSelectorApplyConfiguration `json:"selectors,omitempty"` - AllocationMode *resourcev1beta2.DeviceAllocationMode `json:"allocationMode,omitempty"` - Count *int64 `json:"count,omitempty"` - AdminAccess *bool `json:"adminAccess,omitempty"` - Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + DeviceClassName *string `json:"deviceClassName,omitempty"` + Selectors []DeviceSelectorApplyConfiguration `json:"selectors,omitempty"` + AllocationMode *resourcev1.DeviceAllocationMode `json:"allocationMode,omitempty"` + Count *int64 `json:"count,omitempty"` + AdminAccess *bool `json:"adminAccess,omitempty"` + Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` } // ExactDeviceRequestApplyConfiguration constructs a declarative configuration of the ExactDeviceRequest type for use with @@ -63,7 +63,7 @@ func (b *ExactDeviceRequestApplyConfiguration) WithSelectors(values ...*DeviceSe // WithAllocationMode sets the AllocationMode field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the AllocationMode field is set to the value of the last call. -func (b *ExactDeviceRequestApplyConfiguration) WithAllocationMode(value resourcev1beta2.DeviceAllocationMode) *ExactDeviceRequestApplyConfiguration { +func (b *ExactDeviceRequestApplyConfiguration) WithAllocationMode(value resourcev1.DeviceAllocationMode) *ExactDeviceRequestApplyConfiguration { b.AllocationMode = &value return b } diff --git a/applyconfigurations/resource/v1/networkdevicedata.go b/applyconfigurations/resource/v1/networkdevicedata.go index 9b0944f8f..37bf604aa 100644 --- a/applyconfigurations/resource/v1/networkdevicedata.go +++ b/applyconfigurations/resource/v1/networkdevicedata.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // NetworkDeviceDataApplyConfiguration represents a declarative configuration of the NetworkDeviceData type for use // with apply. diff --git a/applyconfigurations/resource/v1/opaquedeviceconfiguration.go b/applyconfigurations/resource/v1/opaquedeviceconfiguration.go index aa8fe43f3..5df44a9c7 100644 --- a/applyconfigurations/resource/v1/opaquedeviceconfiguration.go +++ b/applyconfigurations/resource/v1/opaquedeviceconfiguration.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( runtime "k8s.io/apimachinery/pkg/runtime" diff --git a/applyconfigurations/resource/v1/resourceclaim.go b/applyconfigurations/resource/v1/resourceclaim.go index 0d8d59db9..dada5ca3c 100644 --- a/applyconfigurations/resource/v1/resourceclaim.go +++ b/applyconfigurations/resource/v1/resourceclaim.go @@ -16,24 +16,24 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" internal "k8s.io/client-go/applyconfigurations/internal" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ResourceClaimApplyConfiguration represents a declarative configuration of the ResourceClaim type for use // with apply. type ResourceClaimApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *ResourceClaimSpecApplyConfiguration `json:"spec,omitempty"` - Status *ResourceClaimStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceClaimSpecApplyConfiguration `json:"spec,omitempty"` + Status *ResourceClaimStatusApplyConfiguration `json:"status,omitempty"` } // ResourceClaim constructs a declarative configuration of the ResourceClaim type for use with @@ -43,7 +43,7 @@ func ResourceClaim(name, namespace string) *ResourceClaimApplyConfiguration { b.WithName(name) b.WithNamespace(namespace) b.WithKind("ResourceClaim") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b } @@ -58,20 +58,20 @@ func ResourceClaim(name, namespace string) *ResourceClaimApplyConfiguration { // Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // applied if another fieldManager has updated or force applied any of the previously applied fields. // Experimental! -func ExtractResourceClaim(resourceClaim *resourcev1beta2.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { +func ExtractResourceClaim(resourceClaim *resourcev1.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { return extractResourceClaim(resourceClaim, fieldManager, "") } // ExtractResourceClaimStatus is the same as ExtractResourceClaim except // that it extracts the status subresource applied configuration. // Experimental! -func ExtractResourceClaimStatus(resourceClaim *resourcev1beta2.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { +func ExtractResourceClaimStatus(resourceClaim *resourcev1.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { return extractResourceClaim(resourceClaim, fieldManager, "status") } -func extractResourceClaim(resourceClaim *resourcev1beta2.ResourceClaim, fieldManager string, subresource string) (*ResourceClaimApplyConfiguration, error) { +func extractResourceClaim(resourceClaim *resourcev1.ResourceClaim, fieldManager string, subresource string) (*ResourceClaimApplyConfiguration, error) { b := &ResourceClaimApplyConfiguration{} - err := managedfields.ExtractInto(resourceClaim, internal.Parser().Type("io.k8s.api.resource.v1beta2.ResourceClaim"), fieldManager, b, subresource) + err := managedfields.ExtractInto(resourceClaim, internal.Parser().Type("io.k8s.api.resource.v1.ResourceClaim"), fieldManager, b, subresource) if err != nil { return nil, err } @@ -79,7 +79,7 @@ func extractResourceClaim(resourceClaim *resourcev1beta2.ResourceClaim, fieldMan b.WithNamespace(resourceClaim.Namespace) b.WithKind("ResourceClaim") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b, nil } func (b ResourceClaimApplyConfiguration) IsApplyConfiguration() {} @@ -157,7 +157,7 @@ func (b *ResourceClaimApplyConfiguration) WithGeneration(value int64) *ResourceC // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ResourceClaimApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceClaimApplyConfiguration { +func (b *ResourceClaimApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ResourceClaimApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b @@ -166,7 +166,7 @@ func (b *ResourceClaimApplyConfiguration) WithCreationTimestamp(value metav1.Tim // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ResourceClaimApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceClaimApplyConfiguration { +func (b *ResourceClaimApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ResourceClaimApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b @@ -214,7 +214,7 @@ func (b *ResourceClaimApplyConfiguration) WithAnnotations(entries map[string]str // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ResourceClaimApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceClaimApplyConfiguration { +func (b *ResourceClaimApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ResourceClaimApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { @@ -238,7 +238,7 @@ func (b *ResourceClaimApplyConfiguration) WithFinalizers(values ...string) *Reso func (b *ResourceClaimApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } diff --git a/applyconfigurations/resource/v1/resourceclaimconsumerreference.go b/applyconfigurations/resource/v1/resourceclaimconsumerreference.go index b7824e859..7c761a444 100644 --- a/applyconfigurations/resource/v1/resourceclaimconsumerreference.go +++ b/applyconfigurations/resource/v1/resourceclaimconsumerreference.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( types "k8s.io/apimachinery/pkg/types" diff --git a/applyconfigurations/resource/v1/resourceclaimspec.go b/applyconfigurations/resource/v1/resourceclaimspec.go index e1fce1715..7f05f4f99 100644 --- a/applyconfigurations/resource/v1/resourceclaimspec.go +++ b/applyconfigurations/resource/v1/resourceclaimspec.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // ResourceClaimSpecApplyConfiguration represents a declarative configuration of the ResourceClaimSpec type for use // with apply. diff --git a/applyconfigurations/resource/v1/resourceclaimstatus.go b/applyconfigurations/resource/v1/resourceclaimstatus.go index a3e7ae258..75865ba49 100644 --- a/applyconfigurations/resource/v1/resourceclaimstatus.go +++ b/applyconfigurations/resource/v1/resourceclaimstatus.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // ResourceClaimStatusApplyConfiguration represents a declarative configuration of the ResourceClaimStatus type for use // with apply. diff --git a/applyconfigurations/resource/v1/resourceclaimtemplate.go b/applyconfigurations/resource/v1/resourceclaimtemplate.go index 2e79c6640..694246618 100644 --- a/applyconfigurations/resource/v1/resourceclaimtemplate.go +++ b/applyconfigurations/resource/v1/resourceclaimtemplate.go @@ -16,23 +16,23 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" internal "k8s.io/client-go/applyconfigurations/internal" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ResourceClaimTemplateApplyConfiguration represents a declarative configuration of the ResourceClaimTemplate type for use // with apply. type ResourceClaimTemplateApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *ResourceClaimTemplateSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceClaimTemplateSpecApplyConfiguration `json:"spec,omitempty"` } // ResourceClaimTemplate constructs a declarative configuration of the ResourceClaimTemplate type for use with @@ -42,7 +42,7 @@ func ResourceClaimTemplate(name, namespace string) *ResourceClaimTemplateApplyCo b.WithName(name) b.WithNamespace(namespace) b.WithKind("ResourceClaimTemplate") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b } @@ -57,20 +57,20 @@ func ResourceClaimTemplate(name, namespace string) *ResourceClaimTemplateApplyCo // Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // applied if another fieldManager has updated or force applied any of the previously applied fields. // Experimental! -func ExtractResourceClaimTemplate(resourceClaimTemplate *resourcev1beta2.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { +func ExtractResourceClaimTemplate(resourceClaimTemplate *resourcev1.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "") } // ExtractResourceClaimTemplateStatus is the same as ExtractResourceClaimTemplate except // that it extracts the status subresource applied configuration. // Experimental! -func ExtractResourceClaimTemplateStatus(resourceClaimTemplate *resourcev1beta2.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { +func ExtractResourceClaimTemplateStatus(resourceClaimTemplate *resourcev1.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "status") } -func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1beta2.ResourceClaimTemplate, fieldManager string, subresource string) (*ResourceClaimTemplateApplyConfiguration, error) { +func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1.ResourceClaimTemplate, fieldManager string, subresource string) (*ResourceClaimTemplateApplyConfiguration, error) { b := &ResourceClaimTemplateApplyConfiguration{} - err := managedfields.ExtractInto(resourceClaimTemplate, internal.Parser().Type("io.k8s.api.resource.v1beta2.ResourceClaimTemplate"), fieldManager, b, subresource) + err := managedfields.ExtractInto(resourceClaimTemplate, internal.Parser().Type("io.k8s.api.resource.v1.ResourceClaimTemplate"), fieldManager, b, subresource) if err != nil { return nil, err } @@ -78,7 +78,7 @@ func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1beta2.Resourc b.WithNamespace(resourceClaimTemplate.Namespace) b.WithKind("ResourceClaimTemplate") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b, nil } func (b ResourceClaimTemplateApplyConfiguration) IsApplyConfiguration() {} @@ -156,7 +156,7 @@ func (b *ResourceClaimTemplateApplyConfiguration) WithGeneration(value int64) *R // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ResourceClaimTemplateApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceClaimTemplateApplyConfiguration { +func (b *ResourceClaimTemplateApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ResourceClaimTemplateApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b @@ -165,7 +165,7 @@ func (b *ResourceClaimTemplateApplyConfiguration) WithCreationTimestamp(value me // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ResourceClaimTemplateApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceClaimTemplateApplyConfiguration { +func (b *ResourceClaimTemplateApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ResourceClaimTemplateApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b @@ -213,7 +213,7 @@ func (b *ResourceClaimTemplateApplyConfiguration) WithAnnotations(entries map[st // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ResourceClaimTemplateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceClaimTemplateApplyConfiguration { +func (b *ResourceClaimTemplateApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ResourceClaimTemplateApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { @@ -237,7 +237,7 @@ func (b *ResourceClaimTemplateApplyConfiguration) WithFinalizers(values ...strin func (b *ResourceClaimTemplateApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } diff --git a/applyconfigurations/resource/v1/resourceclaimtemplatespec.go b/applyconfigurations/resource/v1/resourceclaimtemplatespec.go index 7868d1dd9..af7d87726 100644 --- a/applyconfigurations/resource/v1/resourceclaimtemplatespec.go +++ b/applyconfigurations/resource/v1/resourceclaimtemplatespec.go @@ -16,19 +16,19 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ResourceClaimTemplateSpecApplyConfiguration represents a declarative configuration of the ResourceClaimTemplateSpec type for use // with apply. type ResourceClaimTemplateSpecApplyConfiguration struct { - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *ResourceClaimSpecApplyConfiguration `json:"spec,omitempty"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceClaimSpecApplyConfiguration `json:"spec,omitempty"` } // ResourceClaimTemplateSpecApplyConfiguration constructs a declarative configuration of the ResourceClaimTemplateSpec type for use with @@ -94,7 +94,7 @@ func (b *ResourceClaimTemplateSpecApplyConfiguration) WithGeneration(value int64 // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ResourceClaimTemplateSpecApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceClaimTemplateSpecApplyConfiguration { +func (b *ResourceClaimTemplateSpecApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ResourceClaimTemplateSpecApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b @@ -103,7 +103,7 @@ func (b *ResourceClaimTemplateSpecApplyConfiguration) WithCreationTimestamp(valu // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ResourceClaimTemplateSpecApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceClaimTemplateSpecApplyConfiguration { +func (b *ResourceClaimTemplateSpecApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ResourceClaimTemplateSpecApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b @@ -151,7 +151,7 @@ func (b *ResourceClaimTemplateSpecApplyConfiguration) WithAnnotations(entries ma // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ResourceClaimTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceClaimTemplateSpecApplyConfiguration { +func (b *ResourceClaimTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ResourceClaimTemplateSpecApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { @@ -175,7 +175,7 @@ func (b *ResourceClaimTemplateSpecApplyConfiguration) WithFinalizers(values ...s func (b *ResourceClaimTemplateSpecApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } diff --git a/applyconfigurations/resource/v1/resourcepool.go b/applyconfigurations/resource/v1/resourcepool.go index 6923085d6..22e06076d 100644 --- a/applyconfigurations/resource/v1/resourcepool.go +++ b/applyconfigurations/resource/v1/resourcepool.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 // ResourcePoolApplyConfiguration represents a declarative configuration of the ResourcePool type for use // with apply. diff --git a/applyconfigurations/resource/v1/resourceslice.go b/applyconfigurations/resource/v1/resourceslice.go index d62ff1e13..6f9b20215 100644 --- a/applyconfigurations/resource/v1/resourceslice.go +++ b/applyconfigurations/resource/v1/resourceslice.go @@ -16,23 +16,23 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" internal "k8s.io/client-go/applyconfigurations/internal" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ResourceSliceApplyConfiguration represents a declarative configuration of the ResourceSlice type for use // with apply. type ResourceSliceApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - Spec *ResourceSliceSpecApplyConfiguration `json:"spec,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ResourceSliceSpecApplyConfiguration `json:"spec,omitempty"` } // ResourceSlice constructs a declarative configuration of the ResourceSlice type for use with @@ -41,7 +41,7 @@ func ResourceSlice(name string) *ResourceSliceApplyConfiguration { b := &ResourceSliceApplyConfiguration{} b.WithName(name) b.WithKind("ResourceSlice") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b } @@ -56,27 +56,27 @@ func ResourceSlice(name string) *ResourceSliceApplyConfiguration { // Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // applied if another fieldManager has updated or force applied any of the previously applied fields. // Experimental! -func ExtractResourceSlice(resourceSlice *resourcev1beta2.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { +func ExtractResourceSlice(resourceSlice *resourcev1.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { return extractResourceSlice(resourceSlice, fieldManager, "") } // ExtractResourceSliceStatus is the same as ExtractResourceSlice except // that it extracts the status subresource applied configuration. // Experimental! -func ExtractResourceSliceStatus(resourceSlice *resourcev1beta2.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { +func ExtractResourceSliceStatus(resourceSlice *resourcev1.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { return extractResourceSlice(resourceSlice, fieldManager, "status") } -func extractResourceSlice(resourceSlice *resourcev1beta2.ResourceSlice, fieldManager string, subresource string) (*ResourceSliceApplyConfiguration, error) { +func extractResourceSlice(resourceSlice *resourcev1.ResourceSlice, fieldManager string, subresource string) (*ResourceSliceApplyConfiguration, error) { b := &ResourceSliceApplyConfiguration{} - err := managedfields.ExtractInto(resourceSlice, internal.Parser().Type("io.k8s.api.resource.v1beta2.ResourceSlice"), fieldManager, b, subresource) + err := managedfields.ExtractInto(resourceSlice, internal.Parser().Type("io.k8s.api.resource.v1.ResourceSlice"), fieldManager, b, subresource) if err != nil { return nil, err } b.WithName(resourceSlice.Name) b.WithKind("ResourceSlice") - b.WithAPIVersion("resource.k8s.io/v1beta2") + b.WithAPIVersion("resource.k8s.io/v1") return b, nil } func (b ResourceSliceApplyConfiguration) IsApplyConfiguration() {} @@ -154,7 +154,7 @@ func (b *ResourceSliceApplyConfiguration) WithGeneration(value int64) *ResourceS // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ResourceSliceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceSliceApplyConfiguration { +func (b *ResourceSliceApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ResourceSliceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b @@ -163,7 +163,7 @@ func (b *ResourceSliceApplyConfiguration) WithCreationTimestamp(value metav1.Tim // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ResourceSliceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceSliceApplyConfiguration { +func (b *ResourceSliceApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ResourceSliceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b @@ -211,7 +211,7 @@ func (b *ResourceSliceApplyConfiguration) WithAnnotations(entries map[string]str // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ResourceSliceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceSliceApplyConfiguration { +func (b *ResourceSliceApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ResourceSliceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { if values[i] == nil { @@ -235,7 +235,7 @@ func (b *ResourceSliceApplyConfiguration) WithFinalizers(values ...string) *Reso func (b *ResourceSliceApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } diff --git a/applyconfigurations/resource/v1/resourceslicespec.go b/applyconfigurations/resource/v1/resourceslicespec.go index 5a000829f..c629a0923 100644 --- a/applyconfigurations/resource/v1/resourceslicespec.go +++ b/applyconfigurations/resource/v1/resourceslicespec.go @@ -16,23 +16,23 @@ limitations under the License. // Code generated by applyconfiguration-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - v1 "k8s.io/client-go/applyconfigurations/core/v1" + corev1 "k8s.io/client-go/applyconfigurations/core/v1" ) // ResourceSliceSpecApplyConfiguration represents a declarative configuration of the ResourceSliceSpec type for use // with apply. type ResourceSliceSpecApplyConfiguration struct { - Driver *string `json:"driver,omitempty"` - Pool *ResourcePoolApplyConfiguration `json:"pool,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` - AllNodes *bool `json:"allNodes,omitempty"` - Devices []DeviceApplyConfiguration `json:"devices,omitempty"` - PerDeviceNodeSelection *bool `json:"perDeviceNodeSelection,omitempty"` - SharedCounters []CounterSetApplyConfiguration `json:"sharedCounters,omitempty"` + Driver *string `json:"driver,omitempty"` + Pool *ResourcePoolApplyConfiguration `json:"pool,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllNodes *bool `json:"allNodes,omitempty"` + Devices []DeviceApplyConfiguration `json:"devices,omitempty"` + PerDeviceNodeSelection *bool `json:"perDeviceNodeSelection,omitempty"` + SharedCounters []CounterSetApplyConfiguration `json:"sharedCounters,omitempty"` } // ResourceSliceSpecApplyConfiguration constructs a declarative configuration of the ResourceSliceSpec type for use with @@ -68,7 +68,7 @@ func (b *ResourceSliceSpecApplyConfiguration) WithNodeName(value string) *Resour // WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NodeSelector field is set to the value of the last call. -func (b *ResourceSliceSpecApplyConfiguration) WithNodeSelector(value *v1.NodeSelectorApplyConfiguration) *ResourceSliceSpecApplyConfiguration { +func (b *ResourceSliceSpecApplyConfiguration) WithNodeSelector(value *corev1.NodeSelectorApplyConfiguration) *ResourceSliceSpecApplyConfiguration { b.NodeSelector = value return b } diff --git a/applyconfigurations/utils.go b/applyconfigurations/utils.go index 208604512..d2ca116b6 100644 --- a/applyconfigurations/utils.go +++ b/applyconfigurations/utils.go @@ -59,6 +59,7 @@ import ( rbacv1 "k8s.io/api/rbac/v1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1beta1 "k8s.io/api/rbac/v1beta1" + resourcev1 "k8s.io/api/resource/v1" v1alpha3 "k8s.io/api/resource/v1alpha3" resourcev1beta1 "k8s.io/api/resource/v1beta1" resourcev1beta2 "k8s.io/api/resource/v1beta2" @@ -115,6 +116,7 @@ import ( applyconfigurationsrbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" applyconfigurationsrbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" applyconfigurationsrbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" + applyconfigurationsresourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3" applyconfigurationsresourcev1beta1 "k8s.io/client-go/applyconfigurations/resource/v1beta1" applyconfigurationsresourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" @@ -1617,6 +1619,80 @@ func ForKind(kind schema.GroupVersionKind) interface{} { case rbacv1beta1.SchemeGroupVersion.WithKind("Subject"): return &applyconfigurationsrbacv1beta1.SubjectApplyConfiguration{} + // Group=resource.k8s.io, Version=v1 + case resourcev1.SchemeGroupVersion.WithKind("AllocatedDeviceStatus"): + return &applyconfigurationsresourcev1.AllocatedDeviceStatusApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("AllocationResult"): + return &applyconfigurationsresourcev1.AllocationResultApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("CELDeviceSelector"): + return &applyconfigurationsresourcev1.CELDeviceSelectorApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("Counter"): + return &applyconfigurationsresourcev1.CounterApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("CounterSet"): + return &applyconfigurationsresourcev1.CounterSetApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("Device"): + return &applyconfigurationsresourcev1.DeviceApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceAllocationConfiguration"): + return &applyconfigurationsresourcev1.DeviceAllocationConfigurationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceAllocationResult"): + return &applyconfigurationsresourcev1.DeviceAllocationResultApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceAttribute"): + return &applyconfigurationsresourcev1.DeviceAttributeApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceCapacity"): + return &applyconfigurationsresourcev1.DeviceCapacityApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceClaim"): + return &applyconfigurationsresourcev1.DeviceClaimApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceClaimConfiguration"): + return &applyconfigurationsresourcev1.DeviceClaimConfigurationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceClass"): + return &applyconfigurationsresourcev1.DeviceClassApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceClassConfiguration"): + return &applyconfigurationsresourcev1.DeviceClassConfigurationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceClassSpec"): + return &applyconfigurationsresourcev1.DeviceClassSpecApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceConfiguration"): + return &applyconfigurationsresourcev1.DeviceConfigurationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceConstraint"): + return &applyconfigurationsresourcev1.DeviceConstraintApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceCounterConsumption"): + return &applyconfigurationsresourcev1.DeviceCounterConsumptionApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceRequest"): + return &applyconfigurationsresourcev1.DeviceRequestApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceRequestAllocationResult"): + return &applyconfigurationsresourcev1.DeviceRequestAllocationResultApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceSelector"): + return &applyconfigurationsresourcev1.DeviceSelectorApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceSubRequest"): + return &applyconfigurationsresourcev1.DeviceSubRequestApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceTaint"): + return &applyconfigurationsresourcev1.DeviceTaintApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("DeviceToleration"): + return &applyconfigurationsresourcev1.DeviceTolerationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ExactDeviceRequest"): + return &applyconfigurationsresourcev1.ExactDeviceRequestApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("NetworkDeviceData"): + return &applyconfigurationsresourcev1.NetworkDeviceDataApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("OpaqueDeviceConfiguration"): + return &applyconfigurationsresourcev1.OpaqueDeviceConfigurationApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaim"): + return &applyconfigurationsresourcev1.ResourceClaimApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaimConsumerReference"): + return &applyconfigurationsresourcev1.ResourceClaimConsumerReferenceApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaimSpec"): + return &applyconfigurationsresourcev1.ResourceClaimSpecApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaimStatus"): + return &applyconfigurationsresourcev1.ResourceClaimStatusApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaimTemplate"): + return &applyconfigurationsresourcev1.ResourceClaimTemplateApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceClaimTemplateSpec"): + return &applyconfigurationsresourcev1.ResourceClaimTemplateSpecApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourcePool"): + return &applyconfigurationsresourcev1.ResourcePoolApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceSlice"): + return &applyconfigurationsresourcev1.ResourceSliceApplyConfiguration{} + case resourcev1.SchemeGroupVersion.WithKind("ResourceSliceSpec"): + return &applyconfigurationsresourcev1.ResourceSliceSpecApplyConfiguration{} + // Group=resource.k8s.io, Version=v1alpha3 case v1alpha3.SchemeGroupVersion.WithKind("CELDeviceSelector"): return &resourcev1alpha3.CELDeviceSelectorApplyConfiguration{} diff --git a/informers/generic.go b/informers/generic.go index 2e7146a60..c6b08d276 100644 --- a/informers/generic.go +++ b/informers/generic.go @@ -60,6 +60,7 @@ import ( rbacv1 "k8s.io/api/rbac/v1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1beta1 "k8s.io/api/rbac/v1beta1" + resourcev1 "k8s.io/api/resource/v1" v1alpha3 "k8s.io/api/resource/v1alpha3" resourcev1beta1 "k8s.io/api/resource/v1beta1" resourcev1beta2 "k8s.io/api/resource/v1beta2" @@ -384,6 +385,16 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case rbacv1beta1.SchemeGroupVersion.WithResource("rolebindings"): return &genericInformer{resource: resource.GroupResource(), informer: f.Rbac().V1beta1().RoleBindings().Informer()}, nil + // Group=resource.k8s.io, Version=v1 + case resourcev1.SchemeGroupVersion.WithResource("deviceclasses"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1().DeviceClasses().Informer()}, nil + case resourcev1.SchemeGroupVersion.WithResource("resourceclaims"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1().ResourceClaims().Informer()}, nil + case resourcev1.SchemeGroupVersion.WithResource("resourceclaimtemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1().ResourceClaimTemplates().Informer()}, nil + case resourcev1.SchemeGroupVersion.WithResource("resourceslices"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1().ResourceSlices().Informer()}, nil + // Group=resource.k8s.io, Version=v1alpha3 case v1alpha3.SchemeGroupVersion.WithResource("devicetaintrules"): return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().DeviceTaintRules().Informer()}, nil diff --git a/informers/resource/interface.go b/informers/resource/interface.go index f4bcd9270..c06d42c39 100644 --- a/informers/resource/interface.go +++ b/informers/resource/interface.go @@ -20,6 +20,7 @@ package resource import ( internalinterfaces "k8s.io/client-go/informers/internalinterfaces" + v1 "k8s.io/client-go/informers/resource/v1" v1alpha3 "k8s.io/client-go/informers/resource/v1alpha3" v1beta1 "k8s.io/client-go/informers/resource/v1beta1" v1beta2 "k8s.io/client-go/informers/resource/v1beta2" @@ -27,6 +28,8 @@ import ( // Interface provides access to each of this group's versions. type Interface interface { + // V1 provides access to shared informers for resources in V1. + V1() v1.Interface // V1alpha3 provides access to shared informers for resources in V1alpha3. V1alpha3() v1alpha3.Interface // V1beta1 provides access to shared informers for resources in V1beta1. @@ -46,6 +49,11 @@ func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakList return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} } +// V1 returns a new v1.Interface. +func (g *group) V1() v1.Interface { + return v1.New(g.factory, g.namespace, g.tweakListOptions) +} + // V1alpha3 returns a new v1alpha3.Interface. func (g *group) V1alpha3() v1alpha3.Interface { return v1alpha3.New(g.factory, g.namespace, g.tweakListOptions) diff --git a/informers/resource/v1/deviceclass.go b/informers/resource/v1/deviceclass.go index 372d35d8a..2b7e6b54e 100644 --- a/informers/resource/v1/deviceclass.go +++ b/informers/resource/v1/deviceclass.go @@ -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()) } diff --git a/informers/resource/v1/interface.go b/informers/resource/v1/interface.go index 4627d6f3e..4b409fbba 100644 --- a/informers/resource/v1/interface.go +++ b/informers/resource/v1/interface.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by informer-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( internalinterfaces "k8s.io/client-go/informers/internalinterfaces" diff --git a/informers/resource/v1/resourceclaim.go b/informers/resource/v1/resourceclaim.go index e245d998c..19100c4d1 100644 --- a/informers/resource/v1/resourceclaim.go +++ b/informers/resource/v1/resourceclaim.go @@ -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 ( // ResourceClaims. type ResourceClaimInformer interface { Informer() cache.SharedIndexInformer - Lister() resourcev1beta2.ResourceClaimLister + Lister() resourcev1.ResourceClaimLister } type resourceClaimInformer struct { @@ -58,32 +58,32 @@ func NewResourceClaimInformer(client kubernetes.Interface, namespace string, res func NewFilteredResourceClaimInformer(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) { + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ResourceV1beta2().ResourceClaims(namespace).List(context.Background(), options) + return client.ResourceV1().ResourceClaims(namespace).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().ResourceClaims(namespace).Watch(context.Background(), options) + return client.ResourceV1().ResourceClaims(namespace).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().ResourceClaims(namespace).List(ctx, options) + return client.ResourceV1().ResourceClaims(namespace).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().ResourceClaims(namespace).Watch(ctx, options) + return client.ResourceV1().ResourceClaims(namespace).Watch(ctx, options) }, }, - &apiresourcev1beta2.ResourceClaim{}, + &apiresourcev1.ResourceClaim{}, resyncPeriod, indexers, ) @@ -94,9 +94,9 @@ func (f *resourceClaimInformer) defaultInformer(client kubernetes.Interface, res } func (f *resourceClaimInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiresourcev1beta2.ResourceClaim{}, f.defaultInformer) + return f.factory.InformerFor(&apiresourcev1.ResourceClaim{}, f.defaultInformer) } -func (f *resourceClaimInformer) Lister() resourcev1beta2.ResourceClaimLister { - return resourcev1beta2.NewResourceClaimLister(f.Informer().GetIndexer()) +func (f *resourceClaimInformer) Lister() resourcev1.ResourceClaimLister { + return resourcev1.NewResourceClaimLister(f.Informer().GetIndexer()) } diff --git a/informers/resource/v1/resourceclaimtemplate.go b/informers/resource/v1/resourceclaimtemplate.go index 4b973bd96..999785261 100644 --- a/informers/resource/v1/resourceclaimtemplate.go +++ b/informers/resource/v1/resourceclaimtemplate.go @@ -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 ( // ResourceClaimTemplates. type ResourceClaimTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() resourcev1beta2.ResourceClaimTemplateLister + Lister() resourcev1.ResourceClaimTemplateLister } type resourceClaimTemplateInformer struct { @@ -58,32 +58,32 @@ func NewResourceClaimTemplateInformer(client kubernetes.Interface, namespace str func NewFilteredResourceClaimTemplateInformer(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) { + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ResourceV1beta2().ResourceClaimTemplates(namespace).List(context.Background(), options) + return client.ResourceV1().ResourceClaimTemplates(namespace).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().ResourceClaimTemplates(namespace).Watch(context.Background(), options) + return client.ResourceV1().ResourceClaimTemplates(namespace).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().ResourceClaimTemplates(namespace).List(ctx, options) + return client.ResourceV1().ResourceClaimTemplates(namespace).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().ResourceClaimTemplates(namespace).Watch(ctx, options) + return client.ResourceV1().ResourceClaimTemplates(namespace).Watch(ctx, options) }, }, - &apiresourcev1beta2.ResourceClaimTemplate{}, + &apiresourcev1.ResourceClaimTemplate{}, resyncPeriod, indexers, ) @@ -94,9 +94,9 @@ func (f *resourceClaimTemplateInformer) defaultInformer(client kubernetes.Interf } func (f *resourceClaimTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiresourcev1beta2.ResourceClaimTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apiresourcev1.ResourceClaimTemplate{}, f.defaultInformer) } -func (f *resourceClaimTemplateInformer) Lister() resourcev1beta2.ResourceClaimTemplateLister { - return resourcev1beta2.NewResourceClaimTemplateLister(f.Informer().GetIndexer()) +func (f *resourceClaimTemplateInformer) Lister() resourcev1.ResourceClaimTemplateLister { + return resourcev1.NewResourceClaimTemplateLister(f.Informer().GetIndexer()) } diff --git a/informers/resource/v1/resourceslice.go b/informers/resource/v1/resourceslice.go index c0cdc67a8..ec2099c73 100644 --- a/informers/resource/v1/resourceslice.go +++ b/informers/resource/v1/resourceslice.go @@ -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 ( // ResourceSlices. type ResourceSliceInformer interface { Informer() cache.SharedIndexInformer - Lister() resourcev1beta2.ResourceSliceLister + Lister() resourcev1.ResourceSliceLister } type resourceSliceInformer struct { @@ -57,32 +57,32 @@ func NewResourceSliceInformer(client kubernetes.Interface, resyncPeriod time.Dur func NewFilteredResourceSliceInformer(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().ResourceSlices().List(context.Background(), options) + return client.ResourceV1().ResourceSlices().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().ResourceSlices().Watch(context.Background(), options) + return client.ResourceV1().ResourceSlices().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().ResourceSlices().List(ctx, options) + return client.ResourceV1().ResourceSlices().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().ResourceSlices().Watch(ctx, options) + return client.ResourceV1().ResourceSlices().Watch(ctx, options) }, }, - &apiresourcev1beta2.ResourceSlice{}, + &apiresourcev1.ResourceSlice{}, resyncPeriod, indexers, ) @@ -93,9 +93,9 @@ func (f *resourceSliceInformer) defaultInformer(client kubernetes.Interface, res } func (f *resourceSliceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiresourcev1beta2.ResourceSlice{}, f.defaultInformer) + return f.factory.InformerFor(&apiresourcev1.ResourceSlice{}, f.defaultInformer) } -func (f *resourceSliceInformer) Lister() resourcev1beta2.ResourceSliceLister { - return resourcev1beta2.NewResourceSliceLister(f.Informer().GetIndexer()) +func (f *resourceSliceInformer) Lister() resourcev1.ResourceSliceLister { + return resourcev1.NewResourceSliceLister(f.Informer().GetIndexer()) } diff --git a/kubernetes/clientset.go b/kubernetes/clientset.go index aa1a5aedd..9a8b6f2ac 100644 --- a/kubernetes/clientset.go +++ b/kubernetes/clientset.go @@ -67,6 +67,7 @@ import ( rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1" rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" + resourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" resourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" resourcev1beta1 "k8s.io/client-go/kubernetes/typed/resource/v1beta1" resourcev1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" @@ -127,6 +128,7 @@ type Interface interface { RbacV1() rbacv1.RbacV1Interface RbacV1beta1() rbacv1beta1.RbacV1beta1Interface RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface + ResourceV1() resourcev1.ResourceV1Interface ResourceV1beta2() resourcev1beta2.ResourceV1beta2Interface ResourceV1beta1() resourcev1beta1.ResourceV1beta1Interface ResourceV1alpha3() resourcev1alpha3.ResourceV1alpha3Interface @@ -186,6 +188,7 @@ type Clientset struct { rbacV1 *rbacv1.RbacV1Client rbacV1beta1 *rbacv1beta1.RbacV1beta1Client rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client + resourceV1 *resourcev1.ResourceV1Client resourceV1beta2 *resourcev1beta2.ResourceV1beta2Client resourceV1beta1 *resourcev1beta1.ResourceV1beta1Client resourceV1alpha3 *resourcev1alpha3.ResourceV1alpha3Client @@ -418,6 +421,11 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { return c.rbacV1alpha1 } +// ResourceV1 retrieves the ResourceV1Client +func (c *Clientset) ResourceV1() resourcev1.ResourceV1Interface { + return c.resourceV1 +} + // ResourceV1beta2 retrieves the ResourceV1beta2Client func (c *Clientset) ResourceV1beta2() resourcev1beta2.ResourceV1beta2Interface { return c.resourceV1beta2 @@ -688,6 +696,10 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } + cs.resourceV1, err = resourcev1.NewForConfigAndClient(&configShallowCopy, httpClient) + if err != nil { + return nil, err + } cs.resourceV1beta2, err = resourcev1beta2.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err @@ -793,6 +805,7 @@ func New(c rest.Interface) *Clientset { cs.rbacV1 = rbacv1.New(c) cs.rbacV1beta1 = rbacv1beta1.New(c) cs.rbacV1alpha1 = rbacv1alpha1.New(c) + cs.resourceV1 = resourcev1.New(c) cs.resourceV1beta2 = resourcev1beta2.New(c) cs.resourceV1beta1 = resourcev1beta1.New(c) cs.resourceV1alpha3 = resourcev1alpha3.New(c) diff --git a/kubernetes/fake/clientset_generated.go b/kubernetes/fake/clientset_generated.go index e0fd85fc9..973b8a715 100644 --- a/kubernetes/fake/clientset_generated.go +++ b/kubernetes/fake/clientset_generated.go @@ -114,6 +114,8 @@ import ( fakerbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake" rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" fakerbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake" + resourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" + fakeresourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1/fake" resourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" fakeresourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake" resourcev1beta1 "k8s.io/client-go/kubernetes/typed/resource/v1beta1" @@ -451,6 +453,11 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake} } +// ResourceV1 retrieves the ResourceV1Client +func (c *Clientset) ResourceV1() resourcev1.ResourceV1Interface { + return &fakeresourcev1.FakeResourceV1{Fake: &c.Fake} +} + // ResourceV1beta2 retrieves the ResourceV1beta2Client func (c *Clientset) ResourceV1beta2() resourcev1beta2.ResourceV1beta2Interface { return &fakeresourcev1beta2.FakeResourceV1beta2{Fake: &c.Fake} diff --git a/kubernetes/fake/register.go b/kubernetes/fake/register.go index d435554bf..3be5276fb 100644 --- a/kubernetes/fake/register.go +++ b/kubernetes/fake/register.go @@ -63,6 +63,7 @@ import ( rbacv1 "k8s.io/api/rbac/v1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1beta1 "k8s.io/api/rbac/v1beta1" + resourcev1 "k8s.io/api/resource/v1" resourcev1alpha3 "k8s.io/api/resource/v1alpha3" resourcev1beta1 "k8s.io/api/resource/v1beta1" resourcev1beta2 "k8s.io/api/resource/v1beta2" @@ -128,6 +129,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ rbacv1.AddToScheme, rbacv1beta1.AddToScheme, rbacv1alpha1.AddToScheme, + resourcev1.AddToScheme, resourcev1beta2.AddToScheme, resourcev1beta1.AddToScheme, resourcev1alpha3.AddToScheme, diff --git a/kubernetes/scheme/register.go b/kubernetes/scheme/register.go index ba1dc05b5..b96612ee5 100644 --- a/kubernetes/scheme/register.go +++ b/kubernetes/scheme/register.go @@ -63,6 +63,7 @@ import ( rbacv1 "k8s.io/api/rbac/v1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1beta1 "k8s.io/api/rbac/v1beta1" + resourcev1 "k8s.io/api/resource/v1" resourcev1alpha3 "k8s.io/api/resource/v1alpha3" resourcev1beta1 "k8s.io/api/resource/v1beta1" resourcev1beta2 "k8s.io/api/resource/v1beta2" @@ -128,6 +129,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ rbacv1.AddToScheme, rbacv1beta1.AddToScheme, rbacv1alpha1.AddToScheme, + resourcev1.AddToScheme, resourcev1beta2.AddToScheme, resourcev1beta1.AddToScheme, resourcev1alpha3.AddToScheme, diff --git a/kubernetes/typed/resource/v1/deviceclass.go b/kubernetes/typed/resource/v1/deviceclass.go index 0943193f6..776ca19e5 100644 --- a/kubernetes/typed/resource/v1/deviceclass.go +++ b/kubernetes/typed/resource/v1/deviceclass.go @@ -16,16 +16,16 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( context "context" - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - applyconfigurationsresourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + applyconfigurationsresourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" scheme "k8s.io/client-go/kubernetes/scheme" ) @@ -38,34 +38,34 @@ type DeviceClassesGetter interface { // DeviceClassInterface has methods to work with DeviceClass resources. type DeviceClassInterface interface { - Create(ctx context.Context, deviceClass *resourcev1beta2.DeviceClass, opts v1.CreateOptions) (*resourcev1beta2.DeviceClass, error) - Update(ctx context.Context, deviceClass *resourcev1beta2.DeviceClass, opts v1.UpdateOptions) (*resourcev1beta2.DeviceClass, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*resourcev1beta2.DeviceClass, error) - List(ctx context.Context, opts v1.ListOptions) (*resourcev1beta2.DeviceClassList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *resourcev1beta2.DeviceClass, err error) - Apply(ctx context.Context, deviceClass *applyconfigurationsresourcev1beta2.DeviceClassApplyConfiguration, opts v1.ApplyOptions) (result *resourcev1beta2.DeviceClass, err error) + Create(ctx context.Context, deviceClass *resourcev1.DeviceClass, opts metav1.CreateOptions) (*resourcev1.DeviceClass, error) + Update(ctx context.Context, deviceClass *resourcev1.DeviceClass, opts metav1.UpdateOptions) (*resourcev1.DeviceClass, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*resourcev1.DeviceClass, error) + List(ctx context.Context, opts metav1.ListOptions) (*resourcev1.DeviceClassList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *resourcev1.DeviceClass, err error) + Apply(ctx context.Context, deviceClass *applyconfigurationsresourcev1.DeviceClassApplyConfiguration, opts metav1.ApplyOptions) (result *resourcev1.DeviceClass, err error) DeviceClassExpansion } // deviceClasses implements DeviceClassInterface type deviceClasses struct { - *gentype.ClientWithListAndApply[*resourcev1beta2.DeviceClass, *resourcev1beta2.DeviceClassList, *applyconfigurationsresourcev1beta2.DeviceClassApplyConfiguration] + *gentype.ClientWithListAndApply[*resourcev1.DeviceClass, *resourcev1.DeviceClassList, *applyconfigurationsresourcev1.DeviceClassApplyConfiguration] } // newDeviceClasses returns a DeviceClasses -func newDeviceClasses(c *ResourceV1beta2Client) *deviceClasses { +func newDeviceClasses(c *ResourceV1Client) *deviceClasses { return &deviceClasses{ - gentype.NewClientWithListAndApply[*resourcev1beta2.DeviceClass, *resourcev1beta2.DeviceClassList, *applyconfigurationsresourcev1beta2.DeviceClassApplyConfiguration]( + gentype.NewClientWithListAndApply[*resourcev1.DeviceClass, *resourcev1.DeviceClassList, *applyconfigurationsresourcev1.DeviceClassApplyConfiguration]( "deviceclasses", c.RESTClient(), scheme.ParameterCodec, "", - func() *resourcev1beta2.DeviceClass { return &resourcev1beta2.DeviceClass{} }, - func() *resourcev1beta2.DeviceClassList { return &resourcev1beta2.DeviceClassList{} }, - gentype.PrefersProtobuf[*resourcev1beta2.DeviceClass](), + func() *resourcev1.DeviceClass { return &resourcev1.DeviceClass{} }, + func() *resourcev1.DeviceClassList { return &resourcev1.DeviceClassList{} }, + gentype.PrefersProtobuf[*resourcev1.DeviceClass](), ), } } diff --git a/kubernetes/typed/resource/v1/doc.go b/kubernetes/typed/resource/v1/doc.go index 56518ef7f..3af5d054f 100644 --- a/kubernetes/typed/resource/v1/doc.go +++ b/kubernetes/typed/resource/v1/doc.go @@ -17,4 +17,4 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. -package v1beta2 +package v1 diff --git a/kubernetes/typed/resource/v1/fake/fake_deviceclass.go b/kubernetes/typed/resource/v1/fake/fake_deviceclass.go index 540f278ca..03b976eee 100644 --- a/kubernetes/typed/resource/v1/fake/fake_deviceclass.go +++ b/kubernetes/typed/resource/v1/fake/fake_deviceclass.go @@ -19,32 +19,30 @@ limitations under the License. package fake import ( - v1beta2 "k8s.io/api/resource/v1beta2" - resourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + v1 "k8s.io/api/resource/v1" + resourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" - typedresourcev1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + typedresourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" ) // fakeDeviceClasses implements DeviceClassInterface type fakeDeviceClasses struct { - *gentype.FakeClientWithListAndApply[*v1beta2.DeviceClass, *v1beta2.DeviceClassList, *resourcev1beta2.DeviceClassApplyConfiguration] - Fake *FakeResourceV1beta2 + *gentype.FakeClientWithListAndApply[*v1.DeviceClass, *v1.DeviceClassList, *resourcev1.DeviceClassApplyConfiguration] + Fake *FakeResourceV1 } -func newFakeDeviceClasses(fake *FakeResourceV1beta2) typedresourcev1beta2.DeviceClassInterface { +func newFakeDeviceClasses(fake *FakeResourceV1) typedresourcev1.DeviceClassInterface { return &fakeDeviceClasses{ - gentype.NewFakeClientWithListAndApply[*v1beta2.DeviceClass, *v1beta2.DeviceClassList, *resourcev1beta2.DeviceClassApplyConfiguration]( + gentype.NewFakeClientWithListAndApply[*v1.DeviceClass, *v1.DeviceClassList, *resourcev1.DeviceClassApplyConfiguration]( fake.Fake, "", - v1beta2.SchemeGroupVersion.WithResource("deviceclasses"), - v1beta2.SchemeGroupVersion.WithKind("DeviceClass"), - func() *v1beta2.DeviceClass { return &v1beta2.DeviceClass{} }, - func() *v1beta2.DeviceClassList { return &v1beta2.DeviceClassList{} }, - func(dst, src *v1beta2.DeviceClassList) { dst.ListMeta = src.ListMeta }, - func(list *v1beta2.DeviceClassList) []*v1beta2.DeviceClass { return gentype.ToPointerSlice(list.Items) }, - func(list *v1beta2.DeviceClassList, items []*v1beta2.DeviceClass) { - list.Items = gentype.FromPointerSlice(items) - }, + v1.SchemeGroupVersion.WithResource("deviceclasses"), + v1.SchemeGroupVersion.WithKind("DeviceClass"), + func() *v1.DeviceClass { return &v1.DeviceClass{} }, + func() *v1.DeviceClassList { return &v1.DeviceClassList{} }, + func(dst, src *v1.DeviceClassList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DeviceClassList) []*v1.DeviceClass { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.DeviceClassList, items []*v1.DeviceClass) { list.Items = gentype.FromPointerSlice(items) }, ), fake, } diff --git a/kubernetes/typed/resource/v1/fake/fake_resource_client.go b/kubernetes/typed/resource/v1/fake/fake_resource_client.go index 10c5c0e33..53a295429 100644 --- a/kubernetes/typed/resource/v1/fake/fake_resource_client.go +++ b/kubernetes/typed/resource/v1/fake/fake_resource_client.go @@ -19,34 +19,34 @@ limitations under the License. package fake import ( - v1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + v1 "k8s.io/client-go/kubernetes/typed/resource/v1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeResourceV1beta2 struct { +type FakeResourceV1 struct { *testing.Fake } -func (c *FakeResourceV1beta2) DeviceClasses() v1beta2.DeviceClassInterface { +func (c *FakeResourceV1) DeviceClasses() v1.DeviceClassInterface { return newFakeDeviceClasses(c) } -func (c *FakeResourceV1beta2) ResourceClaims(namespace string) v1beta2.ResourceClaimInterface { +func (c *FakeResourceV1) ResourceClaims(namespace string) v1.ResourceClaimInterface { return newFakeResourceClaims(c, namespace) } -func (c *FakeResourceV1beta2) ResourceClaimTemplates(namespace string) v1beta2.ResourceClaimTemplateInterface { +func (c *FakeResourceV1) ResourceClaimTemplates(namespace string) v1.ResourceClaimTemplateInterface { return newFakeResourceClaimTemplates(c, namespace) } -func (c *FakeResourceV1beta2) ResourceSlices() v1beta2.ResourceSliceInterface { +func (c *FakeResourceV1) ResourceSlices() v1.ResourceSliceInterface { return newFakeResourceSlices(c) } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeResourceV1beta2) RESTClient() rest.Interface { +func (c *FakeResourceV1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/kubernetes/typed/resource/v1/fake/fake_resourceclaim.go b/kubernetes/typed/resource/v1/fake/fake_resourceclaim.go index f09391762..d897de97a 100644 --- a/kubernetes/typed/resource/v1/fake/fake_resourceclaim.go +++ b/kubernetes/typed/resource/v1/fake/fake_resourceclaim.go @@ -19,32 +19,30 @@ limitations under the License. package fake import ( - v1beta2 "k8s.io/api/resource/v1beta2" - resourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + v1 "k8s.io/api/resource/v1" + resourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" - typedresourcev1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + typedresourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" ) // fakeResourceClaims implements ResourceClaimInterface type fakeResourceClaims struct { - *gentype.FakeClientWithListAndApply[*v1beta2.ResourceClaim, *v1beta2.ResourceClaimList, *resourcev1beta2.ResourceClaimApplyConfiguration] - Fake *FakeResourceV1beta2 + *gentype.FakeClientWithListAndApply[*v1.ResourceClaim, *v1.ResourceClaimList, *resourcev1.ResourceClaimApplyConfiguration] + Fake *FakeResourceV1 } -func newFakeResourceClaims(fake *FakeResourceV1beta2, namespace string) typedresourcev1beta2.ResourceClaimInterface { +func newFakeResourceClaims(fake *FakeResourceV1, namespace string) typedresourcev1.ResourceClaimInterface { return &fakeResourceClaims{ - gentype.NewFakeClientWithListAndApply[*v1beta2.ResourceClaim, *v1beta2.ResourceClaimList, *resourcev1beta2.ResourceClaimApplyConfiguration]( + gentype.NewFakeClientWithListAndApply[*v1.ResourceClaim, *v1.ResourceClaimList, *resourcev1.ResourceClaimApplyConfiguration]( fake.Fake, namespace, - v1beta2.SchemeGroupVersion.WithResource("resourceclaims"), - v1beta2.SchemeGroupVersion.WithKind("ResourceClaim"), - func() *v1beta2.ResourceClaim { return &v1beta2.ResourceClaim{} }, - func() *v1beta2.ResourceClaimList { return &v1beta2.ResourceClaimList{} }, - func(dst, src *v1beta2.ResourceClaimList) { dst.ListMeta = src.ListMeta }, - func(list *v1beta2.ResourceClaimList) []*v1beta2.ResourceClaim { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1beta2.ResourceClaimList, items []*v1beta2.ResourceClaim) { + v1.SchemeGroupVersion.WithResource("resourceclaims"), + v1.SchemeGroupVersion.WithKind("ResourceClaim"), + func() *v1.ResourceClaim { return &v1.ResourceClaim{} }, + func() *v1.ResourceClaimList { return &v1.ResourceClaimList{} }, + func(dst, src *v1.ResourceClaimList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ResourceClaimList) []*v1.ResourceClaim { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ResourceClaimList, items []*v1.ResourceClaim) { list.Items = gentype.FromPointerSlice(items) }, ), diff --git a/kubernetes/typed/resource/v1/fake/fake_resourceclaimtemplate.go b/kubernetes/typed/resource/v1/fake/fake_resourceclaimtemplate.go index 5c4bb111d..0429c99af 100644 --- a/kubernetes/typed/resource/v1/fake/fake_resourceclaimtemplate.go +++ b/kubernetes/typed/resource/v1/fake/fake_resourceclaimtemplate.go @@ -19,32 +19,32 @@ limitations under the License. package fake import ( - v1beta2 "k8s.io/api/resource/v1beta2" - resourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + v1 "k8s.io/api/resource/v1" + resourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" - typedresourcev1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + typedresourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" ) // fakeResourceClaimTemplates implements ResourceClaimTemplateInterface type fakeResourceClaimTemplates struct { - *gentype.FakeClientWithListAndApply[*v1beta2.ResourceClaimTemplate, *v1beta2.ResourceClaimTemplateList, *resourcev1beta2.ResourceClaimTemplateApplyConfiguration] - Fake *FakeResourceV1beta2 + *gentype.FakeClientWithListAndApply[*v1.ResourceClaimTemplate, *v1.ResourceClaimTemplateList, *resourcev1.ResourceClaimTemplateApplyConfiguration] + Fake *FakeResourceV1 } -func newFakeResourceClaimTemplates(fake *FakeResourceV1beta2, namespace string) typedresourcev1beta2.ResourceClaimTemplateInterface { +func newFakeResourceClaimTemplates(fake *FakeResourceV1, namespace string) typedresourcev1.ResourceClaimTemplateInterface { return &fakeResourceClaimTemplates{ - gentype.NewFakeClientWithListAndApply[*v1beta2.ResourceClaimTemplate, *v1beta2.ResourceClaimTemplateList, *resourcev1beta2.ResourceClaimTemplateApplyConfiguration]( + gentype.NewFakeClientWithListAndApply[*v1.ResourceClaimTemplate, *v1.ResourceClaimTemplateList, *resourcev1.ResourceClaimTemplateApplyConfiguration]( fake.Fake, namespace, - v1beta2.SchemeGroupVersion.WithResource("resourceclaimtemplates"), - v1beta2.SchemeGroupVersion.WithKind("ResourceClaimTemplate"), - func() *v1beta2.ResourceClaimTemplate { return &v1beta2.ResourceClaimTemplate{} }, - func() *v1beta2.ResourceClaimTemplateList { return &v1beta2.ResourceClaimTemplateList{} }, - func(dst, src *v1beta2.ResourceClaimTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1beta2.ResourceClaimTemplateList) []*v1beta2.ResourceClaimTemplate { + v1.SchemeGroupVersion.WithResource("resourceclaimtemplates"), + v1.SchemeGroupVersion.WithKind("ResourceClaimTemplate"), + func() *v1.ResourceClaimTemplate { return &v1.ResourceClaimTemplate{} }, + func() *v1.ResourceClaimTemplateList { return &v1.ResourceClaimTemplateList{} }, + func(dst, src *v1.ResourceClaimTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ResourceClaimTemplateList) []*v1.ResourceClaimTemplate { return gentype.ToPointerSlice(list.Items) }, - func(list *v1beta2.ResourceClaimTemplateList, items []*v1beta2.ResourceClaimTemplate) { + func(list *v1.ResourceClaimTemplateList, items []*v1.ResourceClaimTemplate) { list.Items = gentype.FromPointerSlice(items) }, ), diff --git a/kubernetes/typed/resource/v1/fake/fake_resourceslice.go b/kubernetes/typed/resource/v1/fake/fake_resourceslice.go index a53b6f81d..e215531ec 100644 --- a/kubernetes/typed/resource/v1/fake/fake_resourceslice.go +++ b/kubernetes/typed/resource/v1/fake/fake_resourceslice.go @@ -19,32 +19,30 @@ limitations under the License. package fake import ( - v1beta2 "k8s.io/api/resource/v1beta2" - resourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + v1 "k8s.io/api/resource/v1" + resourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" - typedresourcev1beta2 "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + typedresourcev1 "k8s.io/client-go/kubernetes/typed/resource/v1" ) // fakeResourceSlices implements ResourceSliceInterface type fakeResourceSlices struct { - *gentype.FakeClientWithListAndApply[*v1beta2.ResourceSlice, *v1beta2.ResourceSliceList, *resourcev1beta2.ResourceSliceApplyConfiguration] - Fake *FakeResourceV1beta2 + *gentype.FakeClientWithListAndApply[*v1.ResourceSlice, *v1.ResourceSliceList, *resourcev1.ResourceSliceApplyConfiguration] + Fake *FakeResourceV1 } -func newFakeResourceSlices(fake *FakeResourceV1beta2) typedresourcev1beta2.ResourceSliceInterface { +func newFakeResourceSlices(fake *FakeResourceV1) typedresourcev1.ResourceSliceInterface { return &fakeResourceSlices{ - gentype.NewFakeClientWithListAndApply[*v1beta2.ResourceSlice, *v1beta2.ResourceSliceList, *resourcev1beta2.ResourceSliceApplyConfiguration]( + gentype.NewFakeClientWithListAndApply[*v1.ResourceSlice, *v1.ResourceSliceList, *resourcev1.ResourceSliceApplyConfiguration]( fake.Fake, "", - v1beta2.SchemeGroupVersion.WithResource("resourceslices"), - v1beta2.SchemeGroupVersion.WithKind("ResourceSlice"), - func() *v1beta2.ResourceSlice { return &v1beta2.ResourceSlice{} }, - func() *v1beta2.ResourceSliceList { return &v1beta2.ResourceSliceList{} }, - func(dst, src *v1beta2.ResourceSliceList) { dst.ListMeta = src.ListMeta }, - func(list *v1beta2.ResourceSliceList) []*v1beta2.ResourceSlice { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1beta2.ResourceSliceList, items []*v1beta2.ResourceSlice) { + v1.SchemeGroupVersion.WithResource("resourceslices"), + v1.SchemeGroupVersion.WithKind("ResourceSlice"), + func() *v1.ResourceSlice { return &v1.ResourceSlice{} }, + func() *v1.ResourceSliceList { return &v1.ResourceSliceList{} }, + func(dst, src *v1.ResourceSliceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ResourceSliceList) []*v1.ResourceSlice { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ResourceSliceList, items []*v1.ResourceSlice) { list.Items = gentype.FromPointerSlice(items) }, ), diff --git a/kubernetes/typed/resource/v1/generated_expansion.go b/kubernetes/typed/resource/v1/generated_expansion.go index 230ab8ccd..ea3096858 100644 --- a/kubernetes/typed/resource/v1/generated_expansion.go +++ b/kubernetes/typed/resource/v1/generated_expansion.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 type DeviceClassExpansion interface{} diff --git a/kubernetes/typed/resource/v1/resource_client.go b/kubernetes/typed/resource/v1/resource_client.go index aadde5be9..e610012dd 100644 --- a/kubernetes/typed/resource/v1/resource_client.go +++ b/kubernetes/typed/resource/v1/resource_client.go @@ -16,17 +16,17 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( http "net/http" - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" scheme "k8s.io/client-go/kubernetes/scheme" rest "k8s.io/client-go/rest" ) -type ResourceV1beta2Interface interface { +type ResourceV1Interface interface { RESTClient() rest.Interface DeviceClassesGetter ResourceClaimsGetter @@ -34,31 +34,31 @@ type ResourceV1beta2Interface interface { ResourceSlicesGetter } -// ResourceV1beta2Client is used to interact with features provided by the resource.k8s.io group. -type ResourceV1beta2Client struct { +// ResourceV1Client is used to interact with features provided by the resource.k8s.io group. +type ResourceV1Client struct { restClient rest.Interface } -func (c *ResourceV1beta2Client) DeviceClasses() DeviceClassInterface { +func (c *ResourceV1Client) DeviceClasses() DeviceClassInterface { return newDeviceClasses(c) } -func (c *ResourceV1beta2Client) ResourceClaims(namespace string) ResourceClaimInterface { +func (c *ResourceV1Client) ResourceClaims(namespace string) ResourceClaimInterface { return newResourceClaims(c, namespace) } -func (c *ResourceV1beta2Client) ResourceClaimTemplates(namespace string) ResourceClaimTemplateInterface { +func (c *ResourceV1Client) ResourceClaimTemplates(namespace string) ResourceClaimTemplateInterface { return newResourceClaimTemplates(c, namespace) } -func (c *ResourceV1beta2Client) ResourceSlices() ResourceSliceInterface { +func (c *ResourceV1Client) ResourceSlices() ResourceSliceInterface { return newResourceSlices(c) } -// NewForConfig creates a new ResourceV1beta2Client for the given config. +// NewForConfig creates a new ResourceV1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*ResourceV1beta2Client, error) { +func NewForConfig(c *rest.Config) (*ResourceV1Client, error) { config := *c setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) @@ -68,21 +68,21 @@ func NewForConfig(c *rest.Config) (*ResourceV1beta2Client, error) { return NewForConfigAndClient(&config, httpClient) } -// NewForConfigAndClient creates a new ResourceV1beta2Client for the given config and http client. +// NewForConfigAndClient creates a new ResourceV1Client for the given config and http client. // Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ResourceV1beta2Client, error) { +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ResourceV1Client, error) { config := *c setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err } - return &ResourceV1beta2Client{client}, nil + return &ResourceV1Client{client}, nil } -// NewForConfigOrDie creates a new ResourceV1beta2Client for the given config and +// NewForConfigOrDie creates a new ResourceV1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *ResourceV1beta2Client { +func NewForConfigOrDie(c *rest.Config) *ResourceV1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -90,13 +90,13 @@ func NewForConfigOrDie(c *rest.Config) *ResourceV1beta2Client { return client } -// New creates a new ResourceV1beta2Client for the given RESTClient. -func New(c rest.Interface) *ResourceV1beta2Client { - return &ResourceV1beta2Client{c} +// New creates a new ResourceV1Client for the given RESTClient. +func New(c rest.Interface) *ResourceV1Client { + return &ResourceV1Client{c} } func setConfigDefaults(config *rest.Config) { - gv := resourcev1beta2.SchemeGroupVersion + gv := resourcev1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() @@ -108,7 +108,7 @@ func setConfigDefaults(config *rest.Config) { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *ResourceV1beta2Client) RESTClient() rest.Interface { +func (c *ResourceV1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/kubernetes/typed/resource/v1/resourceclaim.go b/kubernetes/typed/resource/v1/resourceclaim.go index 47efefa9c..3f8382dde 100644 --- a/kubernetes/typed/resource/v1/resourceclaim.go +++ b/kubernetes/typed/resource/v1/resourceclaim.go @@ -16,16 +16,16 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( context "context" - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - applyconfigurationsresourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + applyconfigurationsresourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" scheme "k8s.io/client-go/kubernetes/scheme" ) @@ -38,38 +38,38 @@ type ResourceClaimsGetter interface { // ResourceClaimInterface has methods to work with ResourceClaim resources. type ResourceClaimInterface interface { - Create(ctx context.Context, resourceClaim *resourcev1beta2.ResourceClaim, opts v1.CreateOptions) (*resourcev1beta2.ResourceClaim, error) - Update(ctx context.Context, resourceClaim *resourcev1beta2.ResourceClaim, opts v1.UpdateOptions) (*resourcev1beta2.ResourceClaim, error) + Create(ctx context.Context, resourceClaim *resourcev1.ResourceClaim, opts metav1.CreateOptions) (*resourcev1.ResourceClaim, error) + Update(ctx context.Context, resourceClaim *resourcev1.ResourceClaim, opts metav1.UpdateOptions) (*resourcev1.ResourceClaim, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, resourceClaim *resourcev1beta2.ResourceClaim, opts v1.UpdateOptions) (*resourcev1beta2.ResourceClaim, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*resourcev1beta2.ResourceClaim, error) - List(ctx context.Context, opts v1.ListOptions) (*resourcev1beta2.ResourceClaimList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *resourcev1beta2.ResourceClaim, err error) - Apply(ctx context.Context, resourceClaim *applyconfigurationsresourcev1beta2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *resourcev1beta2.ResourceClaim, err error) + UpdateStatus(ctx context.Context, resourceClaim *resourcev1.ResourceClaim, opts metav1.UpdateOptions) (*resourcev1.ResourceClaim, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*resourcev1.ResourceClaim, error) + List(ctx context.Context, opts metav1.ListOptions) (*resourcev1.ResourceClaimList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *resourcev1.ResourceClaim, err error) + Apply(ctx context.Context, resourceClaim *applyconfigurationsresourcev1.ResourceClaimApplyConfiguration, opts metav1.ApplyOptions) (result *resourcev1.ResourceClaim, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, resourceClaim *applyconfigurationsresourcev1beta2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *resourcev1beta2.ResourceClaim, err error) + ApplyStatus(ctx context.Context, resourceClaim *applyconfigurationsresourcev1.ResourceClaimApplyConfiguration, opts metav1.ApplyOptions) (result *resourcev1.ResourceClaim, err error) ResourceClaimExpansion } // resourceClaims implements ResourceClaimInterface type resourceClaims struct { - *gentype.ClientWithListAndApply[*resourcev1beta2.ResourceClaim, *resourcev1beta2.ResourceClaimList, *applyconfigurationsresourcev1beta2.ResourceClaimApplyConfiguration] + *gentype.ClientWithListAndApply[*resourcev1.ResourceClaim, *resourcev1.ResourceClaimList, *applyconfigurationsresourcev1.ResourceClaimApplyConfiguration] } // newResourceClaims returns a ResourceClaims -func newResourceClaims(c *ResourceV1beta2Client, namespace string) *resourceClaims { +func newResourceClaims(c *ResourceV1Client, namespace string) *resourceClaims { return &resourceClaims{ - gentype.NewClientWithListAndApply[*resourcev1beta2.ResourceClaim, *resourcev1beta2.ResourceClaimList, *applyconfigurationsresourcev1beta2.ResourceClaimApplyConfiguration]( + gentype.NewClientWithListAndApply[*resourcev1.ResourceClaim, *resourcev1.ResourceClaimList, *applyconfigurationsresourcev1.ResourceClaimApplyConfiguration]( "resourceclaims", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *resourcev1beta2.ResourceClaim { return &resourcev1beta2.ResourceClaim{} }, - func() *resourcev1beta2.ResourceClaimList { return &resourcev1beta2.ResourceClaimList{} }, - gentype.PrefersProtobuf[*resourcev1beta2.ResourceClaim](), + func() *resourcev1.ResourceClaim { return &resourcev1.ResourceClaim{} }, + func() *resourcev1.ResourceClaimList { return &resourcev1.ResourceClaimList{} }, + gentype.PrefersProtobuf[*resourcev1.ResourceClaim](), ), } } diff --git a/kubernetes/typed/resource/v1/resourceclaimtemplate.go b/kubernetes/typed/resource/v1/resourceclaimtemplate.go index 2140a4537..3a9849916 100644 --- a/kubernetes/typed/resource/v1/resourceclaimtemplate.go +++ b/kubernetes/typed/resource/v1/resourceclaimtemplate.go @@ -16,16 +16,16 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( context "context" - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - applyconfigurationsresourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + applyconfigurationsresourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" scheme "k8s.io/client-go/kubernetes/scheme" ) @@ -38,34 +38,34 @@ type ResourceClaimTemplatesGetter interface { // ResourceClaimTemplateInterface has methods to work with ResourceClaimTemplate resources. type ResourceClaimTemplateInterface interface { - Create(ctx context.Context, resourceClaimTemplate *resourcev1beta2.ResourceClaimTemplate, opts v1.CreateOptions) (*resourcev1beta2.ResourceClaimTemplate, error) - Update(ctx context.Context, resourceClaimTemplate *resourcev1beta2.ResourceClaimTemplate, opts v1.UpdateOptions) (*resourcev1beta2.ResourceClaimTemplate, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*resourcev1beta2.ResourceClaimTemplate, error) - List(ctx context.Context, opts v1.ListOptions) (*resourcev1beta2.ResourceClaimTemplateList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *resourcev1beta2.ResourceClaimTemplate, err error) - Apply(ctx context.Context, resourceClaimTemplate *applyconfigurationsresourcev1beta2.ResourceClaimTemplateApplyConfiguration, opts v1.ApplyOptions) (result *resourcev1beta2.ResourceClaimTemplate, err error) + Create(ctx context.Context, resourceClaimTemplate *resourcev1.ResourceClaimTemplate, opts metav1.CreateOptions) (*resourcev1.ResourceClaimTemplate, error) + Update(ctx context.Context, resourceClaimTemplate *resourcev1.ResourceClaimTemplate, opts metav1.UpdateOptions) (*resourcev1.ResourceClaimTemplate, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*resourcev1.ResourceClaimTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*resourcev1.ResourceClaimTemplateList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *resourcev1.ResourceClaimTemplate, err error) + Apply(ctx context.Context, resourceClaimTemplate *applyconfigurationsresourcev1.ResourceClaimTemplateApplyConfiguration, opts metav1.ApplyOptions) (result *resourcev1.ResourceClaimTemplate, err error) ResourceClaimTemplateExpansion } // resourceClaimTemplates implements ResourceClaimTemplateInterface type resourceClaimTemplates struct { - *gentype.ClientWithListAndApply[*resourcev1beta2.ResourceClaimTemplate, *resourcev1beta2.ResourceClaimTemplateList, *applyconfigurationsresourcev1beta2.ResourceClaimTemplateApplyConfiguration] + *gentype.ClientWithListAndApply[*resourcev1.ResourceClaimTemplate, *resourcev1.ResourceClaimTemplateList, *applyconfigurationsresourcev1.ResourceClaimTemplateApplyConfiguration] } // newResourceClaimTemplates returns a ResourceClaimTemplates -func newResourceClaimTemplates(c *ResourceV1beta2Client, namespace string) *resourceClaimTemplates { +func newResourceClaimTemplates(c *ResourceV1Client, namespace string) *resourceClaimTemplates { return &resourceClaimTemplates{ - gentype.NewClientWithListAndApply[*resourcev1beta2.ResourceClaimTemplate, *resourcev1beta2.ResourceClaimTemplateList, *applyconfigurationsresourcev1beta2.ResourceClaimTemplateApplyConfiguration]( + gentype.NewClientWithListAndApply[*resourcev1.ResourceClaimTemplate, *resourcev1.ResourceClaimTemplateList, *applyconfigurationsresourcev1.ResourceClaimTemplateApplyConfiguration]( "resourceclaimtemplates", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *resourcev1beta2.ResourceClaimTemplate { return &resourcev1beta2.ResourceClaimTemplate{} }, - func() *resourcev1beta2.ResourceClaimTemplateList { return &resourcev1beta2.ResourceClaimTemplateList{} }, - gentype.PrefersProtobuf[*resourcev1beta2.ResourceClaimTemplate](), + func() *resourcev1.ResourceClaimTemplate { return &resourcev1.ResourceClaimTemplate{} }, + func() *resourcev1.ResourceClaimTemplateList { return &resourcev1.ResourceClaimTemplateList{} }, + gentype.PrefersProtobuf[*resourcev1.ResourceClaimTemplate](), ), } } diff --git a/kubernetes/typed/resource/v1/resourceslice.go b/kubernetes/typed/resource/v1/resourceslice.go index c4507803f..66be33e44 100644 --- a/kubernetes/typed/resource/v1/resourceslice.go +++ b/kubernetes/typed/resource/v1/resourceslice.go @@ -16,16 +16,16 @@ limitations under the License. // Code generated by client-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( context "context" - resourcev1beta2 "k8s.io/api/resource/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + resourcev1 "k8s.io/api/resource/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - applyconfigurationsresourcev1beta2 "k8s.io/client-go/applyconfigurations/resource/v1beta2" + applyconfigurationsresourcev1 "k8s.io/client-go/applyconfigurations/resource/v1" gentype "k8s.io/client-go/gentype" scheme "k8s.io/client-go/kubernetes/scheme" ) @@ -38,34 +38,34 @@ type ResourceSlicesGetter interface { // ResourceSliceInterface has methods to work with ResourceSlice resources. type ResourceSliceInterface interface { - Create(ctx context.Context, resourceSlice *resourcev1beta2.ResourceSlice, opts v1.CreateOptions) (*resourcev1beta2.ResourceSlice, error) - Update(ctx context.Context, resourceSlice *resourcev1beta2.ResourceSlice, opts v1.UpdateOptions) (*resourcev1beta2.ResourceSlice, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*resourcev1beta2.ResourceSlice, error) - List(ctx context.Context, opts v1.ListOptions) (*resourcev1beta2.ResourceSliceList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *resourcev1beta2.ResourceSlice, err error) - Apply(ctx context.Context, resourceSlice *applyconfigurationsresourcev1beta2.ResourceSliceApplyConfiguration, opts v1.ApplyOptions) (result *resourcev1beta2.ResourceSlice, err error) + Create(ctx context.Context, resourceSlice *resourcev1.ResourceSlice, opts metav1.CreateOptions) (*resourcev1.ResourceSlice, error) + Update(ctx context.Context, resourceSlice *resourcev1.ResourceSlice, opts metav1.UpdateOptions) (*resourcev1.ResourceSlice, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*resourcev1.ResourceSlice, error) + List(ctx context.Context, opts metav1.ListOptions) (*resourcev1.ResourceSliceList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *resourcev1.ResourceSlice, err error) + Apply(ctx context.Context, resourceSlice *applyconfigurationsresourcev1.ResourceSliceApplyConfiguration, opts metav1.ApplyOptions) (result *resourcev1.ResourceSlice, err error) ResourceSliceExpansion } // resourceSlices implements ResourceSliceInterface type resourceSlices struct { - *gentype.ClientWithListAndApply[*resourcev1beta2.ResourceSlice, *resourcev1beta2.ResourceSliceList, *applyconfigurationsresourcev1beta2.ResourceSliceApplyConfiguration] + *gentype.ClientWithListAndApply[*resourcev1.ResourceSlice, *resourcev1.ResourceSliceList, *applyconfigurationsresourcev1.ResourceSliceApplyConfiguration] } // newResourceSlices returns a ResourceSlices -func newResourceSlices(c *ResourceV1beta2Client) *resourceSlices { +func newResourceSlices(c *ResourceV1Client) *resourceSlices { return &resourceSlices{ - gentype.NewClientWithListAndApply[*resourcev1beta2.ResourceSlice, *resourcev1beta2.ResourceSliceList, *applyconfigurationsresourcev1beta2.ResourceSliceApplyConfiguration]( + gentype.NewClientWithListAndApply[*resourcev1.ResourceSlice, *resourcev1.ResourceSliceList, *applyconfigurationsresourcev1.ResourceSliceApplyConfiguration]( "resourceslices", c.RESTClient(), scheme.ParameterCodec, "", - func() *resourcev1beta2.ResourceSlice { return &resourcev1beta2.ResourceSlice{} }, - func() *resourcev1beta2.ResourceSliceList { return &resourcev1beta2.ResourceSliceList{} }, - gentype.PrefersProtobuf[*resourcev1beta2.ResourceSlice](), + func() *resourcev1.ResourceSlice { return &resourcev1.ResourceSlice{} }, + func() *resourcev1.ResourceSliceList { return &resourcev1.ResourceSliceList{} }, + gentype.PrefersProtobuf[*resourcev1.ResourceSlice](), ), } } diff --git a/listers/resource/v1/deviceclass.go b/listers/resource/v1/deviceclass.go index a89e57202..15a9a2f2c 100644 --- a/listers/resource/v1/deviceclass.go +++ b/listers/resource/v1/deviceclass.go @@ -16,10 +16,10 @@ limitations under the License. // Code generated by lister-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" labels "k8s.io/apimachinery/pkg/labels" listers "k8s.io/client-go/listers" cache "k8s.io/client-go/tools/cache" @@ -30,19 +30,19 @@ import ( type DeviceClassLister interface { // List lists all DeviceClasses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.DeviceClass, err error) + List(selector labels.Selector) (ret []*resourcev1.DeviceClass, err error) // Get retrieves the DeviceClass from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*resourcev1beta2.DeviceClass, error) + Get(name string) (*resourcev1.DeviceClass, error) DeviceClassListerExpansion } // deviceClassLister implements the DeviceClassLister interface. type deviceClassLister struct { - listers.ResourceIndexer[*resourcev1beta2.DeviceClass] + listers.ResourceIndexer[*resourcev1.DeviceClass] } // NewDeviceClassLister returns a new DeviceClassLister. func NewDeviceClassLister(indexer cache.Indexer) DeviceClassLister { - return &deviceClassLister{listers.New[*resourcev1beta2.DeviceClass](indexer, resourcev1beta2.Resource("deviceclass"))} + return &deviceClassLister{listers.New[*resourcev1.DeviceClass](indexer, resourcev1.Resource("deviceclass"))} } diff --git a/listers/resource/v1/expansion_generated.go b/listers/resource/v1/expansion_generated.go index 590f26bd7..6e6e22dcd 100644 --- a/listers/resource/v1/expansion_generated.go +++ b/listers/resource/v1/expansion_generated.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by lister-gen. DO NOT EDIT. -package v1beta2 +package v1 // DeviceClassListerExpansion allows custom methods to be added to // DeviceClassLister. diff --git a/listers/resource/v1/resourceclaim.go b/listers/resource/v1/resourceclaim.go index ec6d40663..97397e728 100644 --- a/listers/resource/v1/resourceclaim.go +++ b/listers/resource/v1/resourceclaim.go @@ -16,10 +16,10 @@ limitations under the License. // Code generated by lister-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" labels "k8s.io/apimachinery/pkg/labels" listers "k8s.io/client-go/listers" cache "k8s.io/client-go/tools/cache" @@ -30,7 +30,7 @@ import ( type ResourceClaimLister interface { // List lists all ResourceClaims in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.ResourceClaim, err error) + List(selector labels.Selector) (ret []*resourcev1.ResourceClaim, err error) // ResourceClaims returns an object that can list and get ResourceClaims. ResourceClaims(namespace string) ResourceClaimNamespaceLister ResourceClaimListerExpansion @@ -38,17 +38,17 @@ type ResourceClaimLister interface { // resourceClaimLister implements the ResourceClaimLister interface. type resourceClaimLister struct { - listers.ResourceIndexer[*resourcev1beta2.ResourceClaim] + listers.ResourceIndexer[*resourcev1.ResourceClaim] } // NewResourceClaimLister returns a new ResourceClaimLister. func NewResourceClaimLister(indexer cache.Indexer) ResourceClaimLister { - return &resourceClaimLister{listers.New[*resourcev1beta2.ResourceClaim](indexer, resourcev1beta2.Resource("resourceclaim"))} + return &resourceClaimLister{listers.New[*resourcev1.ResourceClaim](indexer, resourcev1.Resource("resourceclaim"))} } // ResourceClaims returns an object that can list and get ResourceClaims. func (s *resourceClaimLister) ResourceClaims(namespace string) ResourceClaimNamespaceLister { - return resourceClaimNamespaceLister{listers.NewNamespaced[*resourcev1beta2.ResourceClaim](s.ResourceIndexer, namespace)} + return resourceClaimNamespaceLister{listers.NewNamespaced[*resourcev1.ResourceClaim](s.ResourceIndexer, namespace)} } // ResourceClaimNamespaceLister helps list and get ResourceClaims. @@ -56,15 +56,15 @@ func (s *resourceClaimLister) ResourceClaims(namespace string) ResourceClaimName type ResourceClaimNamespaceLister interface { // List lists all ResourceClaims in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.ResourceClaim, err error) + List(selector labels.Selector) (ret []*resourcev1.ResourceClaim, err error) // Get retrieves the ResourceClaim from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*resourcev1beta2.ResourceClaim, error) + Get(name string) (*resourcev1.ResourceClaim, error) ResourceClaimNamespaceListerExpansion } // resourceClaimNamespaceLister implements the ResourceClaimNamespaceLister // interface. type resourceClaimNamespaceLister struct { - listers.ResourceIndexer[*resourcev1beta2.ResourceClaim] + listers.ResourceIndexer[*resourcev1.ResourceClaim] } diff --git a/listers/resource/v1/resourceclaimtemplate.go b/listers/resource/v1/resourceclaimtemplate.go index 8ff19b88e..1e0e22b77 100644 --- a/listers/resource/v1/resourceclaimtemplate.go +++ b/listers/resource/v1/resourceclaimtemplate.go @@ -16,10 +16,10 @@ limitations under the License. // Code generated by lister-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" labels "k8s.io/apimachinery/pkg/labels" listers "k8s.io/client-go/listers" cache "k8s.io/client-go/tools/cache" @@ -30,7 +30,7 @@ import ( type ResourceClaimTemplateLister interface { // List lists all ResourceClaimTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.ResourceClaimTemplate, err error) + List(selector labels.Selector) (ret []*resourcev1.ResourceClaimTemplate, err error) // ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates. ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister ResourceClaimTemplateListerExpansion @@ -38,17 +38,17 @@ type ResourceClaimTemplateLister interface { // resourceClaimTemplateLister implements the ResourceClaimTemplateLister interface. type resourceClaimTemplateLister struct { - listers.ResourceIndexer[*resourcev1beta2.ResourceClaimTemplate] + listers.ResourceIndexer[*resourcev1.ResourceClaimTemplate] } // NewResourceClaimTemplateLister returns a new ResourceClaimTemplateLister. func NewResourceClaimTemplateLister(indexer cache.Indexer) ResourceClaimTemplateLister { - return &resourceClaimTemplateLister{listers.New[*resourcev1beta2.ResourceClaimTemplate](indexer, resourcev1beta2.Resource("resourceclaimtemplate"))} + return &resourceClaimTemplateLister{listers.New[*resourcev1.ResourceClaimTemplate](indexer, resourcev1.Resource("resourceclaimtemplate"))} } // ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates. func (s *resourceClaimTemplateLister) ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister { - return resourceClaimTemplateNamespaceLister{listers.NewNamespaced[*resourcev1beta2.ResourceClaimTemplate](s.ResourceIndexer, namespace)} + return resourceClaimTemplateNamespaceLister{listers.NewNamespaced[*resourcev1.ResourceClaimTemplate](s.ResourceIndexer, namespace)} } // ResourceClaimTemplateNamespaceLister helps list and get ResourceClaimTemplates. @@ -56,15 +56,15 @@ func (s *resourceClaimTemplateLister) ResourceClaimTemplates(namespace string) R type ResourceClaimTemplateNamespaceLister interface { // List lists all ResourceClaimTemplates in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.ResourceClaimTemplate, err error) + List(selector labels.Selector) (ret []*resourcev1.ResourceClaimTemplate, err error) // Get retrieves the ResourceClaimTemplate from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*resourcev1beta2.ResourceClaimTemplate, error) + Get(name string) (*resourcev1.ResourceClaimTemplate, error) ResourceClaimTemplateNamespaceListerExpansion } // resourceClaimTemplateNamespaceLister implements the ResourceClaimTemplateNamespaceLister // interface. type resourceClaimTemplateNamespaceLister struct { - listers.ResourceIndexer[*resourcev1beta2.ResourceClaimTemplate] + listers.ResourceIndexer[*resourcev1.ResourceClaimTemplate] } diff --git a/listers/resource/v1/resourceslice.go b/listers/resource/v1/resourceslice.go index f1a817407..601e748f1 100644 --- a/listers/resource/v1/resourceslice.go +++ b/listers/resource/v1/resourceslice.go @@ -16,10 +16,10 @@ limitations under the License. // Code generated by lister-gen. DO NOT EDIT. -package v1beta2 +package v1 import ( - resourcev1beta2 "k8s.io/api/resource/v1beta2" + resourcev1 "k8s.io/api/resource/v1" labels "k8s.io/apimachinery/pkg/labels" listers "k8s.io/client-go/listers" cache "k8s.io/client-go/tools/cache" @@ -30,19 +30,19 @@ import ( type ResourceSliceLister interface { // List lists all ResourceSlices in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*resourcev1beta2.ResourceSlice, err error) + List(selector labels.Selector) (ret []*resourcev1.ResourceSlice, err error) // Get retrieves the ResourceSlice from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*resourcev1beta2.ResourceSlice, error) + Get(name string) (*resourcev1.ResourceSlice, error) ResourceSliceListerExpansion } // resourceSliceLister implements the ResourceSliceLister interface. type resourceSliceLister struct { - listers.ResourceIndexer[*resourcev1beta2.ResourceSlice] + listers.ResourceIndexer[*resourcev1.ResourceSlice] } // NewResourceSliceLister returns a new ResourceSliceLister. func NewResourceSliceLister(indexer cache.Indexer) ResourceSliceLister { - return &resourceSliceLister{listers.New[*resourcev1beta2.ResourceSlice](indexer, resourcev1beta2.Resource("resourceslice"))} + return &resourceSliceLister{listers.New[*resourcev1.ResourceSlice](indexer, resourcev1.Resource("resourceslice"))} }