DRA: bump API v1alpha2 -> v1alpha3

This is in preparation for revamping the resource.k8s.io completely. Because
there will be no support for transitioning from v1alpha2 to v1alpha3, the
roundtrip test data for that API in 1.29 and 1.30 gets removed.

Repeating the version in the import name of the API packages is not really
required. It was done for a while to support simpler grepping for usage of
alpha APIs, but there are better ways for that now. So during this transition,
"resourceapi" gets used instead of "resourcev1alpha3" and the version gets
dropped from informer and lister imports. The advantage is that the next bump
to v1beta1 will affect fewer source code lines.

Only source code where the version really matters (like API registration)
retains the versioned import.

Kubernetes-commit: b51d68bb87ba4fa47eb760f8a5e0baf9cf7f5b53
This commit is contained in:
Patrick Ohly 2024-06-14 12:40:48 +02:00 committed by Kubernetes Publisher
parent 82af755eff
commit 91ff2f6ea5
80 changed files with 726 additions and 726 deletions

View File

@ -12154,7 +12154,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: namespace - name: namespace
type: type:
scalar: string scalar: string
- name: io.k8s.api.resource.v1alpha2.AllocationResult - name: io.k8s.api.resource.v1alpha3.AllocationResult
map: map:
fields: fields:
- name: availableOnNodes - name: availableOnNodes
@ -12164,21 +12164,21 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.ResourceHandle namedType: io.k8s.api.resource.v1alpha3.ResourceHandle
elementRelationship: atomic elementRelationship: atomic
- name: shareable - name: shareable
type: type:
scalar: boolean scalar: boolean
- name: io.k8s.api.resource.v1alpha2.DriverAllocationResult - name: io.k8s.api.resource.v1alpha3.DriverAllocationResult
map: map:
fields: fields:
- name: namedResources - name: namedResources
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesAllocationResult namedType: io.k8s.api.resource.v1alpha3.NamedResourcesAllocationResult
- name: vendorRequestParameters - name: vendorRequestParameters
type: type:
namedType: __untyped_atomic_ namedType: __untyped_atomic_
- name: io.k8s.api.resource.v1alpha2.DriverRequests - name: io.k8s.api.resource.v1alpha3.DriverRequests
map: map:
fields: fields:
- name: driverName - name: driverName
@ -12188,19 +12188,19 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.ResourceRequest namedType: io.k8s.api.resource.v1alpha3.ResourceRequest
elementRelationship: atomic elementRelationship: atomic
- name: vendorParameters - name: vendorParameters
type: type:
namedType: __untyped_atomic_ namedType: __untyped_atomic_
- name: io.k8s.api.resource.v1alpha2.NamedResourcesAllocationResult - name: io.k8s.api.resource.v1alpha3.NamedResourcesAllocationResult
map: map:
fields: fields:
- name: name - name: name
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.NamedResourcesAttribute - name: io.k8s.api.resource.v1alpha3.NamedResourcesAttribute
map: map:
fields: fields:
- name: bool - name: bool
@ -12211,7 +12211,7 @@ var schemaYAML = typed.YAMLObject(`types:
scalar: numeric scalar: numeric
- name: intSlice - name: intSlice
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesIntSlice namedType: io.k8s.api.resource.v1alpha3.NamedResourcesIntSlice
- name: name - name: name
type: type:
scalar: string scalar: string
@ -12224,31 +12224,31 @@ var schemaYAML = typed.YAMLObject(`types:
scalar: string scalar: string
- name: stringSlice - name: stringSlice
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesStringSlice namedType: io.k8s.api.resource.v1alpha3.NamedResourcesStringSlice
- name: version - name: version
type: type:
scalar: string scalar: string
- name: io.k8s.api.resource.v1alpha2.NamedResourcesFilter - name: io.k8s.api.resource.v1alpha3.NamedResourcesFilter
map: map:
fields: fields:
- name: selector - name: selector
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.NamedResourcesInstance - name: io.k8s.api.resource.v1alpha3.NamedResourcesInstance
map: map:
fields: fields:
- name: attributes - name: attributes
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesAttribute namedType: io.k8s.api.resource.v1alpha3.NamedResourcesAttribute
elementRelationship: atomic elementRelationship: atomic
- name: name - name: name
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.NamedResourcesIntSlice - name: io.k8s.api.resource.v1alpha3.NamedResourcesIntSlice
map: map:
fields: fields:
- name: ints - name: ints
@ -12257,23 +12257,23 @@ var schemaYAML = typed.YAMLObject(`types:
elementType: elementType:
scalar: numeric scalar: numeric
elementRelationship: atomic elementRelationship: atomic
- name: io.k8s.api.resource.v1alpha2.NamedResourcesRequest - name: io.k8s.api.resource.v1alpha3.NamedResourcesRequest
map: map:
fields: fields:
- name: selector - name: selector
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.NamedResourcesResources - name: io.k8s.api.resource.v1alpha3.NamedResourcesResources
map: map:
fields: fields:
- name: instances - name: instances
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesInstance namedType: io.k8s.api.resource.v1alpha3.NamedResourcesInstance
elementRelationship: atomic elementRelationship: atomic
- name: io.k8s.api.resource.v1alpha2.NamedResourcesStringSlice - name: io.k8s.api.resource.v1alpha3.NamedResourcesStringSlice
map: map:
fields: fields:
- name: strings - name: strings
@ -12282,7 +12282,7 @@ var schemaYAML = typed.YAMLObject(`types:
elementType: elementType:
scalar: string scalar: string
elementRelationship: atomic elementRelationship: atomic
- name: io.k8s.api.resource.v1alpha2.PodSchedulingContext - name: io.k8s.api.resource.v1alpha3.PodSchedulingContext
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12297,13 +12297,13 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: spec - name: spec
type: type:
namedType: io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec namedType: io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec
default: {} default: {}
- name: status - name: status
type: type:
namedType: io.k8s.api.resource.v1alpha2.PodSchedulingContextStatus namedType: io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus
default: {} default: {}
- name: io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec - name: io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec
map: map:
fields: fields:
- name: potentialNodes - name: potentialNodes
@ -12315,18 +12315,18 @@ var schemaYAML = typed.YAMLObject(`types:
- name: selectedNode - name: selectedNode
type: type:
scalar: string scalar: string
- name: io.k8s.api.resource.v1alpha2.PodSchedulingContextStatus - name: io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus
map: map:
fields: fields:
- name: resourceClaims - name: resourceClaims
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimSchedulingStatus namedType: io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus
elementRelationship: associative elementRelationship: associative
keys: keys:
- name - name
- name: io.k8s.api.resource.v1alpha2.ResourceClaim - name: io.k8s.api.resource.v1alpha3.ResourceClaim
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12341,13 +12341,13 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: spec - name: spec
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimSpec namedType: io.k8s.api.resource.v1alpha3.ResourceClaimSpec
default: {} default: {}
- name: status - name: status
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimStatus namedType: io.k8s.api.resource.v1alpha3.ResourceClaimStatus
default: {} default: {}
- name: io.k8s.api.resource.v1alpha2.ResourceClaimConsumerReference - name: io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference
map: map:
fields: fields:
- name: apiGroup - name: apiGroup
@ -12365,7 +12365,7 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.ResourceClaimParameters - name: io.k8s.api.resource.v1alpha3.ResourceClaimParameters
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12375,11 +12375,11 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.DriverRequests namedType: io.k8s.api.resource.v1alpha3.DriverRequests
elementRelationship: atomic elementRelationship: atomic
- name: generatedFrom - name: generatedFrom
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference namedType: io.k8s.api.resource.v1alpha3.ResourceClaimParametersReference
- name: kind - name: kind
type: type:
scalar: string scalar: string
@ -12390,7 +12390,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: shareable - name: shareable
type: type:
scalar: boolean scalar: boolean
- name: io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference - name: io.k8s.api.resource.v1alpha3.ResourceClaimParametersReference
map: map:
fields: fields:
- name: apiGroup - name: apiGroup
@ -12404,7 +12404,7 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.ResourceClaimSchedulingStatus - name: io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus
map: map:
fields: fields:
- name: name - name: name
@ -12416,7 +12416,7 @@ var schemaYAML = typed.YAMLObject(`types:
elementType: elementType:
scalar: string scalar: string
elementRelationship: atomic elementRelationship: atomic
- name: io.k8s.api.resource.v1alpha2.ResourceClaimSpec - name: io.k8s.api.resource.v1alpha3.ResourceClaimSpec
map: map:
fields: fields:
- name: allocationMode - name: allocationMode
@ -12424,17 +12424,17 @@ var schemaYAML = typed.YAMLObject(`types:
scalar: string scalar: string
- name: parametersRef - name: parametersRef
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference namedType: io.k8s.api.resource.v1alpha3.ResourceClaimParametersReference
- name: resourceClassName - name: resourceClassName
type: type:
scalar: string scalar: string
default: "" default: ""
- name: io.k8s.api.resource.v1alpha2.ResourceClaimStatus - name: io.k8s.api.resource.v1alpha3.ResourceClaimStatus
map: map:
fields: fields:
- name: allocation - name: allocation
type: type:
namedType: io.k8s.api.resource.v1alpha2.AllocationResult namedType: io.k8s.api.resource.v1alpha3.AllocationResult
- name: deallocationRequested - name: deallocationRequested
type: type:
scalar: boolean scalar: boolean
@ -12445,11 +12445,11 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimConsumerReference namedType: io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference
elementRelationship: associative elementRelationship: associative
keys: keys:
- uid - uid
- name: io.k8s.api.resource.v1alpha2.ResourceClaimTemplate - name: io.k8s.api.resource.v1alpha3.ResourceClaimTemplate
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12464,9 +12464,9 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: spec - name: spec
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec namedType: io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec
default: {} default: {}
- name: io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec - name: io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec
map: map:
fields: fields:
- name: metadata - name: metadata
@ -12475,9 +12475,9 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: spec - name: spec
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClaimSpec namedType: io.k8s.api.resource.v1alpha3.ResourceClaimSpec
default: {} default: {}
- name: io.k8s.api.resource.v1alpha2.ResourceClass - name: io.k8s.api.resource.v1alpha3.ResourceClass
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12496,14 +12496,14 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: parametersRef - name: parametersRef
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClassParametersReference namedType: io.k8s.api.resource.v1alpha3.ResourceClassParametersReference
- name: structuredParameters - name: structuredParameters
type: type:
scalar: boolean scalar: boolean
- name: suitableNodes - name: suitableNodes
type: type:
namedType: io.k8s.api.core.v1.NodeSelector namedType: io.k8s.api.core.v1.NodeSelector
- name: io.k8s.api.resource.v1alpha2.ResourceClassParameters - name: io.k8s.api.resource.v1alpha3.ResourceClassParameters
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12513,11 +12513,11 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.ResourceFilter namedType: io.k8s.api.resource.v1alpha3.ResourceFilter
elementRelationship: atomic elementRelationship: atomic
- name: generatedFrom - name: generatedFrom
type: type:
namedType: io.k8s.api.resource.v1alpha2.ResourceClassParametersReference namedType: io.k8s.api.resource.v1alpha3.ResourceClassParametersReference
- name: kind - name: kind
type: type:
scalar: string scalar: string
@ -12529,9 +12529,9 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.VendorParameters namedType: io.k8s.api.resource.v1alpha3.VendorParameters
elementRelationship: atomic elementRelationship: atomic
- name: io.k8s.api.resource.v1alpha2.ResourceClassParametersReference - name: io.k8s.api.resource.v1alpha3.ResourceClassParametersReference
map: map:
fields: fields:
- name: apiGroup - name: apiGroup
@ -12548,7 +12548,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: namespace - name: namespace
type: type:
scalar: string scalar: string
- name: io.k8s.api.resource.v1alpha2.ResourceFilter - name: io.k8s.api.resource.v1alpha3.ResourceFilter
map: map:
fields: fields:
- name: driverName - name: driverName
@ -12556,8 +12556,8 @@ var schemaYAML = typed.YAMLObject(`types:
scalar: string scalar: string
- name: namedResources - name: namedResources
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesFilter namedType: io.k8s.api.resource.v1alpha3.NamedResourcesFilter
- name: io.k8s.api.resource.v1alpha2.ResourceHandle - name: io.k8s.api.resource.v1alpha3.ResourceHandle
map: map:
fields: fields:
- name: data - name: data
@ -12569,17 +12569,17 @@ var schemaYAML = typed.YAMLObject(`types:
default: "" default: ""
- name: structuredData - name: structuredData
type: type:
namedType: io.k8s.api.resource.v1alpha2.StructuredResourceHandle namedType: io.k8s.api.resource.v1alpha3.StructuredResourceHandle
- name: io.k8s.api.resource.v1alpha2.ResourceRequest - name: io.k8s.api.resource.v1alpha3.ResourceRequest
map: map:
fields: fields:
- name: namedResources - name: namedResources
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesRequest namedType: io.k8s.api.resource.v1alpha3.NamedResourcesRequest
- name: vendorParameters - name: vendorParameters
type: type:
namedType: __untyped_atomic_ namedType: __untyped_atomic_
- name: io.k8s.api.resource.v1alpha2.ResourceSlice - name: io.k8s.api.resource.v1alpha3.ResourceSlice
map: map:
fields: fields:
- name: apiVersion - name: apiVersion
@ -12598,11 +12598,11 @@ var schemaYAML = typed.YAMLObject(`types:
default: {} default: {}
- name: namedResources - name: namedResources
type: type:
namedType: io.k8s.api.resource.v1alpha2.NamedResourcesResources namedType: io.k8s.api.resource.v1alpha3.NamedResourcesResources
- name: nodeName - name: nodeName
type: type:
scalar: string scalar: string
- name: io.k8s.api.resource.v1alpha2.StructuredResourceHandle - name: io.k8s.api.resource.v1alpha3.StructuredResourceHandle
map: map:
fields: fields:
- name: nodeName - name: nodeName
@ -12612,7 +12612,7 @@ var schemaYAML = typed.YAMLObject(`types:
type: type:
list: list:
elementType: elementType:
namedType: io.k8s.api.resource.v1alpha2.DriverAllocationResult namedType: io.k8s.api.resource.v1alpha3.DriverAllocationResult
elementRelationship: atomic elementRelationship: atomic
- name: vendorClaimParameters - name: vendorClaimParameters
type: type:
@ -12620,7 +12620,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: vendorClassParameters - name: vendorClassParameters
type: type:
namedType: __untyped_atomic_ namedType: __untyped_atomic_
- name: io.k8s.api.resource.v1alpha2.VendorParameters - name: io.k8s.api.resource.v1alpha3.VendorParameters
map: map:
fields: fields:
- name: driverName - name: driverName

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1 "k8s.io/client-go/applyconfigurations/core/v1" v1 "k8s.io/client-go/applyconfigurations/core/v1"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// AllocationResultModelApplyConfiguration represents a declarative configuration of the AllocationResultModel type for use // AllocationResultModelApplyConfiguration represents a declarative configuration of the AllocationResultModel type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesAllocationResultApplyConfiguration represents a declarative configuration of the NamedResourcesAllocationResult type for use // NamedResourcesAllocationResultApplyConfiguration represents a declarative configuration of the NamedResourcesAllocationResult type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resource "k8s.io/apimachinery/pkg/api/resource" resource "k8s.io/apimachinery/pkg/api/resource"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resource "k8s.io/apimachinery/pkg/api/resource" resource "k8s.io/apimachinery/pkg/api/resource"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesFilterApplyConfiguration represents a declarative configuration of the NamedResourcesFilter type for use // NamedResourcesFilterApplyConfiguration represents a declarative configuration of the NamedResourcesFilter type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesInstanceApplyConfiguration represents a declarative configuration of the NamedResourcesInstance type for use // NamedResourcesInstanceApplyConfiguration represents a declarative configuration of the NamedResourcesInstance type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesIntSliceApplyConfiguration represents a declarative configuration of the NamedResourcesIntSlice type for use // NamedResourcesIntSliceApplyConfiguration represents a declarative configuration of the NamedResourcesIntSlice type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesRequestApplyConfiguration represents a declarative configuration of the NamedResourcesRequest type for use // NamedResourcesRequestApplyConfiguration represents a declarative configuration of the NamedResourcesRequest type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesResourcesApplyConfiguration represents a declarative configuration of the NamedResourcesResources type for use // NamedResourcesResourcesApplyConfiguration represents a declarative configuration of the NamedResourcesResources type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// NamedResourcesStringSliceApplyConfiguration represents a declarative configuration of the NamedResourcesStringSlice type for use // NamedResourcesStringSliceApplyConfiguration represents a declarative configuration of the NamedResourcesStringSlice type for use
// with apply. // with apply.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -43,7 +43,7 @@ func PodSchedulingContext(name, namespace string) *PodSchedulingContextApplyConf
b.WithName(name) b.WithName(name)
b.WithNamespace(namespace) b.WithNamespace(namespace)
b.WithKind("PodSchedulingContext") b.WithKind("PodSchedulingContext")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b return b
} }
@ -58,20 +58,20 @@ func PodSchedulingContext(name, namespace string) *PodSchedulingContextApplyConf
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractPodSchedulingContext(podSchedulingContext *resourcev1alpha2.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error) { func ExtractPodSchedulingContext(podSchedulingContext *resourcev1alpha3.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error) {
return extractPodSchedulingContext(podSchedulingContext, fieldManager, "") return extractPodSchedulingContext(podSchedulingContext, fieldManager, "")
} }
// ExtractPodSchedulingContextStatus is the same as ExtractPodSchedulingContext except // ExtractPodSchedulingContextStatus is the same as ExtractPodSchedulingContext except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractPodSchedulingContextStatus(podSchedulingContext *resourcev1alpha2.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error) { func ExtractPodSchedulingContextStatus(podSchedulingContext *resourcev1alpha3.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error) {
return extractPodSchedulingContext(podSchedulingContext, fieldManager, "status") return extractPodSchedulingContext(podSchedulingContext, fieldManager, "status")
} }
func extractPodSchedulingContext(podSchedulingContext *resourcev1alpha2.PodSchedulingContext, fieldManager string, subresource string) (*PodSchedulingContextApplyConfiguration, error) { func extractPodSchedulingContext(podSchedulingContext *resourcev1alpha3.PodSchedulingContext, fieldManager string, subresource string) (*PodSchedulingContextApplyConfiguration, error) {
b := &PodSchedulingContextApplyConfiguration{} b := &PodSchedulingContextApplyConfiguration{}
err := managedfields.ExtractInto(podSchedulingContext, internal.Parser().Type("io.k8s.api.resource.v1alpha2.PodSchedulingContext"), fieldManager, b, subresource) err := managedfields.ExtractInto(podSchedulingContext, internal.Parser().Type("io.k8s.api.resource.v1alpha3.PodSchedulingContext"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -79,7 +79,7 @@ func extractPodSchedulingContext(podSchedulingContext *resourcev1alpha2.PodSched
b.WithNamespace(podSchedulingContext.Namespace) b.WithNamespace(podSchedulingContext.Namespace)
b.WithKind("PodSchedulingContext") b.WithKind("PodSchedulingContext")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// PodSchedulingContextSpecApplyConfiguration represents a declarative configuration of the PodSchedulingContextSpec type for use // PodSchedulingContextSpecApplyConfiguration represents a declarative configuration of the PodSchedulingContextSpec type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// PodSchedulingContextStatusApplyConfiguration represents a declarative configuration of the PodSchedulingContextStatus type for use // PodSchedulingContextStatusApplyConfiguration represents a declarative configuration of the PodSchedulingContextStatus type for use
// with apply. // with apply.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -43,7 +43,7 @@ func ResourceClaim(name, namespace string) *ResourceClaimApplyConfiguration {
b.WithName(name) b.WithName(name)
b.WithNamespace(namespace) b.WithNamespace(namespace)
b.WithKind("ResourceClaim") b.WithKind("ResourceClaim")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b 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 // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceClaim(resourceClaim *resourcev1alpha2.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { func ExtractResourceClaim(resourceClaim *resourcev1alpha3.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) {
return extractResourceClaim(resourceClaim, fieldManager, "") return extractResourceClaim(resourceClaim, fieldManager, "")
} }
// ExtractResourceClaimStatus is the same as ExtractResourceClaim except // ExtractResourceClaimStatus is the same as ExtractResourceClaim except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceClaimStatus(resourceClaim *resourcev1alpha2.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) { func ExtractResourceClaimStatus(resourceClaim *resourcev1alpha3.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error) {
return extractResourceClaim(resourceClaim, fieldManager, "status") return extractResourceClaim(resourceClaim, fieldManager, "status")
} }
func extractResourceClaim(resourceClaim *resourcev1alpha2.ResourceClaim, fieldManager string, subresource string) (*ResourceClaimApplyConfiguration, error) { func extractResourceClaim(resourceClaim *resourcev1alpha3.ResourceClaim, fieldManager string, subresource string) (*ResourceClaimApplyConfiguration, error) {
b := &ResourceClaimApplyConfiguration{} b := &ResourceClaimApplyConfiguration{}
err := managedfields.ExtractInto(resourceClaim, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceClaim"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceClaim, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceClaim"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -79,7 +79,7 @@ func extractResourceClaim(resourceClaim *resourcev1alpha2.ResourceClaim, fieldMa
b.WithNamespace(resourceClaim.Namespace) b.WithNamespace(resourceClaim.Namespace)
b.WithKind("ResourceClaim") b.WithKind("ResourceClaim")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -44,7 +44,7 @@ func ResourceClaimParameters(name, namespace string) *ResourceClaimParametersApp
b.WithName(name) b.WithName(name)
b.WithNamespace(namespace) b.WithNamespace(namespace)
b.WithKind("ResourceClaimParameters") b.WithKind("ResourceClaimParameters")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b return b
} }
@ -59,20 +59,20 @@ func ResourceClaimParameters(name, namespace string) *ResourceClaimParametersApp
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceClaimParameters(resourceClaimParameters *resourcev1alpha2.ResourceClaimParameters, fieldManager string) (*ResourceClaimParametersApplyConfiguration, error) { func ExtractResourceClaimParameters(resourceClaimParameters *resourcev1alpha3.ResourceClaimParameters, fieldManager string) (*ResourceClaimParametersApplyConfiguration, error) {
return extractResourceClaimParameters(resourceClaimParameters, fieldManager, "") return extractResourceClaimParameters(resourceClaimParameters, fieldManager, "")
} }
// ExtractResourceClaimParametersStatus is the same as ExtractResourceClaimParameters except // ExtractResourceClaimParametersStatus is the same as ExtractResourceClaimParameters except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceClaimParametersStatus(resourceClaimParameters *resourcev1alpha2.ResourceClaimParameters, fieldManager string) (*ResourceClaimParametersApplyConfiguration, error) { func ExtractResourceClaimParametersStatus(resourceClaimParameters *resourcev1alpha3.ResourceClaimParameters, fieldManager string) (*ResourceClaimParametersApplyConfiguration, error) {
return extractResourceClaimParameters(resourceClaimParameters, fieldManager, "status") return extractResourceClaimParameters(resourceClaimParameters, fieldManager, "status")
} }
func extractResourceClaimParameters(resourceClaimParameters *resourcev1alpha2.ResourceClaimParameters, fieldManager string, subresource string) (*ResourceClaimParametersApplyConfiguration, error) { func extractResourceClaimParameters(resourceClaimParameters *resourcev1alpha3.ResourceClaimParameters, fieldManager string, subresource string) (*ResourceClaimParametersApplyConfiguration, error) {
b := &ResourceClaimParametersApplyConfiguration{} b := &ResourceClaimParametersApplyConfiguration{}
err := managedfields.ExtractInto(resourceClaimParameters, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceClaimParameters"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceClaimParameters, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceClaimParameters"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -80,7 +80,7 @@ func extractResourceClaimParameters(resourceClaimParameters *resourcev1alpha2.Re
b.WithNamespace(resourceClaimParameters.Namespace) b.WithNamespace(resourceClaimParameters.Namespace)
b.WithKind("ResourceClaimParameters") b.WithKind("ResourceClaimParameters")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceClaimParametersReferenceApplyConfiguration represents a declarative configuration of the ResourceClaimParametersReference type for use // ResourceClaimParametersReferenceApplyConfiguration represents a declarative configuration of the ResourceClaimParametersReference type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceClaimSchedulingStatusApplyConfiguration represents a declarative configuration of the ResourceClaimSchedulingStatus type for use // ResourceClaimSchedulingStatusApplyConfiguration represents a declarative configuration of the ResourceClaimSchedulingStatus type for use
// with apply. // with apply.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
) )
// ResourceClaimSpecApplyConfiguration represents a declarative configuration of the ResourceClaimSpec type for use // ResourceClaimSpecApplyConfiguration represents a declarative configuration of the ResourceClaimSpec type for use
@ -27,7 +27,7 @@ import (
type ResourceClaimSpecApplyConfiguration struct { type ResourceClaimSpecApplyConfiguration struct {
ResourceClassName *string `json:"resourceClassName,omitempty"` ResourceClassName *string `json:"resourceClassName,omitempty"`
ParametersRef *ResourceClaimParametersReferenceApplyConfiguration `json:"parametersRef,omitempty"` ParametersRef *ResourceClaimParametersReferenceApplyConfiguration `json:"parametersRef,omitempty"`
AllocationMode *resourcev1alpha2.AllocationMode `json:"allocationMode,omitempty"` AllocationMode *resourcev1alpha3.AllocationMode `json:"allocationMode,omitempty"`
} }
// ResourceClaimSpecApplyConfiguration constructs a declarative configuration of the ResourceClaimSpec type for use with // ResourceClaimSpecApplyConfiguration constructs a declarative configuration of the ResourceClaimSpec type for use with
@ -55,7 +55,7 @@ func (b *ResourceClaimSpecApplyConfiguration) WithParametersRef(value *ResourceC
// WithAllocationMode sets the AllocationMode field in the declarative configuration to the given value // 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. // 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. // If called multiple times, the AllocationMode field is set to the value of the last call.
func (b *ResourceClaimSpecApplyConfiguration) WithAllocationMode(value resourcev1alpha2.AllocationMode) *ResourceClaimSpecApplyConfiguration { func (b *ResourceClaimSpecApplyConfiguration) WithAllocationMode(value resourcev1alpha3.AllocationMode) *ResourceClaimSpecApplyConfiguration {
b.AllocationMode = &value b.AllocationMode = &value
return b return b
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceClaimStatusApplyConfiguration represents a declarative configuration of the ResourceClaimStatus type for use // ResourceClaimStatusApplyConfiguration represents a declarative configuration of the ResourceClaimStatus type for use
// with apply. // with apply.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -42,7 +42,7 @@ func ResourceClaimTemplate(name, namespace string) *ResourceClaimTemplateApplyCo
b.WithName(name) b.WithName(name)
b.WithNamespace(namespace) b.WithNamespace(namespace)
b.WithKind("ResourceClaimTemplate") b.WithKind("ResourceClaimTemplate")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b 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 // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha2.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { func ExtractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) {
return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "") return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "")
} }
// ExtractResourceClaimTemplateStatus is the same as ExtractResourceClaimTemplate except // ExtractResourceClaimTemplateStatus is the same as ExtractResourceClaimTemplate except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceClaimTemplateStatus(resourceClaimTemplate *resourcev1alpha2.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) { func ExtractResourceClaimTemplateStatus(resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error) {
return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "status") return extractResourceClaimTemplate(resourceClaimTemplate, fieldManager, "status")
} }
func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha2.ResourceClaimTemplate, fieldManager string, subresource string) (*ResourceClaimTemplateApplyConfiguration, error) { func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplate, fieldManager string, subresource string) (*ResourceClaimTemplateApplyConfiguration, error) {
b := &ResourceClaimTemplateApplyConfiguration{} b := &ResourceClaimTemplateApplyConfiguration{}
err := managedfields.ExtractInto(resourceClaimTemplate, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceClaimTemplate"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceClaimTemplate, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceClaimTemplate"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -78,7 +78,7 @@ func extractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha2.Resour
b.WithNamespace(resourceClaimTemplate.Namespace) b.WithNamespace(resourceClaimTemplate.Namespace)
b.WithKind("ResourceClaimTemplate") b.WithKind("ResourceClaimTemplate")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -45,7 +45,7 @@ func ResourceClass(name string) *ResourceClassApplyConfiguration {
b := &ResourceClassApplyConfiguration{} b := &ResourceClassApplyConfiguration{}
b.WithName(name) b.WithName(name)
b.WithKind("ResourceClass") b.WithKind("ResourceClass")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b return b
} }
@ -60,27 +60,27 @@ func ResourceClass(name string) *ResourceClassApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceClass(resourceClass *resourcev1alpha2.ResourceClass, fieldManager string) (*ResourceClassApplyConfiguration, error) { func ExtractResourceClass(resourceClass *resourcev1alpha3.ResourceClass, fieldManager string) (*ResourceClassApplyConfiguration, error) {
return extractResourceClass(resourceClass, fieldManager, "") return extractResourceClass(resourceClass, fieldManager, "")
} }
// ExtractResourceClassStatus is the same as ExtractResourceClass except // ExtractResourceClassStatus is the same as ExtractResourceClass except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceClassStatus(resourceClass *resourcev1alpha2.ResourceClass, fieldManager string) (*ResourceClassApplyConfiguration, error) { func ExtractResourceClassStatus(resourceClass *resourcev1alpha3.ResourceClass, fieldManager string) (*ResourceClassApplyConfiguration, error) {
return extractResourceClass(resourceClass, fieldManager, "status") return extractResourceClass(resourceClass, fieldManager, "status")
} }
func extractResourceClass(resourceClass *resourcev1alpha2.ResourceClass, fieldManager string, subresource string) (*ResourceClassApplyConfiguration, error) { func extractResourceClass(resourceClass *resourcev1alpha3.ResourceClass, fieldManager string, subresource string) (*ResourceClassApplyConfiguration, error) {
b := &ResourceClassApplyConfiguration{} b := &ResourceClassApplyConfiguration{}
err := managedfields.ExtractInto(resourceClass, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceClass"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceClass, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceClass"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
b.WithName(resourceClass.Name) b.WithName(resourceClass.Name)
b.WithKind("ResourceClass") b.WithKind("ResourceClass")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -44,7 +44,7 @@ func ResourceClassParameters(name, namespace string) *ResourceClassParametersApp
b.WithName(name) b.WithName(name)
b.WithNamespace(namespace) b.WithNamespace(namespace)
b.WithKind("ResourceClassParameters") b.WithKind("ResourceClassParameters")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b return b
} }
@ -59,20 +59,20 @@ func ResourceClassParameters(name, namespace string) *ResourceClassParametersApp
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceClassParameters(resourceClassParameters *resourcev1alpha2.ResourceClassParameters, fieldManager string) (*ResourceClassParametersApplyConfiguration, error) { func ExtractResourceClassParameters(resourceClassParameters *resourcev1alpha3.ResourceClassParameters, fieldManager string) (*ResourceClassParametersApplyConfiguration, error) {
return extractResourceClassParameters(resourceClassParameters, fieldManager, "") return extractResourceClassParameters(resourceClassParameters, fieldManager, "")
} }
// ExtractResourceClassParametersStatus is the same as ExtractResourceClassParameters except // ExtractResourceClassParametersStatus is the same as ExtractResourceClassParameters except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceClassParametersStatus(resourceClassParameters *resourcev1alpha2.ResourceClassParameters, fieldManager string) (*ResourceClassParametersApplyConfiguration, error) { func ExtractResourceClassParametersStatus(resourceClassParameters *resourcev1alpha3.ResourceClassParameters, fieldManager string) (*ResourceClassParametersApplyConfiguration, error) {
return extractResourceClassParameters(resourceClassParameters, fieldManager, "status") return extractResourceClassParameters(resourceClassParameters, fieldManager, "status")
} }
func extractResourceClassParameters(resourceClassParameters *resourcev1alpha2.ResourceClassParameters, fieldManager string, subresource string) (*ResourceClassParametersApplyConfiguration, error) { func extractResourceClassParameters(resourceClassParameters *resourcev1alpha3.ResourceClassParameters, fieldManager string, subresource string) (*ResourceClassParametersApplyConfiguration, error) {
b := &ResourceClassParametersApplyConfiguration{} b := &ResourceClassParametersApplyConfiguration{}
err := managedfields.ExtractInto(resourceClassParameters, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceClassParameters"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceClassParameters, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceClassParameters"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -80,7 +80,7 @@ func extractResourceClassParameters(resourceClassParameters *resourcev1alpha2.Re
b.WithNamespace(resourceClassParameters.Namespace) b.WithNamespace(resourceClassParameters.Namespace)
b.WithKind("ResourceClassParameters") b.WithKind("ResourceClassParameters")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceClassParametersReferenceApplyConfiguration represents a declarative configuration of the ResourceClassParametersReference type for use // ResourceClassParametersReferenceApplyConfiguration represents a declarative configuration of the ResourceClassParametersReference type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceFilterApplyConfiguration represents a declarative configuration of the ResourceFilter type for use // ResourceFilterApplyConfiguration represents a declarative configuration of the ResourceFilter type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceFilterModelApplyConfiguration represents a declarative configuration of the ResourceFilterModel type for use // ResourceFilterModelApplyConfiguration represents a declarative configuration of the ResourceFilterModel type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceHandleApplyConfiguration represents a declarative configuration of the ResourceHandle type for use // ResourceHandleApplyConfiguration represents a declarative configuration of the ResourceHandle type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceModelApplyConfiguration represents a declarative configuration of the ResourceModel type for use // ResourceModelApplyConfiguration represents a declarative configuration of the ResourceModel type for use
// with apply. // with apply.

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// ResourceRequestModelApplyConfiguration represents a declarative configuration of the ResourceRequestModel type for use // ResourceRequestModelApplyConfiguration represents a declarative configuration of the ResourceRequestModel type for use
// with apply. // with apply.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields" managedfields "k8s.io/apimachinery/pkg/util/managedfields"
@ -43,7 +43,7 @@ func ResourceSlice(name string) *ResourceSliceApplyConfiguration {
b := &ResourceSliceApplyConfiguration{} b := &ResourceSliceApplyConfiguration{}
b.WithName(name) b.WithName(name)
b.WithKind("ResourceSlice") b.WithKind("ResourceSlice")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b return b
} }
@ -58,27 +58,27 @@ func ResourceSlice(name string) *ResourceSliceApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously // 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. // applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental! // Experimental!
func ExtractResourceSlice(resourceSlice *resourcev1alpha2.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { func ExtractResourceSlice(resourceSlice *resourcev1alpha3.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) {
return extractResourceSlice(resourceSlice, fieldManager, "") return extractResourceSlice(resourceSlice, fieldManager, "")
} }
// ExtractResourceSliceStatus is the same as ExtractResourceSlice except // ExtractResourceSliceStatus is the same as ExtractResourceSlice except
// that it extracts the status subresource applied configuration. // that it extracts the status subresource applied configuration.
// Experimental! // Experimental!
func ExtractResourceSliceStatus(resourceSlice *resourcev1alpha2.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) { func ExtractResourceSliceStatus(resourceSlice *resourcev1alpha3.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error) {
return extractResourceSlice(resourceSlice, fieldManager, "status") return extractResourceSlice(resourceSlice, fieldManager, "status")
} }
func extractResourceSlice(resourceSlice *resourcev1alpha2.ResourceSlice, fieldManager string, subresource string) (*ResourceSliceApplyConfiguration, error) { func extractResourceSlice(resourceSlice *resourcev1alpha3.ResourceSlice, fieldManager string, subresource string) (*ResourceSliceApplyConfiguration, error) {
b := &ResourceSliceApplyConfiguration{} b := &ResourceSliceApplyConfiguration{}
err := managedfields.ExtractInto(resourceSlice, internal.Parser().Type("io.k8s.api.resource.v1alpha2.ResourceSlice"), fieldManager, b, subresource) err := managedfields.ExtractInto(resourceSlice, internal.Parser().Type("io.k8s.api.resource.v1alpha3.ResourceSlice"), fieldManager, b, subresource)
if err != nil { if err != nil {
return nil, err return nil, err
} }
b.WithName(resourceSlice.Name) b.WithName(resourceSlice.Name)
b.WithKind("ResourceSlice") b.WithKind("ResourceSlice")
b.WithAPIVersion("resource.k8s.io/v1alpha2") b.WithAPIVersion("resource.k8s.io/v1alpha3")
return b, nil return b, nil
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by applyconfiguration-gen. DO NOT EDIT. // Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"

View File

@ -59,7 +59,7 @@ import (
rbacv1 "k8s.io/api/rbac/v1" rbacv1 "k8s.io/api/rbac/v1"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
rbacv1beta1 "k8s.io/api/rbac/v1beta1" rbacv1beta1 "k8s.io/api/rbac/v1beta1"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
schedulingv1 "k8s.io/api/scheduling/v1" schedulingv1 "k8s.io/api/scheduling/v1"
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
@ -112,7 +112,7 @@ import (
applyconfigurationsrbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" applyconfigurationsrbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1"
applyconfigurationsrbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" applyconfigurationsrbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1"
applyconfigurationsrbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" applyconfigurationsrbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
applyconfigurationsschedulingv1 "k8s.io/client-go/applyconfigurations/scheduling/v1" applyconfigurationsschedulingv1 "k8s.io/client-go/applyconfigurations/scheduling/v1"
applyconfigurationsschedulingv1alpha1 "k8s.io/client-go/applyconfigurations/scheduling/v1alpha1" applyconfigurationsschedulingv1alpha1 "k8s.io/client-go/applyconfigurations/scheduling/v1alpha1"
applyconfigurationsschedulingv1beta1 "k8s.io/client-go/applyconfigurations/scheduling/v1beta1" applyconfigurationsschedulingv1beta1 "k8s.io/client-go/applyconfigurations/scheduling/v1beta1"
@ -1553,81 +1553,81 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
case rbacv1beta1.SchemeGroupVersion.WithKind("Subject"): case rbacv1beta1.SchemeGroupVersion.WithKind("Subject"):
return &applyconfigurationsrbacv1beta1.SubjectApplyConfiguration{} return &applyconfigurationsrbacv1beta1.SubjectApplyConfiguration{}
// Group=resource.k8s.io, Version=v1alpha2 // Group=resource.k8s.io, Version=v1alpha3
case v1alpha2.SchemeGroupVersion.WithKind("AllocationResult"): case v1alpha3.SchemeGroupVersion.WithKind("AllocationResult"):
return &resourcev1alpha2.AllocationResultApplyConfiguration{} return &resourcev1alpha3.AllocationResultApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("AllocationResultModel"): case v1alpha3.SchemeGroupVersion.WithKind("AllocationResultModel"):
return &resourcev1alpha2.AllocationResultModelApplyConfiguration{} return &resourcev1alpha3.AllocationResultModelApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("DriverAllocationResult"): case v1alpha3.SchemeGroupVersion.WithKind("DriverAllocationResult"):
return &resourcev1alpha2.DriverAllocationResultApplyConfiguration{} return &resourcev1alpha3.DriverAllocationResultApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("DriverRequests"): case v1alpha3.SchemeGroupVersion.WithKind("DriverRequests"):
return &resourcev1alpha2.DriverRequestsApplyConfiguration{} return &resourcev1alpha3.DriverRequestsApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesAllocationResult"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesAllocationResult"):
return &resourcev1alpha2.NamedResourcesAllocationResultApplyConfiguration{} return &resourcev1alpha3.NamedResourcesAllocationResultApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesAttribute"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesAttribute"):
return &resourcev1alpha2.NamedResourcesAttributeApplyConfiguration{} return &resourcev1alpha3.NamedResourcesAttributeApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesAttributeValue"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesAttributeValue"):
return &resourcev1alpha2.NamedResourcesAttributeValueApplyConfiguration{} return &resourcev1alpha3.NamedResourcesAttributeValueApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesFilter"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesFilter"):
return &resourcev1alpha2.NamedResourcesFilterApplyConfiguration{} return &resourcev1alpha3.NamedResourcesFilterApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesInstance"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesInstance"):
return &resourcev1alpha2.NamedResourcesInstanceApplyConfiguration{} return &resourcev1alpha3.NamedResourcesInstanceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesIntSlice"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesIntSlice"):
return &resourcev1alpha2.NamedResourcesIntSliceApplyConfiguration{} return &resourcev1alpha3.NamedResourcesIntSliceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesRequest"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesRequest"):
return &resourcev1alpha2.NamedResourcesRequestApplyConfiguration{} return &resourcev1alpha3.NamedResourcesRequestApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesResources"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesResources"):
return &resourcev1alpha2.NamedResourcesResourcesApplyConfiguration{} return &resourcev1alpha3.NamedResourcesResourcesApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesStringSlice"): case v1alpha3.SchemeGroupVersion.WithKind("NamedResourcesStringSlice"):
return &resourcev1alpha2.NamedResourcesStringSliceApplyConfiguration{} return &resourcev1alpha3.NamedResourcesStringSliceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContext"): case v1alpha3.SchemeGroupVersion.WithKind("PodSchedulingContext"):
return &resourcev1alpha2.PodSchedulingContextApplyConfiguration{} return &resourcev1alpha3.PodSchedulingContextApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContextSpec"): case v1alpha3.SchemeGroupVersion.WithKind("PodSchedulingContextSpec"):
return &resourcev1alpha2.PodSchedulingContextSpecApplyConfiguration{} return &resourcev1alpha3.PodSchedulingContextSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContextStatus"): case v1alpha3.SchemeGroupVersion.WithKind("PodSchedulingContextStatus"):
return &resourcev1alpha2.PodSchedulingContextStatusApplyConfiguration{} return &resourcev1alpha3.PodSchedulingContextStatusApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaim"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaim"):
return &resourcev1alpha2.ResourceClaimApplyConfiguration{} return &resourcev1alpha3.ResourceClaimApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimConsumerReference"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimConsumerReference"):
return &resourcev1alpha2.ResourceClaimConsumerReferenceApplyConfiguration{} return &resourcev1alpha3.ResourceClaimConsumerReferenceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimParameters"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimParameters"):
return &resourcev1alpha2.ResourceClaimParametersApplyConfiguration{} return &resourcev1alpha3.ResourceClaimParametersApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimParametersReference"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimParametersReference"):
return &resourcev1alpha2.ResourceClaimParametersReferenceApplyConfiguration{} return &resourcev1alpha3.ResourceClaimParametersReferenceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimSchedulingStatus"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimSchedulingStatus"):
return &resourcev1alpha2.ResourceClaimSchedulingStatusApplyConfiguration{} return &resourcev1alpha3.ResourceClaimSchedulingStatusApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimSpec"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimSpec"):
return &resourcev1alpha2.ResourceClaimSpecApplyConfiguration{} return &resourcev1alpha3.ResourceClaimSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimStatus"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimStatus"):
return &resourcev1alpha2.ResourceClaimStatusApplyConfiguration{} return &resourcev1alpha3.ResourceClaimStatusApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimTemplate"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimTemplate"):
return &resourcev1alpha2.ResourceClaimTemplateApplyConfiguration{} return &resourcev1alpha3.ResourceClaimTemplateApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimTemplateSpec"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimTemplateSpec"):
return &resourcev1alpha2.ResourceClaimTemplateSpecApplyConfiguration{} return &resourcev1alpha3.ResourceClaimTemplateSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClass"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClass"):
return &resourcev1alpha2.ResourceClassApplyConfiguration{} return &resourcev1alpha3.ResourceClassApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClassParameters"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClassParameters"):
return &resourcev1alpha2.ResourceClassParametersApplyConfiguration{} return &resourcev1alpha3.ResourceClassParametersApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceClassParametersReference"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceClassParametersReference"):
return &resourcev1alpha2.ResourceClassParametersReferenceApplyConfiguration{} return &resourcev1alpha3.ResourceClassParametersReferenceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceFilter"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceFilter"):
return &resourcev1alpha2.ResourceFilterApplyConfiguration{} return &resourcev1alpha3.ResourceFilterApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceFilterModel"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceFilterModel"):
return &resourcev1alpha2.ResourceFilterModelApplyConfiguration{} return &resourcev1alpha3.ResourceFilterModelApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceHandle"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceHandle"):
return &resourcev1alpha2.ResourceHandleApplyConfiguration{} return &resourcev1alpha3.ResourceHandleApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceModel"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceModel"):
return &resourcev1alpha2.ResourceModelApplyConfiguration{} return &resourcev1alpha3.ResourceModelApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequest"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceRequest"):
return &resourcev1alpha2.ResourceRequestApplyConfiguration{} return &resourcev1alpha3.ResourceRequestApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequestModel"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceRequestModel"):
return &resourcev1alpha2.ResourceRequestModelApplyConfiguration{} return &resourcev1alpha3.ResourceRequestModelApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ResourceSlice"): case v1alpha3.SchemeGroupVersion.WithKind("ResourceSlice"):
return &resourcev1alpha2.ResourceSliceApplyConfiguration{} return &resourcev1alpha3.ResourceSliceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("StructuredResourceHandle"): case v1alpha3.SchemeGroupVersion.WithKind("StructuredResourceHandle"):
return &resourcev1alpha2.StructuredResourceHandleApplyConfiguration{} return &resourcev1alpha3.StructuredResourceHandleApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("VendorParameters"): case v1alpha3.SchemeGroupVersion.WithKind("VendorParameters"):
return &resourcev1alpha2.VendorParametersApplyConfiguration{} return &resourcev1alpha3.VendorParametersApplyConfiguration{}
// Group=scheduling.k8s.io, Version=v1 // Group=scheduling.k8s.io, Version=v1
case schedulingv1.SchemeGroupVersion.WithKind("PriorityClass"): case schedulingv1.SchemeGroupVersion.WithKind("PriorityClass"):

View File

@ -60,7 +60,7 @@ import (
rbacv1 "k8s.io/api/rbac/v1" rbacv1 "k8s.io/api/rbac/v1"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
rbacv1beta1 "k8s.io/api/rbac/v1beta1" rbacv1beta1 "k8s.io/api/rbac/v1beta1"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
schedulingv1 "k8s.io/api/scheduling/v1" schedulingv1 "k8s.io/api/scheduling/v1"
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
@ -366,21 +366,21 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
case rbacv1beta1.SchemeGroupVersion.WithResource("rolebindings"): case rbacv1beta1.SchemeGroupVersion.WithResource("rolebindings"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Rbac().V1beta1().RoleBindings().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Rbac().V1beta1().RoleBindings().Informer()}, nil
// Group=resource.k8s.io, Version=v1alpha2 // Group=resource.k8s.io, Version=v1alpha3
case v1alpha2.SchemeGroupVersion.WithResource("podschedulingcontexts"): case v1alpha3.SchemeGroupVersion.WithResource("podschedulingcontexts"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().PodSchedulingContexts().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().PodSchedulingContexts().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceclaims"): case v1alpha3.SchemeGroupVersion.WithResource("resourceclaims"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceClaims().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceClaims().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceclaimparameters"): case v1alpha3.SchemeGroupVersion.WithResource("resourceclaimparameters"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceClaimParameters().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceClaimParameters().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceclaimtemplates"): case v1alpha3.SchemeGroupVersion.WithResource("resourceclaimtemplates"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceClaimTemplates().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceClaimTemplates().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceclasses"): case v1alpha3.SchemeGroupVersion.WithResource("resourceclasses"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceClasses().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceClasses().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceclassparameters"): case v1alpha3.SchemeGroupVersion.WithResource("resourceclassparameters"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceClassParameters().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceClassParameters().Informer()}, nil
case v1alpha2.SchemeGroupVersion.WithResource("resourceslices"): case v1alpha3.SchemeGroupVersion.WithResource("resourceslices"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha2().ResourceSlices().Informer()}, nil return &genericInformer{resource: resource.GroupResource(), informer: f.Resource().V1alpha3().ResourceSlices().Informer()}, nil
// Group=scheduling.k8s.io, Version=v1 // Group=scheduling.k8s.io, Version=v1
case schedulingv1.SchemeGroupVersion.WithResource("priorityclasses"): case schedulingv1.SchemeGroupVersion.WithResource("priorityclasses"):

View File

@ -20,13 +20,13 @@ package resource
import ( import (
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
v1alpha2 "k8s.io/client-go/informers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/informers/resource/v1alpha3"
) )
// Interface provides access to each of this group's versions. // Interface provides access to each of this group's versions.
type Interface interface { type Interface interface {
// V1alpha2 provides access to shared informers for resources in V1alpha2. // V1alpha3 provides access to shared informers for resources in V1alpha3.
V1alpha2() v1alpha2.Interface V1alpha3() v1alpha3.Interface
} }
type group struct { type group struct {
@ -40,7 +40,7 @@ func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakList
return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
} }
// V1alpha2 returns a new v1alpha2.Interface. // V1alpha3 returns a new v1alpha3.Interface.
func (g *group) V1alpha2() v1alpha2.Interface { func (g *group) V1alpha3() v1alpha3.Interface {
return v1alpha2.New(g.factory, g.namespace, g.tweakListOptions) return v1alpha3.New(g.factory, g.namespace, g.tweakListOptions)
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// PodSchedulingContexts. // PodSchedulingContexts.
type PodSchedulingContextInformer interface { type PodSchedulingContextInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.PodSchedulingContextLister Lister() v1alpha3.PodSchedulingContextLister
} }
type podSchedulingContextInformer struct { type podSchedulingContextInformer struct {
@ -62,16 +62,16 @@ func NewFilteredPodSchedulingContextInformer(client kubernetes.Interface, namesp
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().PodSchedulingContexts(namespace).List(context.TODO(), options) return client.ResourceV1alpha3().PodSchedulingContexts(namespace).List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().PodSchedulingContexts(namespace).Watch(context.TODO(), options) return client.ResourceV1alpha3().PodSchedulingContexts(namespace).Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.PodSchedulingContext{}, &resourcev1alpha3.PodSchedulingContext{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -82,9 +82,9 @@ func (f *podSchedulingContextInformer) defaultInformer(client kubernetes.Interfa
} }
func (f *podSchedulingContextInformer) Informer() cache.SharedIndexInformer { func (f *podSchedulingContextInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.PodSchedulingContext{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.PodSchedulingContext{}, f.defaultInformer)
} }
func (f *podSchedulingContextInformer) Lister() v1alpha2.PodSchedulingContextLister { func (f *podSchedulingContextInformer) Lister() v1alpha3.PodSchedulingContextLister {
return v1alpha2.NewPodSchedulingContextLister(f.Informer().GetIndexer()) return v1alpha3.NewPodSchedulingContextLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceClaims. // ResourceClaims.
type ResourceClaimInformer interface { type ResourceClaimInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceClaimLister Lister() v1alpha3.ResourceClaimLister
} }
type resourceClaimInformer struct { type resourceClaimInformer struct {
@ -62,16 +62,16 @@ func NewFilteredResourceClaimInformer(client kubernetes.Interface, namespace str
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaims(namespace).List(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaims(namespace).List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaims(namespace).Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaims(namespace).Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceClaim{}, &resourcev1alpha3.ResourceClaim{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -82,9 +82,9 @@ func (f *resourceClaimInformer) defaultInformer(client kubernetes.Interface, res
} }
func (f *resourceClaimInformer) Informer() cache.SharedIndexInformer { func (f *resourceClaimInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceClaim{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceClaim{}, f.defaultInformer)
} }
func (f *resourceClaimInformer) Lister() v1alpha2.ResourceClaimLister { func (f *resourceClaimInformer) Lister() v1alpha3.ResourceClaimLister {
return v1alpha2.NewResourceClaimLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceClaimLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceClaimParameters. // ResourceClaimParameters.
type ResourceClaimParametersInformer interface { type ResourceClaimParametersInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceClaimParametersLister Lister() v1alpha3.ResourceClaimParametersLister
} }
type resourceClaimParametersInformer struct { type resourceClaimParametersInformer struct {
@ -62,16 +62,16 @@ func NewFilteredResourceClaimParametersInformer(client kubernetes.Interface, nam
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaimParameters(namespace).List(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaimParameters(namespace).List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaimParameters(namespace).Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaimParameters(namespace).Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceClaimParameters{}, &resourcev1alpha3.ResourceClaimParameters{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -82,9 +82,9 @@ func (f *resourceClaimParametersInformer) defaultInformer(client kubernetes.Inte
} }
func (f *resourceClaimParametersInformer) Informer() cache.SharedIndexInformer { func (f *resourceClaimParametersInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceClaimParameters{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceClaimParameters{}, f.defaultInformer)
} }
func (f *resourceClaimParametersInformer) Lister() v1alpha2.ResourceClaimParametersLister { func (f *resourceClaimParametersInformer) Lister() v1alpha3.ResourceClaimParametersLister {
return v1alpha2.NewResourceClaimParametersLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceClaimParametersLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceClaimTemplates. // ResourceClaimTemplates.
type ResourceClaimTemplateInformer interface { type ResourceClaimTemplateInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceClaimTemplateLister Lister() v1alpha3.ResourceClaimTemplateLister
} }
type resourceClaimTemplateInformer struct { type resourceClaimTemplateInformer struct {
@ -62,16 +62,16 @@ func NewFilteredResourceClaimTemplateInformer(client kubernetes.Interface, names
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaimTemplates(namespace).List(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaimTemplates(namespace).List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClaimTemplates(namespace).Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceClaimTemplates(namespace).Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceClaimTemplate{}, &resourcev1alpha3.ResourceClaimTemplate{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -82,9 +82,9 @@ func (f *resourceClaimTemplateInformer) defaultInformer(client kubernetes.Interf
} }
func (f *resourceClaimTemplateInformer) Informer() cache.SharedIndexInformer { func (f *resourceClaimTemplateInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceClaimTemplate{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceClaimTemplate{}, f.defaultInformer)
} }
func (f *resourceClaimTemplateInformer) Lister() v1alpha2.ResourceClaimTemplateLister { func (f *resourceClaimTemplateInformer) Lister() v1alpha3.ResourceClaimTemplateLister {
return v1alpha2.NewResourceClaimTemplateLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceClaimTemplateLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceClasses. // ResourceClasses.
type ResourceClassInformer interface { type ResourceClassInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceClassLister Lister() v1alpha3.ResourceClassLister
} }
type resourceClassInformer struct { type resourceClassInformer struct {
@ -61,16 +61,16 @@ func NewFilteredResourceClassInformer(client kubernetes.Interface, resyncPeriod
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClasses().List(context.TODO(), options) return client.ResourceV1alpha3().ResourceClasses().List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClasses().Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceClasses().Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceClass{}, &resourcev1alpha3.ResourceClass{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -81,9 +81,9 @@ func (f *resourceClassInformer) defaultInformer(client kubernetes.Interface, res
} }
func (f *resourceClassInformer) Informer() cache.SharedIndexInformer { func (f *resourceClassInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceClass{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceClass{}, f.defaultInformer)
} }
func (f *resourceClassInformer) Lister() v1alpha2.ResourceClassLister { func (f *resourceClassInformer) Lister() v1alpha3.ResourceClassLister {
return v1alpha2.NewResourceClassLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceClassLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceClassParameters. // ResourceClassParameters.
type ResourceClassParametersInformer interface { type ResourceClassParametersInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceClassParametersLister Lister() v1alpha3.ResourceClassParametersLister
} }
type resourceClassParametersInformer struct { type resourceClassParametersInformer struct {
@ -62,16 +62,16 @@ func NewFilteredResourceClassParametersInformer(client kubernetes.Interface, nam
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClassParameters(namespace).List(context.TODO(), options) return client.ResourceV1alpha3().ResourceClassParameters(namespace).List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceClassParameters(namespace).Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceClassParameters(namespace).Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceClassParameters{}, &resourcev1alpha3.ResourceClassParameters{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -82,9 +82,9 @@ func (f *resourceClassParametersInformer) defaultInformer(client kubernetes.Inte
} }
func (f *resourceClassParametersInformer) Informer() cache.SharedIndexInformer { func (f *resourceClassParametersInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceClassParameters{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceClassParameters{}, f.defaultInformer)
} }
func (f *resourceClassParametersInformer) Lister() v1alpha2.ResourceClassParametersLister { func (f *resourceClassParametersInformer) Lister() v1alpha3.ResourceClassParametersLister {
return v1alpha2.NewResourceClassParametersLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceClassParametersLister(f.Informer().GetIndexer())
} }

View File

@ -16,19 +16,19 @@ limitations under the License.
// Code generated by informer-gen. DO NOT EDIT. // Code generated by informer-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
time "time" time "time"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
kubernetes "k8s.io/client-go/kubernetes" kubernetes "k8s.io/client-go/kubernetes"
v1alpha2 "k8s.io/client-go/listers/resource/v1alpha2" v1alpha3 "k8s.io/client-go/listers/resource/v1alpha3"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )
@ -36,7 +36,7 @@ import (
// ResourceSlices. // ResourceSlices.
type ResourceSliceInformer interface { type ResourceSliceInformer interface {
Informer() cache.SharedIndexInformer Informer() cache.SharedIndexInformer
Lister() v1alpha2.ResourceSliceLister Lister() v1alpha3.ResourceSliceLister
} }
type resourceSliceInformer struct { type resourceSliceInformer struct {
@ -61,16 +61,16 @@ func NewFilteredResourceSliceInformer(client kubernetes.Interface, resyncPeriod
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceSlices().List(context.TODO(), options) return client.ResourceV1alpha3().ResourceSlices().List(context.TODO(), options)
}, },
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil { if tweakListOptions != nil {
tweakListOptions(&options) tweakListOptions(&options)
} }
return client.ResourceV1alpha2().ResourceSlices().Watch(context.TODO(), options) return client.ResourceV1alpha3().ResourceSlices().Watch(context.TODO(), options)
}, },
}, },
&resourcev1alpha2.ResourceSlice{}, &resourcev1alpha3.ResourceSlice{},
resyncPeriod, resyncPeriod,
indexers, indexers,
) )
@ -81,9 +81,9 @@ func (f *resourceSliceInformer) defaultInformer(client kubernetes.Interface, res
} }
func (f *resourceSliceInformer) Informer() cache.SharedIndexInformer { func (f *resourceSliceInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&resourcev1alpha2.ResourceSlice{}, f.defaultInformer) return f.factory.InformerFor(&resourcev1alpha3.ResourceSlice{}, f.defaultInformer)
} }
func (f *resourceSliceInformer) Lister() v1alpha2.ResourceSliceLister { func (f *resourceSliceInformer) Lister() v1alpha3.ResourceSliceLister {
return v1alpha2.NewResourceSliceLister(f.Informer().GetIndexer()) return v1alpha3.NewResourceSliceLister(f.Informer().GetIndexer())
} }

View File

@ -67,7 +67,7 @@ import (
rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1" rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1"
rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
resourcev1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3"
schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1" schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1"
schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
@ -125,7 +125,7 @@ type Interface interface {
RbacV1() rbacv1.RbacV1Interface RbacV1() rbacv1.RbacV1Interface
RbacV1beta1() rbacv1beta1.RbacV1beta1Interface RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
ResourceV1alpha2() resourcev1alpha2.ResourceV1alpha2Interface ResourceV1alpha3() resourcev1alpha3.ResourceV1alpha3Interface
SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
SchedulingV1() schedulingv1.SchedulingV1Interface SchedulingV1() schedulingv1.SchedulingV1Interface
@ -182,7 +182,7 @@ type Clientset struct {
rbacV1 *rbacv1.RbacV1Client rbacV1 *rbacv1.RbacV1Client
rbacV1beta1 *rbacv1beta1.RbacV1beta1Client rbacV1beta1 *rbacv1beta1.RbacV1beta1Client
rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
resourceV1alpha2 *resourcev1alpha2.ResourceV1alpha2Client resourceV1alpha3 *resourcev1alpha3.ResourceV1alpha3Client
schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client
schedulingV1 *schedulingv1.SchedulingV1Client schedulingV1 *schedulingv1.SchedulingV1Client
@ -412,9 +412,9 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
return c.rbacV1alpha1 return c.rbacV1alpha1
} }
// ResourceV1alpha2 retrieves the ResourceV1alpha2Client // ResourceV1alpha3 retrieves the ResourceV1alpha3Client
func (c *Clientset) ResourceV1alpha2() resourcev1alpha2.ResourceV1alpha2Interface { func (c *Clientset) ResourceV1alpha3() resourcev1alpha3.ResourceV1alpha3Interface {
return c.resourceV1alpha2 return c.resourceV1alpha3
} }
// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client // SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
@ -672,7 +672,7 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset,
if err != nil { if err != nil {
return nil, err return nil, err
} }
cs.resourceV1alpha2, err = resourcev1alpha2.NewForConfigAndClient(&configShallowCopy, httpClient) cs.resourceV1alpha3, err = resourcev1alpha3.NewForConfigAndClient(&configShallowCopy, httpClient)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -769,7 +769,7 @@ func New(c rest.Interface) *Clientset {
cs.rbacV1 = rbacv1.New(c) cs.rbacV1 = rbacv1.New(c)
cs.rbacV1beta1 = rbacv1beta1.New(c) cs.rbacV1beta1 = rbacv1beta1.New(c)
cs.rbacV1alpha1 = rbacv1alpha1.New(c) cs.rbacV1alpha1 = rbacv1alpha1.New(c)
cs.resourceV1alpha2 = resourcev1alpha2.New(c) cs.resourceV1alpha3 = resourcev1alpha3.New(c)
cs.schedulingV1alpha1 = schedulingv1alpha1.New(c) cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
cs.schedulingV1beta1 = schedulingv1beta1.New(c) cs.schedulingV1beta1 = schedulingv1beta1.New(c)
cs.schedulingV1 = schedulingv1.New(c) cs.schedulingV1 = schedulingv1.New(c)

View File

@ -113,8 +113,8 @@ import (
fakerbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake" fakerbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake"
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
fakerbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake" fakerbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake"
resourcev1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3"
fakeresourcev1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2/fake" fakeresourcev1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake"
schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1" schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1"
fakeschedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1/fake" fakeschedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1/fake"
schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
@ -438,9 +438,9 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake} return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake}
} }
// ResourceV1alpha2 retrieves the ResourceV1alpha2Client // ResourceV1alpha3 retrieves the ResourceV1alpha3Client
func (c *Clientset) ResourceV1alpha2() resourcev1alpha2.ResourceV1alpha2Interface { func (c *Clientset) ResourceV1alpha3() resourcev1alpha3.ResourceV1alpha3Interface {
return &fakeresourcev1alpha2.FakeResourceV1alpha2{Fake: &c.Fake} return &fakeresourcev1alpha3.FakeResourceV1alpha3{Fake: &c.Fake}
} }
// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client // SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client

View File

@ -63,7 +63,7 @@ import (
rbacv1 "k8s.io/api/rbac/v1" rbacv1 "k8s.io/api/rbac/v1"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
rbacv1beta1 "k8s.io/api/rbac/v1beta1" rbacv1beta1 "k8s.io/api/rbac/v1beta1"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
schedulingv1 "k8s.io/api/scheduling/v1" schedulingv1 "k8s.io/api/scheduling/v1"
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
@ -126,7 +126,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{
rbacv1.AddToScheme, rbacv1.AddToScheme,
rbacv1beta1.AddToScheme, rbacv1beta1.AddToScheme,
rbacv1alpha1.AddToScheme, rbacv1alpha1.AddToScheme,
resourcev1alpha2.AddToScheme, resourcev1alpha3.AddToScheme,
schedulingv1alpha1.AddToScheme, schedulingv1alpha1.AddToScheme,
schedulingv1beta1.AddToScheme, schedulingv1beta1.AddToScheme,
schedulingv1.AddToScheme, schedulingv1.AddToScheme,

View File

@ -63,7 +63,7 @@ import (
rbacv1 "k8s.io/api/rbac/v1" rbacv1 "k8s.io/api/rbac/v1"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
rbacv1beta1 "k8s.io/api/rbac/v1beta1" rbacv1beta1 "k8s.io/api/rbac/v1beta1"
resourcev1alpha2 "k8s.io/api/resource/v1alpha2" resourcev1alpha3 "k8s.io/api/resource/v1alpha3"
schedulingv1 "k8s.io/api/scheduling/v1" schedulingv1 "k8s.io/api/scheduling/v1"
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
@ -126,7 +126,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{
rbacv1.AddToScheme, rbacv1.AddToScheme,
rbacv1beta1.AddToScheme, rbacv1beta1.AddToScheme,
rbacv1alpha1.AddToScheme, rbacv1alpha1.AddToScheme,
resourcev1alpha2.AddToScheme, resourcev1alpha3.AddToScheme,
schedulingv1alpha1.AddToScheme, schedulingv1alpha1.AddToScheme,
schedulingv1beta1.AddToScheme, schedulingv1beta1.AddToScheme,
schedulingv1.AddToScheme, schedulingv1.AddToScheme,

View File

@ -17,4 +17,4 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
// This package has the automatically generated typed clients. // This package has the automatically generated typed clients.
package v1alpha2 package v1alpha3

View File

@ -23,40 +23,40 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakePodSchedulingContexts implements PodSchedulingContextInterface // FakePodSchedulingContexts implements PodSchedulingContextInterface
type FakePodSchedulingContexts struct { type FakePodSchedulingContexts struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
ns string ns string
} }
var podschedulingcontextsResource = v1alpha2.SchemeGroupVersion.WithResource("podschedulingcontexts") var podschedulingcontextsResource = v1alpha3.SchemeGroupVersion.WithResource("podschedulingcontexts")
var podschedulingcontextsKind = v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContext") var podschedulingcontextsKind = v1alpha3.SchemeGroupVersion.WithKind("PodSchedulingContext")
// Get takes name of the podSchedulingContext, and returns the corresponding podSchedulingContext object, and an error if there is any. // Get takes name of the podSchedulingContext, and returns the corresponding podSchedulingContext object, and an error if there is any.
func (c *FakePodSchedulingContexts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.PodSchedulingContext, err error) {
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(podschedulingcontextsResource, c.ns, name, options), emptyResult) Invokes(testing.NewGetActionWithOptions(podschedulingcontextsResource, c.ns, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// List takes label and field selectors, and returns the list of PodSchedulingContexts that match those selectors. // List takes label and field selectors, and returns the list of PodSchedulingContexts that match those selectors.
func (c *FakePodSchedulingContexts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PodSchedulingContextList, err error) { func (c *FakePodSchedulingContexts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.PodSchedulingContextList, err error) {
emptyResult := &v1alpha2.PodSchedulingContextList{} emptyResult := &v1alpha3.PodSchedulingContextList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(podschedulingcontextsResource, podschedulingcontextsKind, c.ns, opts), emptyResult) Invokes(testing.NewListActionWithOptions(podschedulingcontextsResource, podschedulingcontextsKind, c.ns, opts), emptyResult)
@ -68,8 +68,8 @@ func (c *FakePodSchedulingContexts) List(ctx context.Context, opts v1.ListOption
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.PodSchedulingContextList{ListMeta: obj.(*v1alpha2.PodSchedulingContextList).ListMeta} list := &v1alpha3.PodSchedulingContextList{ListMeta: obj.(*v1alpha3.PodSchedulingContextList).ListMeta}
for _, item := range obj.(*v1alpha2.PodSchedulingContextList).Items { for _, item := range obj.(*v1alpha3.PodSchedulingContextList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -85,46 +85,46 @@ func (c *FakePodSchedulingContexts) Watch(ctx context.Context, opts v1.ListOptio
} }
// Create takes the representation of a podSchedulingContext and creates it. Returns the server's representation of the podSchedulingContext, and an error, if there is any. // Create takes the representation of a podSchedulingContext and creates it. Returns the server's representation of the podSchedulingContext, and an error, if there is any.
func (c *FakePodSchedulingContexts) Create(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.CreateOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) Create(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.CreateOptions) (result *v1alpha3.PodSchedulingContext, err error) {
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(podschedulingcontextsResource, c.ns, podSchedulingContext, opts), emptyResult) Invokes(testing.NewCreateActionWithOptions(podschedulingcontextsResource, c.ns, podSchedulingContext, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// Update takes the representation of a podSchedulingContext and updates it. Returns the server's representation of the podSchedulingContext, and an error, if there is any. // Update takes the representation of a podSchedulingContext and updates it. Returns the server's representation of the podSchedulingContext, and an error, if there is any.
func (c *FakePodSchedulingContexts) Update(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.UpdateOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) Update(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.UpdateOptions) (result *v1alpha3.PodSchedulingContext, err error) {
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(podschedulingcontextsResource, c.ns, podSchedulingContext, opts), emptyResult) Invokes(testing.NewUpdateActionWithOptions(podschedulingcontextsResource, c.ns, podSchedulingContext, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// UpdateStatus was generated because the type contains a Status member. // UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakePodSchedulingContexts) UpdateStatus(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.UpdateOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) UpdateStatus(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.UpdateOptions) (result *v1alpha3.PodSchedulingContext, err error) {
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceActionWithOptions(podschedulingcontextsResource, "status", c.ns, podSchedulingContext, opts), emptyResult) Invokes(testing.NewUpdateSubresourceActionWithOptions(podschedulingcontextsResource, "status", c.ns, podSchedulingContext, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// Delete takes name of the podSchedulingContext and deletes it. Returns an error if one occurs. // Delete takes name of the podSchedulingContext and deletes it. Returns an error if one occurs.
func (c *FakePodSchedulingContexts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakePodSchedulingContexts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(podschedulingcontextsResource, c.ns, name, opts), &v1alpha2.PodSchedulingContext{}) Invokes(testing.NewDeleteActionWithOptions(podschedulingcontextsResource, c.ns, name, opts), &v1alpha3.PodSchedulingContext{})
return err return err
} }
@ -133,24 +133,24 @@ func (c *FakePodSchedulingContexts) Delete(ctx context.Context, name string, opt
func (c *FakePodSchedulingContexts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakePodSchedulingContexts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(podschedulingcontextsResource, c.ns, opts, listOpts) action := testing.NewDeleteCollectionActionWithOptions(podschedulingcontextsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.PodSchedulingContextList{}) _, err := c.Fake.Invokes(action, &v1alpha3.PodSchedulingContextList{})
return err return err
} }
// Patch applies the patch and returns the patched podSchedulingContext. // Patch applies the patch and returns the patched podSchedulingContext.
func (c *FakePodSchedulingContexts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.PodSchedulingContext, err error) {
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied podSchedulingContext. // Apply takes the given apply declarative configuration, applies it and returns the applied podSchedulingContext.
func (c *FakePodSchedulingContexts) Apply(ctx context.Context, podSchedulingContext *resourcev1alpha2.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) Apply(ctx context.Context, podSchedulingContext *resourcev1alpha3.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.PodSchedulingContext, err error) {
if podSchedulingContext == nil { if podSchedulingContext == nil {
return nil, fmt.Errorf("podSchedulingContext provided to Apply must not be nil") return nil, fmt.Errorf("podSchedulingContext provided to Apply must not be nil")
} }
@ -162,19 +162,19 @@ func (c *FakePodSchedulingContexts) Apply(ctx context.Context, podSchedulingCont
if name == nil { if name == nil {
return nil, fmt.Errorf("podSchedulingContext.Name must be provided to Apply") return nil, fmt.Errorf("podSchedulingContext.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }
// ApplyStatus was generated because the type contains a Status member. // ApplyStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (c *FakePodSchedulingContexts) ApplyStatus(ctx context.Context, podSchedulingContext *resourcev1alpha2.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.PodSchedulingContext, err error) { func (c *FakePodSchedulingContexts) ApplyStatus(ctx context.Context, podSchedulingContext *resourcev1alpha3.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.PodSchedulingContext, err error) {
if podSchedulingContext == nil { if podSchedulingContext == nil {
return nil, fmt.Errorf("podSchedulingContext provided to Apply must not be nil") return nil, fmt.Errorf("podSchedulingContext provided to Apply must not be nil")
} }
@ -186,12 +186,12 @@ func (c *FakePodSchedulingContexts) ApplyStatus(ctx context.Context, podScheduli
if name == nil { if name == nil {
return nil, fmt.Errorf("podSchedulingContext.Name must be provided to Apply") return nil, fmt.Errorf("podSchedulingContext.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.PodSchedulingContext{} emptyResult := &v1alpha3.PodSchedulingContext{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(podschedulingcontextsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.PodSchedulingContext), err return obj.(*v1alpha3.PodSchedulingContext), err
} }

View File

@ -19,46 +19,46 @@ limitations under the License.
package fake package fake
import ( import (
v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" v1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
type FakeResourceV1alpha2 struct { type FakeResourceV1alpha3 struct {
*testing.Fake *testing.Fake
} }
func (c *FakeResourceV1alpha2) PodSchedulingContexts(namespace string) v1alpha2.PodSchedulingContextInterface { func (c *FakeResourceV1alpha3) PodSchedulingContexts(namespace string) v1alpha3.PodSchedulingContextInterface {
return &FakePodSchedulingContexts{c, namespace} return &FakePodSchedulingContexts{c, namespace}
} }
func (c *FakeResourceV1alpha2) ResourceClaims(namespace string) v1alpha2.ResourceClaimInterface { func (c *FakeResourceV1alpha3) ResourceClaims(namespace string) v1alpha3.ResourceClaimInterface {
return &FakeResourceClaims{c, namespace} return &FakeResourceClaims{c, namespace}
} }
func (c *FakeResourceV1alpha2) ResourceClaimParameters(namespace string) v1alpha2.ResourceClaimParametersInterface { func (c *FakeResourceV1alpha3) ResourceClaimParameters(namespace string) v1alpha3.ResourceClaimParametersInterface {
return &FakeResourceClaimParameters{c, namespace} return &FakeResourceClaimParameters{c, namespace}
} }
func (c *FakeResourceV1alpha2) ResourceClaimTemplates(namespace string) v1alpha2.ResourceClaimTemplateInterface { func (c *FakeResourceV1alpha3) ResourceClaimTemplates(namespace string) v1alpha3.ResourceClaimTemplateInterface {
return &FakeResourceClaimTemplates{c, namespace} return &FakeResourceClaimTemplates{c, namespace}
} }
func (c *FakeResourceV1alpha2) ResourceClasses() v1alpha2.ResourceClassInterface { func (c *FakeResourceV1alpha3) ResourceClasses() v1alpha3.ResourceClassInterface {
return &FakeResourceClasses{c} return &FakeResourceClasses{c}
} }
func (c *FakeResourceV1alpha2) ResourceClassParameters(namespace string) v1alpha2.ResourceClassParametersInterface { func (c *FakeResourceV1alpha3) ResourceClassParameters(namespace string) v1alpha3.ResourceClassParametersInterface {
return &FakeResourceClassParameters{c, namespace} return &FakeResourceClassParameters{c, namespace}
} }
func (c *FakeResourceV1alpha2) ResourceSlices() v1alpha2.ResourceSliceInterface { func (c *FakeResourceV1alpha3) ResourceSlices() v1alpha3.ResourceSliceInterface {
return &FakeResourceSlices{c} return &FakeResourceSlices{c}
} }
// RESTClient returns a RESTClient that is used to communicate // RESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation. // with API server by this client implementation.
func (c *FakeResourceV1alpha2) RESTClient() rest.Interface { func (c *FakeResourceV1alpha3) RESTClient() rest.Interface {
var ret *rest.RESTClient var ret *rest.RESTClient
return ret return ret
} }

View File

@ -23,40 +23,40 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceClaims implements ResourceClaimInterface // FakeResourceClaims implements ResourceClaimInterface
type FakeResourceClaims struct { type FakeResourceClaims struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
ns string ns string
} }
var resourceclaimsResource = v1alpha2.SchemeGroupVersion.WithResource("resourceclaims") var resourceclaimsResource = v1alpha3.SchemeGroupVersion.WithResource("resourceclaims")
var resourceclaimsKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceClaim") var resourceclaimsKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceClaim")
// Get takes name of the resourceClaim, and returns the corresponding resourceClaim object, and an error if there is any. // Get takes name of the resourceClaim, and returns the corresponding resourceClaim object, and an error if there is any.
func (c *FakeResourceClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceClaim, err error) {
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(resourceclaimsResource, c.ns, name, options), emptyResult) Invokes(testing.NewGetActionWithOptions(resourceclaimsResource, c.ns, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// List takes label and field selectors, and returns the list of ResourceClaims that match those selectors. // List takes label and field selectors, and returns the list of ResourceClaims that match those selectors.
func (c *FakeResourceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimList, err error) { func (c *FakeResourceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceClaimList, err error) {
emptyResult := &v1alpha2.ResourceClaimList{} emptyResult := &v1alpha3.ResourceClaimList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(resourceclaimsResource, resourceclaimsKind, c.ns, opts), emptyResult) Invokes(testing.NewListActionWithOptions(resourceclaimsResource, resourceclaimsKind, c.ns, opts), emptyResult)
@ -68,8 +68,8 @@ func (c *FakeResourceClaims) List(ctx context.Context, opts v1.ListOptions) (res
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceClaimList{ListMeta: obj.(*v1alpha2.ResourceClaimList).ListMeta} list := &v1alpha3.ResourceClaimList{ListMeta: obj.(*v1alpha3.ResourceClaimList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceClaimList).Items { for _, item := range obj.(*v1alpha3.ResourceClaimList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -85,46 +85,46 @@ func (c *FakeResourceClaims) Watch(ctx context.Context, opts v1.ListOptions) (wa
} }
// Create takes the representation of a resourceClaim and creates it. Returns the server's representation of the resourceClaim, and an error, if there is any. // Create takes the representation of a resourceClaim and creates it. Returns the server's representation of the resourceClaim, and an error, if there is any.
func (c *FakeResourceClaims) Create(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.CreateOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) Create(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.CreateOptions) (result *v1alpha3.ResourceClaim, err error) {
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(resourceclaimsResource, c.ns, resourceClaim, opts), emptyResult) Invokes(testing.NewCreateActionWithOptions(resourceclaimsResource, c.ns, resourceClaim, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// Update takes the representation of a resourceClaim and updates it. Returns the server's representation of the resourceClaim, and an error, if there is any. // Update takes the representation of a resourceClaim and updates it. Returns the server's representation of the resourceClaim, and an error, if there is any.
func (c *FakeResourceClaims) Update(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) Update(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.UpdateOptions) (result *v1alpha3.ResourceClaim, err error) {
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(resourceclaimsResource, c.ns, resourceClaim, opts), emptyResult) Invokes(testing.NewUpdateActionWithOptions(resourceclaimsResource, c.ns, resourceClaim, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// UpdateStatus was generated because the type contains a Status member. // UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeResourceClaims) UpdateStatus(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) UpdateStatus(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.UpdateOptions) (result *v1alpha3.ResourceClaim, err error) {
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceActionWithOptions(resourceclaimsResource, "status", c.ns, resourceClaim, opts), emptyResult) Invokes(testing.NewUpdateSubresourceActionWithOptions(resourceclaimsResource, "status", c.ns, resourceClaim, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// Delete takes name of the resourceClaim and deletes it. Returns an error if one occurs. // Delete takes name of the resourceClaim and deletes it. Returns an error if one occurs.
func (c *FakeResourceClaims) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceClaims) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(resourceclaimsResource, c.ns, name, opts), &v1alpha2.ResourceClaim{}) Invokes(testing.NewDeleteActionWithOptions(resourceclaimsResource, c.ns, name, opts), &v1alpha3.ResourceClaim{})
return err return err
} }
@ -133,24 +133,24 @@ func (c *FakeResourceClaims) Delete(ctx context.Context, name string, opts v1.De
func (c *FakeResourceClaims) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceClaims) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(resourceclaimsResource, c.ns, opts, listOpts) action := testing.NewDeleteCollectionActionWithOptions(resourceclaimsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceClaimList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceClaimList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceClaim. // Patch applies the patch and returns the patched resourceClaim.
func (c *FakeResourceClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaim, err error) {
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaim. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaim.
func (c *FakeResourceClaims) Apply(ctx context.Context, resourceClaim *resourcev1alpha2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) Apply(ctx context.Context, resourceClaim *resourcev1alpha3.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaim, err error) {
if resourceClaim == nil { if resourceClaim == nil {
return nil, fmt.Errorf("resourceClaim provided to Apply must not be nil") return nil, fmt.Errorf("resourceClaim provided to Apply must not be nil")
} }
@ -162,19 +162,19 @@ func (c *FakeResourceClaims) Apply(ctx context.Context, resourceClaim *resourcev
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClaim.Name must be provided to Apply") return nil, fmt.Errorf("resourceClaim.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }
// ApplyStatus was generated because the type contains a Status member. // ApplyStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (c *FakeResourceClaims) ApplyStatus(ctx context.Context, resourceClaim *resourcev1alpha2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaim, err error) { func (c *FakeResourceClaims) ApplyStatus(ctx context.Context, resourceClaim *resourcev1alpha3.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaim, err error) {
if resourceClaim == nil { if resourceClaim == nil {
return nil, fmt.Errorf("resourceClaim provided to Apply must not be nil") return nil, fmt.Errorf("resourceClaim provided to Apply must not be nil")
} }
@ -186,12 +186,12 @@ func (c *FakeResourceClaims) ApplyStatus(ctx context.Context, resourceClaim *res
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClaim.Name must be provided to Apply") return nil, fmt.Errorf("resourceClaim.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClaim{} emptyResult := &v1alpha3.ResourceClaim{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaim), err return obj.(*v1alpha3.ResourceClaim), err
} }

View File

@ -23,40 +23,40 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceClaimParameters implements ResourceClaimParametersInterface // FakeResourceClaimParameters implements ResourceClaimParametersInterface
type FakeResourceClaimParameters struct { type FakeResourceClaimParameters struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
ns string ns string
} }
var resourceclaimparametersResource = v1alpha2.SchemeGroupVersion.WithResource("resourceclaimparameters") var resourceclaimparametersResource = v1alpha3.SchemeGroupVersion.WithResource("resourceclaimparameters")
var resourceclaimparametersKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimParameters") var resourceclaimparametersKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimParameters")
// Get takes name of the resourceClaimParameters, and returns the corresponding resourceClaimParameters object, and an error if there is any. // Get takes name of the resourceClaimParameters, and returns the corresponding resourceClaimParameters object, and an error if there is any.
func (c *FakeResourceClaimParameters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClaimParameters, err error) { func (c *FakeResourceClaimParameters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceClaimParameters, err error) {
emptyResult := &v1alpha2.ResourceClaimParameters{} emptyResult := &v1alpha3.ResourceClaimParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(resourceclaimparametersResource, c.ns, name, options), emptyResult) Invokes(testing.NewGetActionWithOptions(resourceclaimparametersResource, c.ns, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimParameters), err return obj.(*v1alpha3.ResourceClaimParameters), err
} }
// List takes label and field selectors, and returns the list of ResourceClaimParameters that match those selectors. // List takes label and field selectors, and returns the list of ResourceClaimParameters that match those selectors.
func (c *FakeResourceClaimParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimParametersList, err error) { func (c *FakeResourceClaimParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceClaimParametersList, err error) {
emptyResult := &v1alpha2.ResourceClaimParametersList{} emptyResult := &v1alpha3.ResourceClaimParametersList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(resourceclaimparametersResource, resourceclaimparametersKind, c.ns, opts), emptyResult) Invokes(testing.NewListActionWithOptions(resourceclaimparametersResource, resourceclaimparametersKind, c.ns, opts), emptyResult)
@ -68,8 +68,8 @@ func (c *FakeResourceClaimParameters) List(ctx context.Context, opts v1.ListOpti
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceClaimParametersList{ListMeta: obj.(*v1alpha2.ResourceClaimParametersList).ListMeta} list := &v1alpha3.ResourceClaimParametersList{ListMeta: obj.(*v1alpha3.ResourceClaimParametersList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceClaimParametersList).Items { for _, item := range obj.(*v1alpha3.ResourceClaimParametersList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -85,33 +85,33 @@ func (c *FakeResourceClaimParameters) Watch(ctx context.Context, opts v1.ListOpt
} }
// Create takes the representation of a resourceClaimParameters and creates it. Returns the server's representation of the resourceClaimParameters, and an error, if there is any. // Create takes the representation of a resourceClaimParameters and creates it. Returns the server's representation of the resourceClaimParameters, and an error, if there is any.
func (c *FakeResourceClaimParameters) Create(ctx context.Context, resourceClaimParameters *v1alpha2.ResourceClaimParameters, opts v1.CreateOptions) (result *v1alpha2.ResourceClaimParameters, err error) { func (c *FakeResourceClaimParameters) Create(ctx context.Context, resourceClaimParameters *v1alpha3.ResourceClaimParameters, opts v1.CreateOptions) (result *v1alpha3.ResourceClaimParameters, err error) {
emptyResult := &v1alpha2.ResourceClaimParameters{} emptyResult := &v1alpha3.ResourceClaimParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(resourceclaimparametersResource, c.ns, resourceClaimParameters, opts), emptyResult) Invokes(testing.NewCreateActionWithOptions(resourceclaimparametersResource, c.ns, resourceClaimParameters, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimParameters), err return obj.(*v1alpha3.ResourceClaimParameters), err
} }
// Update takes the representation of a resourceClaimParameters and updates it. Returns the server's representation of the resourceClaimParameters, and an error, if there is any. // Update takes the representation of a resourceClaimParameters and updates it. Returns the server's representation of the resourceClaimParameters, and an error, if there is any.
func (c *FakeResourceClaimParameters) Update(ctx context.Context, resourceClaimParameters *v1alpha2.ResourceClaimParameters, opts v1.UpdateOptions) (result *v1alpha2.ResourceClaimParameters, err error) { func (c *FakeResourceClaimParameters) Update(ctx context.Context, resourceClaimParameters *v1alpha3.ResourceClaimParameters, opts v1.UpdateOptions) (result *v1alpha3.ResourceClaimParameters, err error) {
emptyResult := &v1alpha2.ResourceClaimParameters{} emptyResult := &v1alpha3.ResourceClaimParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(resourceclaimparametersResource, c.ns, resourceClaimParameters, opts), emptyResult) Invokes(testing.NewUpdateActionWithOptions(resourceclaimparametersResource, c.ns, resourceClaimParameters, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimParameters), err return obj.(*v1alpha3.ResourceClaimParameters), err
} }
// Delete takes name of the resourceClaimParameters and deletes it. Returns an error if one occurs. // Delete takes name of the resourceClaimParameters and deletes it. Returns an error if one occurs.
func (c *FakeResourceClaimParameters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceClaimParameters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(resourceclaimparametersResource, c.ns, name, opts), &v1alpha2.ResourceClaimParameters{}) Invokes(testing.NewDeleteActionWithOptions(resourceclaimparametersResource, c.ns, name, opts), &v1alpha3.ResourceClaimParameters{})
return err return err
} }
@ -120,24 +120,24 @@ func (c *FakeResourceClaimParameters) Delete(ctx context.Context, name string, o
func (c *FakeResourceClaimParameters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceClaimParameters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(resourceclaimparametersResource, c.ns, opts, listOpts) action := testing.NewDeleteCollectionActionWithOptions(resourceclaimparametersResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceClaimParametersList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceClaimParametersList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceClaimParameters. // Patch applies the patch and returns the patched resourceClaimParameters.
func (c *FakeResourceClaimParameters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceClaimParameters, err error) { func (c *FakeResourceClaimParameters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaimParameters, err error) {
emptyResult := &v1alpha2.ResourceClaimParameters{} emptyResult := &v1alpha3.ResourceClaimParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimparametersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimparametersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimParameters), err return obj.(*v1alpha3.ResourceClaimParameters), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimParameters. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimParameters.
func (c *FakeResourceClaimParameters) Apply(ctx context.Context, resourceClaimParameters *resourcev1alpha2.ResourceClaimParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaimParameters, err error) { func (c *FakeResourceClaimParameters) Apply(ctx context.Context, resourceClaimParameters *resourcev1alpha3.ResourceClaimParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaimParameters, err error) {
if resourceClaimParameters == nil { if resourceClaimParameters == nil {
return nil, fmt.Errorf("resourceClaimParameters provided to Apply must not be nil") return nil, fmt.Errorf("resourceClaimParameters provided to Apply must not be nil")
} }
@ -149,12 +149,12 @@ func (c *FakeResourceClaimParameters) Apply(ctx context.Context, resourceClaimPa
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClaimParameters.Name must be provided to Apply") return nil, fmt.Errorf("resourceClaimParameters.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClaimParameters{} emptyResult := &v1alpha3.ResourceClaimParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimparametersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimparametersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimParameters), err return obj.(*v1alpha3.ResourceClaimParameters), err
} }

View File

@ -23,40 +23,40 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceClaimTemplates implements ResourceClaimTemplateInterface // FakeResourceClaimTemplates implements ResourceClaimTemplateInterface
type FakeResourceClaimTemplates struct { type FakeResourceClaimTemplates struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
ns string ns string
} }
var resourceclaimtemplatesResource = v1alpha2.SchemeGroupVersion.WithResource("resourceclaimtemplates") var resourceclaimtemplatesResource = v1alpha3.SchemeGroupVersion.WithResource("resourceclaimtemplates")
var resourceclaimtemplatesKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceClaimTemplate") var resourceclaimtemplatesKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceClaimTemplate")
// Get takes name of the resourceClaimTemplate, and returns the corresponding resourceClaimTemplate object, and an error if there is any. // Get takes name of the resourceClaimTemplate, and returns the corresponding resourceClaimTemplate object, and an error if there is any.
func (c *FakeResourceClaimTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClaimTemplate, err error) { func (c *FakeResourceClaimTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceClaimTemplate, err error) {
emptyResult := &v1alpha2.ResourceClaimTemplate{} emptyResult := &v1alpha3.ResourceClaimTemplate{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(resourceclaimtemplatesResource, c.ns, name, options), emptyResult) Invokes(testing.NewGetActionWithOptions(resourceclaimtemplatesResource, c.ns, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimTemplate), err return obj.(*v1alpha3.ResourceClaimTemplate), err
} }
// List takes label and field selectors, and returns the list of ResourceClaimTemplates that match those selectors. // List takes label and field selectors, and returns the list of ResourceClaimTemplates that match those selectors.
func (c *FakeResourceClaimTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimTemplateList, err error) { func (c *FakeResourceClaimTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceClaimTemplateList, err error) {
emptyResult := &v1alpha2.ResourceClaimTemplateList{} emptyResult := &v1alpha3.ResourceClaimTemplateList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(resourceclaimtemplatesResource, resourceclaimtemplatesKind, c.ns, opts), emptyResult) Invokes(testing.NewListActionWithOptions(resourceclaimtemplatesResource, resourceclaimtemplatesKind, c.ns, opts), emptyResult)
@ -68,8 +68,8 @@ func (c *FakeResourceClaimTemplates) List(ctx context.Context, opts v1.ListOptio
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceClaimTemplateList{ListMeta: obj.(*v1alpha2.ResourceClaimTemplateList).ListMeta} list := &v1alpha3.ResourceClaimTemplateList{ListMeta: obj.(*v1alpha3.ResourceClaimTemplateList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceClaimTemplateList).Items { for _, item := range obj.(*v1alpha3.ResourceClaimTemplateList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -85,33 +85,33 @@ func (c *FakeResourceClaimTemplates) Watch(ctx context.Context, opts v1.ListOpti
} }
// Create takes the representation of a resourceClaimTemplate and creates it. Returns the server's representation of the resourceClaimTemplate, and an error, if there is any. // Create takes the representation of a resourceClaimTemplate and creates it. Returns the server's representation of the resourceClaimTemplate, and an error, if there is any.
func (c *FakeResourceClaimTemplates) Create(ctx context.Context, resourceClaimTemplate *v1alpha2.ResourceClaimTemplate, opts v1.CreateOptions) (result *v1alpha2.ResourceClaimTemplate, err error) { func (c *FakeResourceClaimTemplates) Create(ctx context.Context, resourceClaimTemplate *v1alpha3.ResourceClaimTemplate, opts v1.CreateOptions) (result *v1alpha3.ResourceClaimTemplate, err error) {
emptyResult := &v1alpha2.ResourceClaimTemplate{} emptyResult := &v1alpha3.ResourceClaimTemplate{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(resourceclaimtemplatesResource, c.ns, resourceClaimTemplate, opts), emptyResult) Invokes(testing.NewCreateActionWithOptions(resourceclaimtemplatesResource, c.ns, resourceClaimTemplate, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimTemplate), err return obj.(*v1alpha3.ResourceClaimTemplate), err
} }
// Update takes the representation of a resourceClaimTemplate and updates it. Returns the server's representation of the resourceClaimTemplate, and an error, if there is any. // Update takes the representation of a resourceClaimTemplate and updates it. Returns the server's representation of the resourceClaimTemplate, and an error, if there is any.
func (c *FakeResourceClaimTemplates) Update(ctx context.Context, resourceClaimTemplate *v1alpha2.ResourceClaimTemplate, opts v1.UpdateOptions) (result *v1alpha2.ResourceClaimTemplate, err error) { func (c *FakeResourceClaimTemplates) Update(ctx context.Context, resourceClaimTemplate *v1alpha3.ResourceClaimTemplate, opts v1.UpdateOptions) (result *v1alpha3.ResourceClaimTemplate, err error) {
emptyResult := &v1alpha2.ResourceClaimTemplate{} emptyResult := &v1alpha3.ResourceClaimTemplate{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(resourceclaimtemplatesResource, c.ns, resourceClaimTemplate, opts), emptyResult) Invokes(testing.NewUpdateActionWithOptions(resourceclaimtemplatesResource, c.ns, resourceClaimTemplate, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimTemplate), err return obj.(*v1alpha3.ResourceClaimTemplate), err
} }
// Delete takes name of the resourceClaimTemplate and deletes it. Returns an error if one occurs. // Delete takes name of the resourceClaimTemplate and deletes it. Returns an error if one occurs.
func (c *FakeResourceClaimTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceClaimTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(resourceclaimtemplatesResource, c.ns, name, opts), &v1alpha2.ResourceClaimTemplate{}) Invokes(testing.NewDeleteActionWithOptions(resourceclaimtemplatesResource, c.ns, name, opts), &v1alpha3.ResourceClaimTemplate{})
return err return err
} }
@ -120,24 +120,24 @@ func (c *FakeResourceClaimTemplates) Delete(ctx context.Context, name string, op
func (c *FakeResourceClaimTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceClaimTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(resourceclaimtemplatesResource, c.ns, opts, listOpts) action := testing.NewDeleteCollectionActionWithOptions(resourceclaimtemplatesResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceClaimTemplateList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceClaimTemplateList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceClaimTemplate. // Patch applies the patch and returns the patched resourceClaimTemplate.
func (c *FakeResourceClaimTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceClaimTemplate, err error) { func (c *FakeResourceClaimTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaimTemplate, err error) {
emptyResult := &v1alpha2.ResourceClaimTemplate{} emptyResult := &v1alpha3.ResourceClaimTemplate{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimtemplatesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimtemplatesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimTemplate), err return obj.(*v1alpha3.ResourceClaimTemplate), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimTemplate. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceClaimTemplate.
func (c *FakeResourceClaimTemplates) Apply(ctx context.Context, resourceClaimTemplate *resourcev1alpha2.ResourceClaimTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaimTemplate, err error) { func (c *FakeResourceClaimTemplates) Apply(ctx context.Context, resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaimTemplate, err error) {
if resourceClaimTemplate == nil { if resourceClaimTemplate == nil {
return nil, fmt.Errorf("resourceClaimTemplate provided to Apply must not be nil") return nil, fmt.Errorf("resourceClaimTemplate provided to Apply must not be nil")
} }
@ -149,12 +149,12 @@ func (c *FakeResourceClaimTemplates) Apply(ctx context.Context, resourceClaimTem
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClaimTemplate.Name must be provided to Apply") return nil, fmt.Errorf("resourceClaimTemplate.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClaimTemplate{} emptyResult := &v1alpha3.ResourceClaimTemplate{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimtemplatesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclaimtemplatesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClaimTemplate), err return obj.(*v1alpha3.ResourceClaimTemplate), err
} }

View File

@ -23,38 +23,38 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceClasses implements ResourceClassInterface // FakeResourceClasses implements ResourceClassInterface
type FakeResourceClasses struct { type FakeResourceClasses struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
} }
var resourceclassesResource = v1alpha2.SchemeGroupVersion.WithResource("resourceclasses") var resourceclassesResource = v1alpha3.SchemeGroupVersion.WithResource("resourceclasses")
var resourceclassesKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceClass") var resourceclassesKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceClass")
// Get takes name of the resourceClass, and returns the corresponding resourceClass object, and an error if there is any. // Get takes name of the resourceClass, and returns the corresponding resourceClass object, and an error if there is any.
func (c *FakeResourceClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClass, err error) { func (c *FakeResourceClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceClass, err error) {
emptyResult := &v1alpha2.ResourceClass{} emptyResult := &v1alpha3.ResourceClass{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootGetActionWithOptions(resourceclassesResource, name, options), emptyResult) Invokes(testing.NewRootGetActionWithOptions(resourceclassesResource, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClass), err return obj.(*v1alpha3.ResourceClass), err
} }
// List takes label and field selectors, and returns the list of ResourceClasses that match those selectors. // List takes label and field selectors, and returns the list of ResourceClasses that match those selectors.
func (c *FakeResourceClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClassList, err error) { func (c *FakeResourceClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceClassList, err error) {
emptyResult := &v1alpha2.ResourceClassList{} emptyResult := &v1alpha3.ResourceClassList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootListActionWithOptions(resourceclassesResource, resourceclassesKind, opts), emptyResult) Invokes(testing.NewRootListActionWithOptions(resourceclassesResource, resourceclassesKind, opts), emptyResult)
if obj == nil { if obj == nil {
@ -65,8 +65,8 @@ func (c *FakeResourceClasses) List(ctx context.Context, opts v1.ListOptions) (re
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceClassList{ListMeta: obj.(*v1alpha2.ResourceClassList).ListMeta} list := &v1alpha3.ResourceClassList{ListMeta: obj.(*v1alpha3.ResourceClassList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceClassList).Items { for _, item := range obj.(*v1alpha3.ResourceClassList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -81,31 +81,31 @@ func (c *FakeResourceClasses) Watch(ctx context.Context, opts v1.ListOptions) (w
} }
// Create takes the representation of a resourceClass and creates it. Returns the server's representation of the resourceClass, and an error, if there is any. // Create takes the representation of a resourceClass and creates it. Returns the server's representation of the resourceClass, and an error, if there is any.
func (c *FakeResourceClasses) Create(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.CreateOptions) (result *v1alpha2.ResourceClass, err error) { func (c *FakeResourceClasses) Create(ctx context.Context, resourceClass *v1alpha3.ResourceClass, opts v1.CreateOptions) (result *v1alpha3.ResourceClass, err error) {
emptyResult := &v1alpha2.ResourceClass{} emptyResult := &v1alpha3.ResourceClass{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootCreateActionWithOptions(resourceclassesResource, resourceClass, opts), emptyResult) Invokes(testing.NewRootCreateActionWithOptions(resourceclassesResource, resourceClass, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClass), err return obj.(*v1alpha3.ResourceClass), err
} }
// Update takes the representation of a resourceClass and updates it. Returns the server's representation of the resourceClass, and an error, if there is any. // Update takes the representation of a resourceClass and updates it. Returns the server's representation of the resourceClass, and an error, if there is any.
func (c *FakeResourceClasses) Update(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.UpdateOptions) (result *v1alpha2.ResourceClass, err error) { func (c *FakeResourceClasses) Update(ctx context.Context, resourceClass *v1alpha3.ResourceClass, opts v1.UpdateOptions) (result *v1alpha3.ResourceClass, err error) {
emptyResult := &v1alpha2.ResourceClass{} emptyResult := &v1alpha3.ResourceClass{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootUpdateActionWithOptions(resourceclassesResource, resourceClass, opts), emptyResult) Invokes(testing.NewRootUpdateActionWithOptions(resourceclassesResource, resourceClass, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClass), err return obj.(*v1alpha3.ResourceClass), err
} }
// Delete takes name of the resourceClass and deletes it. Returns an error if one occurs. // Delete takes name of the resourceClass and deletes it. Returns an error if one occurs.
func (c *FakeResourceClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewRootDeleteActionWithOptions(resourceclassesResource, name, opts), &v1alpha2.ResourceClass{}) Invokes(testing.NewRootDeleteActionWithOptions(resourceclassesResource, name, opts), &v1alpha3.ResourceClass{})
return err return err
} }
@ -113,23 +113,23 @@ func (c *FakeResourceClasses) Delete(ctx context.Context, name string, opts v1.D
func (c *FakeResourceClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewRootDeleteCollectionActionWithOptions(resourceclassesResource, opts, listOpts) action := testing.NewRootDeleteCollectionActionWithOptions(resourceclassesResource, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceClassList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceClassList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceClass. // Patch applies the patch and returns the patched resourceClass.
func (c *FakeResourceClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceClass, err error) { func (c *FakeResourceClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClass, err error) {
emptyResult := &v1alpha2.ResourceClass{} emptyResult := &v1alpha3.ResourceClass{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceclassesResource, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceclassesResource, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClass), err return obj.(*v1alpha3.ResourceClass), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceClass. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceClass.
func (c *FakeResourceClasses) Apply(ctx context.Context, resourceClass *resourcev1alpha2.ResourceClassApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClass, err error) { func (c *FakeResourceClasses) Apply(ctx context.Context, resourceClass *resourcev1alpha3.ResourceClassApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClass, err error) {
if resourceClass == nil { if resourceClass == nil {
return nil, fmt.Errorf("resourceClass provided to Apply must not be nil") return nil, fmt.Errorf("resourceClass provided to Apply must not be nil")
} }
@ -141,11 +141,11 @@ func (c *FakeResourceClasses) Apply(ctx context.Context, resourceClass *resource
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClass.Name must be provided to Apply") return nil, fmt.Errorf("resourceClass.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClass{} emptyResult := &v1alpha3.ResourceClass{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceclassesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceclassesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClass), err return obj.(*v1alpha3.ResourceClass), err
} }

View File

@ -23,40 +23,40 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceClassParameters implements ResourceClassParametersInterface // FakeResourceClassParameters implements ResourceClassParametersInterface
type FakeResourceClassParameters struct { type FakeResourceClassParameters struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
ns string ns string
} }
var resourceclassparametersResource = v1alpha2.SchemeGroupVersion.WithResource("resourceclassparameters") var resourceclassparametersResource = v1alpha3.SchemeGroupVersion.WithResource("resourceclassparameters")
var resourceclassparametersKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceClassParameters") var resourceclassparametersKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceClassParameters")
// Get takes name of the resourceClassParameters, and returns the corresponding resourceClassParameters object, and an error if there is any. // Get takes name of the resourceClassParameters, and returns the corresponding resourceClassParameters object, and an error if there is any.
func (c *FakeResourceClassParameters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceClassParameters, err error) { func (c *FakeResourceClassParameters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceClassParameters, err error) {
emptyResult := &v1alpha2.ResourceClassParameters{} emptyResult := &v1alpha3.ResourceClassParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(resourceclassparametersResource, c.ns, name, options), emptyResult) Invokes(testing.NewGetActionWithOptions(resourceclassparametersResource, c.ns, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClassParameters), err return obj.(*v1alpha3.ResourceClassParameters), err
} }
// List takes label and field selectors, and returns the list of ResourceClassParameters that match those selectors. // List takes label and field selectors, and returns the list of ResourceClassParameters that match those selectors.
func (c *FakeResourceClassParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClassParametersList, err error) { func (c *FakeResourceClassParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceClassParametersList, err error) {
emptyResult := &v1alpha2.ResourceClassParametersList{} emptyResult := &v1alpha3.ResourceClassParametersList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(resourceclassparametersResource, resourceclassparametersKind, c.ns, opts), emptyResult) Invokes(testing.NewListActionWithOptions(resourceclassparametersResource, resourceclassparametersKind, c.ns, opts), emptyResult)
@ -68,8 +68,8 @@ func (c *FakeResourceClassParameters) List(ctx context.Context, opts v1.ListOpti
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceClassParametersList{ListMeta: obj.(*v1alpha2.ResourceClassParametersList).ListMeta} list := &v1alpha3.ResourceClassParametersList{ListMeta: obj.(*v1alpha3.ResourceClassParametersList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceClassParametersList).Items { for _, item := range obj.(*v1alpha3.ResourceClassParametersList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -85,33 +85,33 @@ func (c *FakeResourceClassParameters) Watch(ctx context.Context, opts v1.ListOpt
} }
// Create takes the representation of a resourceClassParameters and creates it. Returns the server's representation of the resourceClassParameters, and an error, if there is any. // Create takes the representation of a resourceClassParameters and creates it. Returns the server's representation of the resourceClassParameters, and an error, if there is any.
func (c *FakeResourceClassParameters) Create(ctx context.Context, resourceClassParameters *v1alpha2.ResourceClassParameters, opts v1.CreateOptions) (result *v1alpha2.ResourceClassParameters, err error) { func (c *FakeResourceClassParameters) Create(ctx context.Context, resourceClassParameters *v1alpha3.ResourceClassParameters, opts v1.CreateOptions) (result *v1alpha3.ResourceClassParameters, err error) {
emptyResult := &v1alpha2.ResourceClassParameters{} emptyResult := &v1alpha3.ResourceClassParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(resourceclassparametersResource, c.ns, resourceClassParameters, opts), emptyResult) Invokes(testing.NewCreateActionWithOptions(resourceclassparametersResource, c.ns, resourceClassParameters, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClassParameters), err return obj.(*v1alpha3.ResourceClassParameters), err
} }
// Update takes the representation of a resourceClassParameters and updates it. Returns the server's representation of the resourceClassParameters, and an error, if there is any. // Update takes the representation of a resourceClassParameters and updates it. Returns the server's representation of the resourceClassParameters, and an error, if there is any.
func (c *FakeResourceClassParameters) Update(ctx context.Context, resourceClassParameters *v1alpha2.ResourceClassParameters, opts v1.UpdateOptions) (result *v1alpha2.ResourceClassParameters, err error) { func (c *FakeResourceClassParameters) Update(ctx context.Context, resourceClassParameters *v1alpha3.ResourceClassParameters, opts v1.UpdateOptions) (result *v1alpha3.ResourceClassParameters, err error) {
emptyResult := &v1alpha2.ResourceClassParameters{} emptyResult := &v1alpha3.ResourceClassParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(resourceclassparametersResource, c.ns, resourceClassParameters, opts), emptyResult) Invokes(testing.NewUpdateActionWithOptions(resourceclassparametersResource, c.ns, resourceClassParameters, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClassParameters), err return obj.(*v1alpha3.ResourceClassParameters), err
} }
// Delete takes name of the resourceClassParameters and deletes it. Returns an error if one occurs. // Delete takes name of the resourceClassParameters and deletes it. Returns an error if one occurs.
func (c *FakeResourceClassParameters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceClassParameters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(resourceclassparametersResource, c.ns, name, opts), &v1alpha2.ResourceClassParameters{}) Invokes(testing.NewDeleteActionWithOptions(resourceclassparametersResource, c.ns, name, opts), &v1alpha3.ResourceClassParameters{})
return err return err
} }
@ -120,24 +120,24 @@ func (c *FakeResourceClassParameters) Delete(ctx context.Context, name string, o
func (c *FakeResourceClassParameters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceClassParameters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(resourceclassparametersResource, c.ns, opts, listOpts) action := testing.NewDeleteCollectionActionWithOptions(resourceclassparametersResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceClassParametersList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceClassParametersList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceClassParameters. // Patch applies the patch and returns the patched resourceClassParameters.
func (c *FakeResourceClassParameters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceClassParameters, err error) { func (c *FakeResourceClassParameters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClassParameters, err error) {
emptyResult := &v1alpha2.ResourceClassParameters{} emptyResult := &v1alpha3.ResourceClassParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclassparametersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclassparametersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClassParameters), err return obj.(*v1alpha3.ResourceClassParameters), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceClassParameters. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceClassParameters.
func (c *FakeResourceClassParameters) Apply(ctx context.Context, resourceClassParameters *resourcev1alpha2.ResourceClassParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClassParameters, err error) { func (c *FakeResourceClassParameters) Apply(ctx context.Context, resourceClassParameters *resourcev1alpha3.ResourceClassParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClassParameters, err error) {
if resourceClassParameters == nil { if resourceClassParameters == nil {
return nil, fmt.Errorf("resourceClassParameters provided to Apply must not be nil") return nil, fmt.Errorf("resourceClassParameters provided to Apply must not be nil")
} }
@ -149,12 +149,12 @@ func (c *FakeResourceClassParameters) Apply(ctx context.Context, resourceClassPa
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceClassParameters.Name must be provided to Apply") return nil, fmt.Errorf("resourceClassParameters.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceClassParameters{} emptyResult := &v1alpha3.ResourceClassParameters{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclassparametersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewPatchSubresourceActionWithOptions(resourceclassparametersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceClassParameters), err return obj.(*v1alpha3.ResourceClassParameters), err
} }

View File

@ -23,38 +23,38 @@ import (
json "encoding/json" json "encoding/json"
"fmt" "fmt"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )
// FakeResourceSlices implements ResourceSliceInterface // FakeResourceSlices implements ResourceSliceInterface
type FakeResourceSlices struct { type FakeResourceSlices struct {
Fake *FakeResourceV1alpha2 Fake *FakeResourceV1alpha3
} }
var resourceslicesResource = v1alpha2.SchemeGroupVersion.WithResource("resourceslices") var resourceslicesResource = v1alpha3.SchemeGroupVersion.WithResource("resourceslices")
var resourceslicesKind = v1alpha2.SchemeGroupVersion.WithKind("ResourceSlice") var resourceslicesKind = v1alpha3.SchemeGroupVersion.WithKind("ResourceSlice")
// Get takes name of the resourceSlice, and returns the corresponding resourceSlice object, and an error if there is any. // Get takes name of the resourceSlice, and returns the corresponding resourceSlice object, and an error if there is any.
func (c *FakeResourceSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceSlice, err error) { func (c *FakeResourceSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ResourceSlice, err error) {
emptyResult := &v1alpha2.ResourceSlice{} emptyResult := &v1alpha3.ResourceSlice{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootGetActionWithOptions(resourceslicesResource, name, options), emptyResult) Invokes(testing.NewRootGetActionWithOptions(resourceslicesResource, name, options), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceSlice), err return obj.(*v1alpha3.ResourceSlice), err
} }
// List takes label and field selectors, and returns the list of ResourceSlices that match those selectors. // List takes label and field selectors, and returns the list of ResourceSlices that match those selectors.
func (c *FakeResourceSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceSliceList, err error) { func (c *FakeResourceSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ResourceSliceList, err error) {
emptyResult := &v1alpha2.ResourceSliceList{} emptyResult := &v1alpha3.ResourceSliceList{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootListActionWithOptions(resourceslicesResource, resourceslicesKind, opts), emptyResult) Invokes(testing.NewRootListActionWithOptions(resourceslicesResource, resourceslicesKind, opts), emptyResult)
if obj == nil { if obj == nil {
@ -65,8 +65,8 @@ func (c *FakeResourceSlices) List(ctx context.Context, opts v1.ListOptions) (res
if label == nil { if label == nil {
label = labels.Everything() label = labels.Everything()
} }
list := &v1alpha2.ResourceSliceList{ListMeta: obj.(*v1alpha2.ResourceSliceList).ListMeta} list := &v1alpha3.ResourceSliceList{ListMeta: obj.(*v1alpha3.ResourceSliceList).ListMeta}
for _, item := range obj.(*v1alpha2.ResourceSliceList).Items { for _, item := range obj.(*v1alpha3.ResourceSliceList).Items {
if label.Matches(labels.Set(item.Labels)) { if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item) list.Items = append(list.Items, item)
} }
@ -81,31 +81,31 @@ func (c *FakeResourceSlices) Watch(ctx context.Context, opts v1.ListOptions) (wa
} }
// Create takes the representation of a resourceSlice and creates it. Returns the server's representation of the resourceSlice, and an error, if there is any. // Create takes the representation of a resourceSlice and creates it. Returns the server's representation of the resourceSlice, and an error, if there is any.
func (c *FakeResourceSlices) Create(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.CreateOptions) (result *v1alpha2.ResourceSlice, err error) { func (c *FakeResourceSlices) Create(ctx context.Context, resourceSlice *v1alpha3.ResourceSlice, opts v1.CreateOptions) (result *v1alpha3.ResourceSlice, err error) {
emptyResult := &v1alpha2.ResourceSlice{} emptyResult := &v1alpha3.ResourceSlice{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootCreateActionWithOptions(resourceslicesResource, resourceSlice, opts), emptyResult) Invokes(testing.NewRootCreateActionWithOptions(resourceslicesResource, resourceSlice, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceSlice), err return obj.(*v1alpha3.ResourceSlice), err
} }
// Update takes the representation of a resourceSlice and updates it. Returns the server's representation of the resourceSlice, and an error, if there is any. // Update takes the representation of a resourceSlice and updates it. Returns the server's representation of the resourceSlice, and an error, if there is any.
func (c *FakeResourceSlices) Update(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.UpdateOptions) (result *v1alpha2.ResourceSlice, err error) { func (c *FakeResourceSlices) Update(ctx context.Context, resourceSlice *v1alpha3.ResourceSlice, opts v1.UpdateOptions) (result *v1alpha3.ResourceSlice, err error) {
emptyResult := &v1alpha2.ResourceSlice{} emptyResult := &v1alpha3.ResourceSlice{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootUpdateActionWithOptions(resourceslicesResource, resourceSlice, opts), emptyResult) Invokes(testing.NewRootUpdateActionWithOptions(resourceslicesResource, resourceSlice, opts), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceSlice), err return obj.(*v1alpha3.ResourceSlice), err
} }
// Delete takes name of the resourceSlice and deletes it. Returns an error if one occurs. // Delete takes name of the resourceSlice and deletes it. Returns an error if one occurs.
func (c *FakeResourceSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { func (c *FakeResourceSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(testing.NewRootDeleteActionWithOptions(resourceslicesResource, name, opts), &v1alpha2.ResourceSlice{}) Invokes(testing.NewRootDeleteActionWithOptions(resourceslicesResource, name, opts), &v1alpha3.ResourceSlice{})
return err return err
} }
@ -113,23 +113,23 @@ func (c *FakeResourceSlices) Delete(ctx context.Context, name string, opts v1.De
func (c *FakeResourceSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { func (c *FakeResourceSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewRootDeleteCollectionActionWithOptions(resourceslicesResource, opts, listOpts) action := testing.NewRootDeleteCollectionActionWithOptions(resourceslicesResource, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1alpha2.ResourceSliceList{}) _, err := c.Fake.Invokes(action, &v1alpha3.ResourceSliceList{})
return err return err
} }
// Patch applies the patch and returns the patched resourceSlice. // Patch applies the patch and returns the patched resourceSlice.
func (c *FakeResourceSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceSlice, err error) { func (c *FakeResourceSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceSlice, err error) {
emptyResult := &v1alpha2.ResourceSlice{} emptyResult := &v1alpha3.ResourceSlice{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceslicesResource, name, pt, data, opts, subresources...), emptyResult) Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceslicesResource, name, pt, data, opts, subresources...), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceSlice), err return obj.(*v1alpha3.ResourceSlice), err
} }
// Apply takes the given apply declarative configuration, applies it and returns the applied resourceSlice. // Apply takes the given apply declarative configuration, applies it and returns the applied resourceSlice.
func (c *FakeResourceSlices) Apply(ctx context.Context, resourceSlice *resourcev1alpha2.ResourceSliceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceSlice, err error) { func (c *FakeResourceSlices) Apply(ctx context.Context, resourceSlice *resourcev1alpha3.ResourceSliceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceSlice, err error) {
if resourceSlice == nil { if resourceSlice == nil {
return nil, fmt.Errorf("resourceSlice provided to Apply must not be nil") return nil, fmt.Errorf("resourceSlice provided to Apply must not be nil")
} }
@ -141,11 +141,11 @@ func (c *FakeResourceSlices) Apply(ctx context.Context, resourceSlice *resourcev
if name == nil { if name == nil {
return nil, fmt.Errorf("resourceSlice.Name must be provided to Apply") return nil, fmt.Errorf("resourceSlice.Name must be provided to Apply")
} }
emptyResult := &v1alpha2.ResourceSlice{} emptyResult := &v1alpha3.ResourceSlice{}
obj, err := c.Fake. obj, err := c.Fake.
Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceslicesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) Invokes(testing.NewRootPatchSubresourceActionWithOptions(resourceslicesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
if obj == nil { if obj == nil {
return emptyResult, err return emptyResult, err
} }
return obj.(*v1alpha2.ResourceSlice), err return obj.(*v1alpha3.ResourceSlice), err
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
type PodSchedulingContextExpansion interface{} type PodSchedulingContextExpansion interface{}

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,36 +38,36 @@ type PodSchedulingContextsGetter interface {
// PodSchedulingContextInterface has methods to work with PodSchedulingContext resources. // PodSchedulingContextInterface has methods to work with PodSchedulingContext resources.
type PodSchedulingContextInterface interface { type PodSchedulingContextInterface interface {
Create(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.CreateOptions) (*v1alpha2.PodSchedulingContext, error) Create(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.CreateOptions) (*v1alpha3.PodSchedulingContext, error)
Update(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.UpdateOptions) (*v1alpha2.PodSchedulingContext, error) Update(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.UpdateOptions) (*v1alpha3.PodSchedulingContext, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
UpdateStatus(ctx context.Context, podSchedulingContext *v1alpha2.PodSchedulingContext, opts v1.UpdateOptions) (*v1alpha2.PodSchedulingContext, error) UpdateStatus(ctx context.Context, podSchedulingContext *v1alpha3.PodSchedulingContext, opts v1.UpdateOptions) (*v1alpha3.PodSchedulingContext, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.PodSchedulingContext, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.PodSchedulingContext, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.PodSchedulingContextList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.PodSchedulingContextList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.PodSchedulingContext, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.PodSchedulingContext, err error)
Apply(ctx context.Context, podSchedulingContext *resourcev1alpha2.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.PodSchedulingContext, err error) Apply(ctx context.Context, podSchedulingContext *resourcev1alpha3.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.PodSchedulingContext, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
ApplyStatus(ctx context.Context, podSchedulingContext *resourcev1alpha2.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.PodSchedulingContext, err error) ApplyStatus(ctx context.Context, podSchedulingContext *resourcev1alpha3.PodSchedulingContextApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.PodSchedulingContext, err error)
PodSchedulingContextExpansion PodSchedulingContextExpansion
} }
// podSchedulingContexts implements PodSchedulingContextInterface // podSchedulingContexts implements PodSchedulingContextInterface
type podSchedulingContexts struct { type podSchedulingContexts struct {
*gentype.ClientWithListAndApply[*v1alpha2.PodSchedulingContext, *v1alpha2.PodSchedulingContextList, *resourcev1alpha2.PodSchedulingContextApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.PodSchedulingContext, *v1alpha3.PodSchedulingContextList, *resourcev1alpha3.PodSchedulingContextApplyConfiguration]
} }
// newPodSchedulingContexts returns a PodSchedulingContexts // newPodSchedulingContexts returns a PodSchedulingContexts
func newPodSchedulingContexts(c *ResourceV1alpha2Client, namespace string) *podSchedulingContexts { func newPodSchedulingContexts(c *ResourceV1alpha3Client, namespace string) *podSchedulingContexts {
return &podSchedulingContexts{ return &podSchedulingContexts{
gentype.NewClientWithListAndApply[*v1alpha2.PodSchedulingContext, *v1alpha2.PodSchedulingContextList, *resourcev1alpha2.PodSchedulingContextApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.PodSchedulingContext, *v1alpha3.PodSchedulingContextList, *resourcev1alpha3.PodSchedulingContextApplyConfiguration](
"podschedulingcontexts", "podschedulingcontexts",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1alpha2.PodSchedulingContext { return &v1alpha2.PodSchedulingContext{} }, func() *v1alpha3.PodSchedulingContext { return &v1alpha3.PodSchedulingContext{} },
func() *v1alpha2.PodSchedulingContextList { return &v1alpha2.PodSchedulingContextList{} }), func() *v1alpha3.PodSchedulingContextList { return &v1alpha3.PodSchedulingContextList{} }),
} }
} }

View File

@ -16,17 +16,17 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"net/http" "net/http"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/kubernetes/scheme"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
) )
type ResourceV1alpha2Interface interface { type ResourceV1alpha3Interface interface {
RESTClient() rest.Interface RESTClient() rest.Interface
PodSchedulingContextsGetter PodSchedulingContextsGetter
ResourceClaimsGetter ResourceClaimsGetter
@ -37,43 +37,43 @@ type ResourceV1alpha2Interface interface {
ResourceSlicesGetter ResourceSlicesGetter
} }
// ResourceV1alpha2Client is used to interact with features provided by the resource.k8s.io group. // ResourceV1alpha3Client is used to interact with features provided by the resource.k8s.io group.
type ResourceV1alpha2Client struct { type ResourceV1alpha3Client struct {
restClient rest.Interface restClient rest.Interface
} }
func (c *ResourceV1alpha2Client) PodSchedulingContexts(namespace string) PodSchedulingContextInterface { func (c *ResourceV1alpha3Client) PodSchedulingContexts(namespace string) PodSchedulingContextInterface {
return newPodSchedulingContexts(c, namespace) return newPodSchedulingContexts(c, namespace)
} }
func (c *ResourceV1alpha2Client) ResourceClaims(namespace string) ResourceClaimInterface { func (c *ResourceV1alpha3Client) ResourceClaims(namespace string) ResourceClaimInterface {
return newResourceClaims(c, namespace) return newResourceClaims(c, namespace)
} }
func (c *ResourceV1alpha2Client) ResourceClaimParameters(namespace string) ResourceClaimParametersInterface { func (c *ResourceV1alpha3Client) ResourceClaimParameters(namespace string) ResourceClaimParametersInterface {
return newResourceClaimParameters(c, namespace) return newResourceClaimParameters(c, namespace)
} }
func (c *ResourceV1alpha2Client) ResourceClaimTemplates(namespace string) ResourceClaimTemplateInterface { func (c *ResourceV1alpha3Client) ResourceClaimTemplates(namespace string) ResourceClaimTemplateInterface {
return newResourceClaimTemplates(c, namespace) return newResourceClaimTemplates(c, namespace)
} }
func (c *ResourceV1alpha2Client) ResourceClasses() ResourceClassInterface { func (c *ResourceV1alpha3Client) ResourceClasses() ResourceClassInterface {
return newResourceClasses(c) return newResourceClasses(c)
} }
func (c *ResourceV1alpha2Client) ResourceClassParameters(namespace string) ResourceClassParametersInterface { func (c *ResourceV1alpha3Client) ResourceClassParameters(namespace string) ResourceClassParametersInterface {
return newResourceClassParameters(c, namespace) return newResourceClassParameters(c, namespace)
} }
func (c *ResourceV1alpha2Client) ResourceSlices() ResourceSliceInterface { func (c *ResourceV1alpha3Client) ResourceSlices() ResourceSliceInterface {
return newResourceSlices(c) return newResourceSlices(c)
} }
// NewForConfig creates a new ResourceV1alpha2Client for the given config. // NewForConfig creates a new ResourceV1alpha3Client for the given config.
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
// where httpClient was generated with rest.HTTPClientFor(c). // where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfig(c *rest.Config) (*ResourceV1alpha2Client, error) { func NewForConfig(c *rest.Config) (*ResourceV1alpha3Client, error) {
config := *c config := *c
if err := setConfigDefaults(&config); err != nil { if err := setConfigDefaults(&config); err != nil {
return nil, err return nil, err
@ -85,9 +85,9 @@ func NewForConfig(c *rest.Config) (*ResourceV1alpha2Client, error) {
return NewForConfigAndClient(&config, httpClient) return NewForConfigAndClient(&config, httpClient)
} }
// NewForConfigAndClient creates a new ResourceV1alpha2Client for the given config and http client. // NewForConfigAndClient creates a new ResourceV1alpha3Client for the given config and http client.
// Note the http client provided takes precedence over the configured transport values. // Note the http client provided takes precedence over the configured transport values.
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ResourceV1alpha2Client, error) { func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ResourceV1alpha3Client, error) {
config := *c config := *c
if err := setConfigDefaults(&config); err != nil { if err := setConfigDefaults(&config); err != nil {
return nil, err return nil, err
@ -96,12 +96,12 @@ func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ResourceV1alpha2Cli
if err != nil { if err != nil {
return nil, err return nil, err
} }
return &ResourceV1alpha2Client{client}, nil return &ResourceV1alpha3Client{client}, nil
} }
// NewForConfigOrDie creates a new ResourceV1alpha2Client for the given config and // NewForConfigOrDie creates a new ResourceV1alpha3Client for the given config and
// panics if there is an error in the config. // panics if there is an error in the config.
func NewForConfigOrDie(c *rest.Config) *ResourceV1alpha2Client { func NewForConfigOrDie(c *rest.Config) *ResourceV1alpha3Client {
client, err := NewForConfig(c) client, err := NewForConfig(c)
if err != nil { if err != nil {
panic(err) panic(err)
@ -109,13 +109,13 @@ func NewForConfigOrDie(c *rest.Config) *ResourceV1alpha2Client {
return client return client
} }
// New creates a new ResourceV1alpha2Client for the given RESTClient. // New creates a new ResourceV1alpha3Client for the given RESTClient.
func New(c rest.Interface) *ResourceV1alpha2Client { func New(c rest.Interface) *ResourceV1alpha3Client {
return &ResourceV1alpha2Client{c} return &ResourceV1alpha3Client{c}
} }
func setConfigDefaults(config *rest.Config) error { func setConfigDefaults(config *rest.Config) error {
gv := v1alpha2.SchemeGroupVersion gv := v1alpha3.SchemeGroupVersion
config.GroupVersion = &gv config.GroupVersion = &gv
config.APIPath = "/apis" config.APIPath = "/apis"
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
@ -129,7 +129,7 @@ func setConfigDefaults(config *rest.Config) error {
// RESTClient returns a RESTClient that is used to communicate // RESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation. // with API server by this client implementation.
func (c *ResourceV1alpha2Client) RESTClient() rest.Interface { func (c *ResourceV1alpha3Client) RESTClient() rest.Interface {
if c == nil { if c == nil {
return nil return nil
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,36 +38,36 @@ type ResourceClaimsGetter interface {
// ResourceClaimInterface has methods to work with ResourceClaim resources. // ResourceClaimInterface has methods to work with ResourceClaim resources.
type ResourceClaimInterface interface { type ResourceClaimInterface interface {
Create(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.CreateOptions) (*v1alpha2.ResourceClaim, error) Create(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.CreateOptions) (*v1alpha3.ResourceClaim, error)
Update(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (*v1alpha2.ResourceClaim, error) Update(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.UpdateOptions) (*v1alpha3.ResourceClaim, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
UpdateStatus(ctx context.Context, resourceClaim *v1alpha2.ResourceClaim, opts v1.UpdateOptions) (*v1alpha2.ResourceClaim, error) UpdateStatus(ctx context.Context, resourceClaim *v1alpha3.ResourceClaim, opts v1.UpdateOptions) (*v1alpha3.ResourceClaim, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceClaim, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceClaim, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceClaimList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceClaimList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceClaim, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaim, err error)
Apply(ctx context.Context, resourceClaim *resourcev1alpha2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaim, err error) Apply(ctx context.Context, resourceClaim *resourcev1alpha3.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaim, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
ApplyStatus(ctx context.Context, resourceClaim *resourcev1alpha2.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaim, err error) ApplyStatus(ctx context.Context, resourceClaim *resourcev1alpha3.ResourceClaimApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaim, err error)
ResourceClaimExpansion ResourceClaimExpansion
} }
// resourceClaims implements ResourceClaimInterface // resourceClaims implements ResourceClaimInterface
type resourceClaims struct { type resourceClaims struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceClaim, *v1alpha2.ResourceClaimList, *resourcev1alpha2.ResourceClaimApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceClaim, *v1alpha3.ResourceClaimList, *resourcev1alpha3.ResourceClaimApplyConfiguration]
} }
// newResourceClaims returns a ResourceClaims // newResourceClaims returns a ResourceClaims
func newResourceClaims(c *ResourceV1alpha2Client, namespace string) *resourceClaims { func newResourceClaims(c *ResourceV1alpha3Client, namespace string) *resourceClaims {
return &resourceClaims{ return &resourceClaims{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceClaim, *v1alpha2.ResourceClaimList, *resourcev1alpha2.ResourceClaimApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceClaim, *v1alpha3.ResourceClaimList, *resourcev1alpha3.ResourceClaimApplyConfiguration](
"resourceclaims", "resourceclaims",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1alpha2.ResourceClaim { return &v1alpha2.ResourceClaim{} }, func() *v1alpha3.ResourceClaim { return &v1alpha3.ResourceClaim{} },
func() *v1alpha2.ResourceClaimList { return &v1alpha2.ResourceClaimList{} }), func() *v1alpha3.ResourceClaimList { return &v1alpha3.ResourceClaimList{} }),
} }
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,32 +38,32 @@ type ResourceClaimParametersGetter interface {
// ResourceClaimParametersInterface has methods to work with ResourceClaimParameters resources. // ResourceClaimParametersInterface has methods to work with ResourceClaimParameters resources.
type ResourceClaimParametersInterface interface { type ResourceClaimParametersInterface interface {
Create(ctx context.Context, resourceClaimParameters *v1alpha2.ResourceClaimParameters, opts v1.CreateOptions) (*v1alpha2.ResourceClaimParameters, error) Create(ctx context.Context, resourceClaimParameters *v1alpha3.ResourceClaimParameters, opts v1.CreateOptions) (*v1alpha3.ResourceClaimParameters, error)
Update(ctx context.Context, resourceClaimParameters *v1alpha2.ResourceClaimParameters, opts v1.UpdateOptions) (*v1alpha2.ResourceClaimParameters, error) Update(ctx context.Context, resourceClaimParameters *v1alpha3.ResourceClaimParameters, opts v1.UpdateOptions) (*v1alpha3.ResourceClaimParameters, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceClaimParameters, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceClaimParameters, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceClaimParametersList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceClaimParametersList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceClaimParameters, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaimParameters, err error)
Apply(ctx context.Context, resourceClaimParameters *resourcev1alpha2.ResourceClaimParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaimParameters, err error) Apply(ctx context.Context, resourceClaimParameters *resourcev1alpha3.ResourceClaimParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaimParameters, err error)
ResourceClaimParametersExpansion ResourceClaimParametersExpansion
} }
// resourceClaimParameters implements ResourceClaimParametersInterface // resourceClaimParameters implements ResourceClaimParametersInterface
type resourceClaimParameters struct { type resourceClaimParameters struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceClaimParameters, *v1alpha2.ResourceClaimParametersList, *resourcev1alpha2.ResourceClaimParametersApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceClaimParameters, *v1alpha3.ResourceClaimParametersList, *resourcev1alpha3.ResourceClaimParametersApplyConfiguration]
} }
// newResourceClaimParameters returns a ResourceClaimParameters // newResourceClaimParameters returns a ResourceClaimParameters
func newResourceClaimParameters(c *ResourceV1alpha2Client, namespace string) *resourceClaimParameters { func newResourceClaimParameters(c *ResourceV1alpha3Client, namespace string) *resourceClaimParameters {
return &resourceClaimParameters{ return &resourceClaimParameters{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceClaimParameters, *v1alpha2.ResourceClaimParametersList, *resourcev1alpha2.ResourceClaimParametersApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceClaimParameters, *v1alpha3.ResourceClaimParametersList, *resourcev1alpha3.ResourceClaimParametersApplyConfiguration](
"resourceclaimparameters", "resourceclaimparameters",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1alpha2.ResourceClaimParameters { return &v1alpha2.ResourceClaimParameters{} }, func() *v1alpha3.ResourceClaimParameters { return &v1alpha3.ResourceClaimParameters{} },
func() *v1alpha2.ResourceClaimParametersList { return &v1alpha2.ResourceClaimParametersList{} }), func() *v1alpha3.ResourceClaimParametersList { return &v1alpha3.ResourceClaimParametersList{} }),
} }
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,32 +38,32 @@ type ResourceClaimTemplatesGetter interface {
// ResourceClaimTemplateInterface has methods to work with ResourceClaimTemplate resources. // ResourceClaimTemplateInterface has methods to work with ResourceClaimTemplate resources.
type ResourceClaimTemplateInterface interface { type ResourceClaimTemplateInterface interface {
Create(ctx context.Context, resourceClaimTemplate *v1alpha2.ResourceClaimTemplate, opts v1.CreateOptions) (*v1alpha2.ResourceClaimTemplate, error) Create(ctx context.Context, resourceClaimTemplate *v1alpha3.ResourceClaimTemplate, opts v1.CreateOptions) (*v1alpha3.ResourceClaimTemplate, error)
Update(ctx context.Context, resourceClaimTemplate *v1alpha2.ResourceClaimTemplate, opts v1.UpdateOptions) (*v1alpha2.ResourceClaimTemplate, error) Update(ctx context.Context, resourceClaimTemplate *v1alpha3.ResourceClaimTemplate, opts v1.UpdateOptions) (*v1alpha3.ResourceClaimTemplate, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceClaimTemplate, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceClaimTemplate, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceClaimTemplateList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceClaimTemplateList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceClaimTemplate, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClaimTemplate, err error)
Apply(ctx context.Context, resourceClaimTemplate *resourcev1alpha2.ResourceClaimTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClaimTemplate, err error) Apply(ctx context.Context, resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClaimTemplate, err error)
ResourceClaimTemplateExpansion ResourceClaimTemplateExpansion
} }
// resourceClaimTemplates implements ResourceClaimTemplateInterface // resourceClaimTemplates implements ResourceClaimTemplateInterface
type resourceClaimTemplates struct { type resourceClaimTemplates struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceClaimTemplate, *v1alpha2.ResourceClaimTemplateList, *resourcev1alpha2.ResourceClaimTemplateApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceClaimTemplate, *v1alpha3.ResourceClaimTemplateList, *resourcev1alpha3.ResourceClaimTemplateApplyConfiguration]
} }
// newResourceClaimTemplates returns a ResourceClaimTemplates // newResourceClaimTemplates returns a ResourceClaimTemplates
func newResourceClaimTemplates(c *ResourceV1alpha2Client, namespace string) *resourceClaimTemplates { func newResourceClaimTemplates(c *ResourceV1alpha3Client, namespace string) *resourceClaimTemplates {
return &resourceClaimTemplates{ return &resourceClaimTemplates{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceClaimTemplate, *v1alpha2.ResourceClaimTemplateList, *resourcev1alpha2.ResourceClaimTemplateApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceClaimTemplate, *v1alpha3.ResourceClaimTemplateList, *resourcev1alpha3.ResourceClaimTemplateApplyConfiguration](
"resourceclaimtemplates", "resourceclaimtemplates",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1alpha2.ResourceClaimTemplate { return &v1alpha2.ResourceClaimTemplate{} }, func() *v1alpha3.ResourceClaimTemplate { return &v1alpha3.ResourceClaimTemplate{} },
func() *v1alpha2.ResourceClaimTemplateList { return &v1alpha2.ResourceClaimTemplateList{} }), func() *v1alpha3.ResourceClaimTemplateList { return &v1alpha3.ResourceClaimTemplateList{} }),
} }
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,32 +38,32 @@ type ResourceClassesGetter interface {
// ResourceClassInterface has methods to work with ResourceClass resources. // ResourceClassInterface has methods to work with ResourceClass resources.
type ResourceClassInterface interface { type ResourceClassInterface interface {
Create(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.CreateOptions) (*v1alpha2.ResourceClass, error) Create(ctx context.Context, resourceClass *v1alpha3.ResourceClass, opts v1.CreateOptions) (*v1alpha3.ResourceClass, error)
Update(ctx context.Context, resourceClass *v1alpha2.ResourceClass, opts v1.UpdateOptions) (*v1alpha2.ResourceClass, error) Update(ctx context.Context, resourceClass *v1alpha3.ResourceClass, opts v1.UpdateOptions) (*v1alpha3.ResourceClass, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceClass, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceClass, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceClassList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceClassList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceClass, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClass, err error)
Apply(ctx context.Context, resourceClass *resourcev1alpha2.ResourceClassApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClass, err error) Apply(ctx context.Context, resourceClass *resourcev1alpha3.ResourceClassApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClass, err error)
ResourceClassExpansion ResourceClassExpansion
} }
// resourceClasses implements ResourceClassInterface // resourceClasses implements ResourceClassInterface
type resourceClasses struct { type resourceClasses struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceClass, *v1alpha2.ResourceClassList, *resourcev1alpha2.ResourceClassApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceClass, *v1alpha3.ResourceClassList, *resourcev1alpha3.ResourceClassApplyConfiguration]
} }
// newResourceClasses returns a ResourceClasses // newResourceClasses returns a ResourceClasses
func newResourceClasses(c *ResourceV1alpha2Client) *resourceClasses { func newResourceClasses(c *ResourceV1alpha3Client) *resourceClasses {
return &resourceClasses{ return &resourceClasses{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceClass, *v1alpha2.ResourceClassList, *resourcev1alpha2.ResourceClassApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceClass, *v1alpha3.ResourceClassList, *resourcev1alpha3.ResourceClassApplyConfiguration](
"resourceclasses", "resourceclasses",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
"", "",
func() *v1alpha2.ResourceClass { return &v1alpha2.ResourceClass{} }, func() *v1alpha3.ResourceClass { return &v1alpha3.ResourceClass{} },
func() *v1alpha2.ResourceClassList { return &v1alpha2.ResourceClassList{} }), func() *v1alpha3.ResourceClassList { return &v1alpha3.ResourceClassList{} }),
} }
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,32 +38,32 @@ type ResourceClassParametersGetter interface {
// ResourceClassParametersInterface has methods to work with ResourceClassParameters resources. // ResourceClassParametersInterface has methods to work with ResourceClassParameters resources.
type ResourceClassParametersInterface interface { type ResourceClassParametersInterface interface {
Create(ctx context.Context, resourceClassParameters *v1alpha2.ResourceClassParameters, opts v1.CreateOptions) (*v1alpha2.ResourceClassParameters, error) Create(ctx context.Context, resourceClassParameters *v1alpha3.ResourceClassParameters, opts v1.CreateOptions) (*v1alpha3.ResourceClassParameters, error)
Update(ctx context.Context, resourceClassParameters *v1alpha2.ResourceClassParameters, opts v1.UpdateOptions) (*v1alpha2.ResourceClassParameters, error) Update(ctx context.Context, resourceClassParameters *v1alpha3.ResourceClassParameters, opts v1.UpdateOptions) (*v1alpha3.ResourceClassParameters, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceClassParameters, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceClassParameters, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceClassParametersList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceClassParametersList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceClassParameters, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceClassParameters, err error)
Apply(ctx context.Context, resourceClassParameters *resourcev1alpha2.ResourceClassParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceClassParameters, err error) Apply(ctx context.Context, resourceClassParameters *resourcev1alpha3.ResourceClassParametersApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceClassParameters, err error)
ResourceClassParametersExpansion ResourceClassParametersExpansion
} }
// resourceClassParameters implements ResourceClassParametersInterface // resourceClassParameters implements ResourceClassParametersInterface
type resourceClassParameters struct { type resourceClassParameters struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceClassParameters, *v1alpha2.ResourceClassParametersList, *resourcev1alpha2.ResourceClassParametersApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceClassParameters, *v1alpha3.ResourceClassParametersList, *resourcev1alpha3.ResourceClassParametersApplyConfiguration]
} }
// newResourceClassParameters returns a ResourceClassParameters // newResourceClassParameters returns a ResourceClassParameters
func newResourceClassParameters(c *ResourceV1alpha2Client, namespace string) *resourceClassParameters { func newResourceClassParameters(c *ResourceV1alpha3Client, namespace string) *resourceClassParameters {
return &resourceClassParameters{ return &resourceClassParameters{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceClassParameters, *v1alpha2.ResourceClassParametersList, *resourcev1alpha2.ResourceClassParametersApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceClassParameters, *v1alpha3.ResourceClassParametersList, *resourcev1alpha3.ResourceClassParametersApplyConfiguration](
"resourceclassparameters", "resourceclassparameters",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
namespace, namespace,
func() *v1alpha2.ResourceClassParameters { return &v1alpha2.ResourceClassParameters{} }, func() *v1alpha3.ResourceClassParameters { return &v1alpha3.ResourceClassParameters{} },
func() *v1alpha2.ResourceClassParametersList { return &v1alpha2.ResourceClassParametersList{} }), func() *v1alpha3.ResourceClassParametersList { return &v1alpha3.ResourceClassParametersList{} }),
} }
} }

View File

@ -16,16 +16,16 @@ limitations under the License.
// Code generated by client-gen. DO NOT EDIT. // Code generated by client-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
"context" "context"
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"
resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" resourcev1alpha3 "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
gentype "k8s.io/client-go/gentype" gentype "k8s.io/client-go/gentype"
scheme "k8s.io/client-go/kubernetes/scheme" scheme "k8s.io/client-go/kubernetes/scheme"
) )
@ -38,32 +38,32 @@ type ResourceSlicesGetter interface {
// ResourceSliceInterface has methods to work with ResourceSlice resources. // ResourceSliceInterface has methods to work with ResourceSlice resources.
type ResourceSliceInterface interface { type ResourceSliceInterface interface {
Create(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.CreateOptions) (*v1alpha2.ResourceSlice, error) Create(ctx context.Context, resourceSlice *v1alpha3.ResourceSlice, opts v1.CreateOptions) (*v1alpha3.ResourceSlice, error)
Update(ctx context.Context, resourceSlice *v1alpha2.ResourceSlice, opts v1.UpdateOptions) (*v1alpha2.ResourceSlice, error) Update(ctx context.Context, resourceSlice *v1alpha3.ResourceSlice, opts v1.UpdateOptions) (*v1alpha3.ResourceSlice, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ResourceSlice, error) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha3.ResourceSlice, error)
List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ResourceSliceList, error) List(ctx context.Context, opts v1.ListOptions) (*v1alpha3.ResourceSliceList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, 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 *v1alpha2.ResourceSlice, err error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha3.ResourceSlice, err error)
Apply(ctx context.Context, resourceSlice *resourcev1alpha2.ResourceSliceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.ResourceSlice, err error) Apply(ctx context.Context, resourceSlice *resourcev1alpha3.ResourceSliceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ResourceSlice, err error)
ResourceSliceExpansion ResourceSliceExpansion
} }
// resourceSlices implements ResourceSliceInterface // resourceSlices implements ResourceSliceInterface
type resourceSlices struct { type resourceSlices struct {
*gentype.ClientWithListAndApply[*v1alpha2.ResourceSlice, *v1alpha2.ResourceSliceList, *resourcev1alpha2.ResourceSliceApplyConfiguration] *gentype.ClientWithListAndApply[*v1alpha3.ResourceSlice, *v1alpha3.ResourceSliceList, *resourcev1alpha3.ResourceSliceApplyConfiguration]
} }
// newResourceSlices returns a ResourceSlices // newResourceSlices returns a ResourceSlices
func newResourceSlices(c *ResourceV1alpha2Client) *resourceSlices { func newResourceSlices(c *ResourceV1alpha3Client) *resourceSlices {
return &resourceSlices{ return &resourceSlices{
gentype.NewClientWithListAndApply[*v1alpha2.ResourceSlice, *v1alpha2.ResourceSliceList, *resourcev1alpha2.ResourceSliceApplyConfiguration]( gentype.NewClientWithListAndApply[*v1alpha3.ResourceSlice, *v1alpha3.ResourceSliceList, *resourcev1alpha3.ResourceSliceApplyConfiguration](
"resourceslices", "resourceslices",
c.RESTClient(), c.RESTClient(),
scheme.ParameterCodec, scheme.ParameterCodec,
"", "",
func() *v1alpha2.ResourceSlice { return &v1alpha2.ResourceSlice{} }, func() *v1alpha3.ResourceSlice { return &v1alpha3.ResourceSlice{} },
func() *v1alpha2.ResourceSliceList { return &v1alpha2.ResourceSliceList{} }), func() *v1alpha3.ResourceSliceList { return &v1alpha3.ResourceSliceList{} }),
} }
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
// PodSchedulingContextListerExpansion allows custom methods to be added to // PodSchedulingContextListerExpansion allows custom methods to be added to
// PodSchedulingContextLister. // PodSchedulingContextLister.

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,7 +30,7 @@ import (
type PodSchedulingContextLister interface { type PodSchedulingContextLister interface {
// List lists all PodSchedulingContexts in the indexer. // List lists all PodSchedulingContexts in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.PodSchedulingContext, err error) List(selector labels.Selector) (ret []*v1alpha3.PodSchedulingContext, err error)
// PodSchedulingContexts returns an object that can list and get PodSchedulingContexts. // PodSchedulingContexts returns an object that can list and get PodSchedulingContexts.
PodSchedulingContexts(namespace string) PodSchedulingContextNamespaceLister PodSchedulingContexts(namespace string) PodSchedulingContextNamespaceLister
PodSchedulingContextListerExpansion PodSchedulingContextListerExpansion
@ -38,17 +38,17 @@ type PodSchedulingContextLister interface {
// podSchedulingContextLister implements the PodSchedulingContextLister interface. // podSchedulingContextLister implements the PodSchedulingContextLister interface.
type podSchedulingContextLister struct { type podSchedulingContextLister struct {
listers.ResourceIndexer[*v1alpha2.PodSchedulingContext] listers.ResourceIndexer[*v1alpha3.PodSchedulingContext]
} }
// NewPodSchedulingContextLister returns a new PodSchedulingContextLister. // NewPodSchedulingContextLister returns a new PodSchedulingContextLister.
func NewPodSchedulingContextLister(indexer cache.Indexer) PodSchedulingContextLister { func NewPodSchedulingContextLister(indexer cache.Indexer) PodSchedulingContextLister {
return &podSchedulingContextLister{listers.New[*v1alpha2.PodSchedulingContext](indexer, v1alpha2.Resource("podschedulingcontext"))} return &podSchedulingContextLister{listers.New[*v1alpha3.PodSchedulingContext](indexer, v1alpha3.Resource("podschedulingcontext"))}
} }
// PodSchedulingContexts returns an object that can list and get PodSchedulingContexts. // PodSchedulingContexts returns an object that can list and get PodSchedulingContexts.
func (s *podSchedulingContextLister) PodSchedulingContexts(namespace string) PodSchedulingContextNamespaceLister { func (s *podSchedulingContextLister) PodSchedulingContexts(namespace string) PodSchedulingContextNamespaceLister {
return podSchedulingContextNamespaceLister{listers.NewNamespaced[*v1alpha2.PodSchedulingContext](s.ResourceIndexer, namespace)} return podSchedulingContextNamespaceLister{listers.NewNamespaced[*v1alpha3.PodSchedulingContext](s.ResourceIndexer, namespace)}
} }
// PodSchedulingContextNamespaceLister helps list and get PodSchedulingContexts. // PodSchedulingContextNamespaceLister helps list and get PodSchedulingContexts.
@ -56,15 +56,15 @@ func (s *podSchedulingContextLister) PodSchedulingContexts(namespace string) Pod
type PodSchedulingContextNamespaceLister interface { type PodSchedulingContextNamespaceLister interface {
// List lists all PodSchedulingContexts in the indexer for a given namespace. // List lists all PodSchedulingContexts in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.PodSchedulingContext, err error) List(selector labels.Selector) (ret []*v1alpha3.PodSchedulingContext, err error)
// Get retrieves the PodSchedulingContext from the indexer for a given namespace and name. // Get retrieves the PodSchedulingContext from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.PodSchedulingContext, error) Get(name string) (*v1alpha3.PodSchedulingContext, error)
PodSchedulingContextNamespaceListerExpansion PodSchedulingContextNamespaceListerExpansion
} }
// podSchedulingContextNamespaceLister implements the PodSchedulingContextNamespaceLister // podSchedulingContextNamespaceLister implements the PodSchedulingContextNamespaceLister
// interface. // interface.
type podSchedulingContextNamespaceLister struct { type podSchedulingContextNamespaceLister struct {
listers.ResourceIndexer[*v1alpha2.PodSchedulingContext] listers.ResourceIndexer[*v1alpha3.PodSchedulingContext]
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,7 +30,7 @@ import (
type ResourceClaimLister interface { type ResourceClaimLister interface {
// List lists all ResourceClaims in the indexer. // List lists all ResourceClaims in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaim, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaim, err error)
// ResourceClaims returns an object that can list and get ResourceClaims. // ResourceClaims returns an object that can list and get ResourceClaims.
ResourceClaims(namespace string) ResourceClaimNamespaceLister ResourceClaims(namespace string) ResourceClaimNamespaceLister
ResourceClaimListerExpansion ResourceClaimListerExpansion
@ -38,17 +38,17 @@ type ResourceClaimLister interface {
// resourceClaimLister implements the ResourceClaimLister interface. // resourceClaimLister implements the ResourceClaimLister interface.
type resourceClaimLister struct { type resourceClaimLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaim] listers.ResourceIndexer[*v1alpha3.ResourceClaim]
} }
// NewResourceClaimLister returns a new ResourceClaimLister. // NewResourceClaimLister returns a new ResourceClaimLister.
func NewResourceClaimLister(indexer cache.Indexer) ResourceClaimLister { func NewResourceClaimLister(indexer cache.Indexer) ResourceClaimLister {
return &resourceClaimLister{listers.New[*v1alpha2.ResourceClaim](indexer, v1alpha2.Resource("resourceclaim"))} return &resourceClaimLister{listers.New[*v1alpha3.ResourceClaim](indexer, v1alpha3.Resource("resourceclaim"))}
} }
// ResourceClaims returns an object that can list and get ResourceClaims. // ResourceClaims returns an object that can list and get ResourceClaims.
func (s *resourceClaimLister) ResourceClaims(namespace string) ResourceClaimNamespaceLister { func (s *resourceClaimLister) ResourceClaims(namespace string) ResourceClaimNamespaceLister {
return resourceClaimNamespaceLister{listers.NewNamespaced[*v1alpha2.ResourceClaim](s.ResourceIndexer, namespace)} return resourceClaimNamespaceLister{listers.NewNamespaced[*v1alpha3.ResourceClaim](s.ResourceIndexer, namespace)}
} }
// ResourceClaimNamespaceLister helps list and get ResourceClaims. // ResourceClaimNamespaceLister helps list and get ResourceClaims.
@ -56,15 +56,15 @@ func (s *resourceClaimLister) ResourceClaims(namespace string) ResourceClaimName
type ResourceClaimNamespaceLister interface { type ResourceClaimNamespaceLister interface {
// List lists all ResourceClaims in the indexer for a given namespace. // List lists all ResourceClaims in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaim, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaim, err error)
// Get retrieves the ResourceClaim from the indexer for a given namespace and name. // Get retrieves the ResourceClaim from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceClaim, error) Get(name string) (*v1alpha3.ResourceClaim, error)
ResourceClaimNamespaceListerExpansion ResourceClaimNamespaceListerExpansion
} }
// resourceClaimNamespaceLister implements the ResourceClaimNamespaceLister // resourceClaimNamespaceLister implements the ResourceClaimNamespaceLister
// interface. // interface.
type resourceClaimNamespaceLister struct { type resourceClaimNamespaceLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaim] listers.ResourceIndexer[*v1alpha3.ResourceClaim]
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,7 +30,7 @@ import (
type ResourceClaimParametersLister interface { type ResourceClaimParametersLister interface {
// List lists all ResourceClaimParameters in the indexer. // List lists all ResourceClaimParameters in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaimParameters, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaimParameters, err error)
// ResourceClaimParameters returns an object that can list and get ResourceClaimParameters. // ResourceClaimParameters returns an object that can list and get ResourceClaimParameters.
ResourceClaimParameters(namespace string) ResourceClaimParametersNamespaceLister ResourceClaimParameters(namespace string) ResourceClaimParametersNamespaceLister
ResourceClaimParametersListerExpansion ResourceClaimParametersListerExpansion
@ -38,17 +38,17 @@ type ResourceClaimParametersLister interface {
// resourceClaimParametersLister implements the ResourceClaimParametersLister interface. // resourceClaimParametersLister implements the ResourceClaimParametersLister interface.
type resourceClaimParametersLister struct { type resourceClaimParametersLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaimParameters] listers.ResourceIndexer[*v1alpha3.ResourceClaimParameters]
} }
// NewResourceClaimParametersLister returns a new ResourceClaimParametersLister. // NewResourceClaimParametersLister returns a new ResourceClaimParametersLister.
func NewResourceClaimParametersLister(indexer cache.Indexer) ResourceClaimParametersLister { func NewResourceClaimParametersLister(indexer cache.Indexer) ResourceClaimParametersLister {
return &resourceClaimParametersLister{listers.New[*v1alpha2.ResourceClaimParameters](indexer, v1alpha2.Resource("resourceclaimparameters"))} return &resourceClaimParametersLister{listers.New[*v1alpha3.ResourceClaimParameters](indexer, v1alpha3.Resource("resourceclaimparameters"))}
} }
// ResourceClaimParameters returns an object that can list and get ResourceClaimParameters. // ResourceClaimParameters returns an object that can list and get ResourceClaimParameters.
func (s *resourceClaimParametersLister) ResourceClaimParameters(namespace string) ResourceClaimParametersNamespaceLister { func (s *resourceClaimParametersLister) ResourceClaimParameters(namespace string) ResourceClaimParametersNamespaceLister {
return resourceClaimParametersNamespaceLister{listers.NewNamespaced[*v1alpha2.ResourceClaimParameters](s.ResourceIndexer, namespace)} return resourceClaimParametersNamespaceLister{listers.NewNamespaced[*v1alpha3.ResourceClaimParameters](s.ResourceIndexer, namespace)}
} }
// ResourceClaimParametersNamespaceLister helps list and get ResourceClaimParameters. // ResourceClaimParametersNamespaceLister helps list and get ResourceClaimParameters.
@ -56,15 +56,15 @@ func (s *resourceClaimParametersLister) ResourceClaimParameters(namespace string
type ResourceClaimParametersNamespaceLister interface { type ResourceClaimParametersNamespaceLister interface {
// List lists all ResourceClaimParameters in the indexer for a given namespace. // List lists all ResourceClaimParameters in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaimParameters, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaimParameters, err error)
// Get retrieves the ResourceClaimParameters from the indexer for a given namespace and name. // Get retrieves the ResourceClaimParameters from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceClaimParameters, error) Get(name string) (*v1alpha3.ResourceClaimParameters, error)
ResourceClaimParametersNamespaceListerExpansion ResourceClaimParametersNamespaceListerExpansion
} }
// resourceClaimParametersNamespaceLister implements the ResourceClaimParametersNamespaceLister // resourceClaimParametersNamespaceLister implements the ResourceClaimParametersNamespaceLister
// interface. // interface.
type resourceClaimParametersNamespaceLister struct { type resourceClaimParametersNamespaceLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaimParameters] listers.ResourceIndexer[*v1alpha3.ResourceClaimParameters]
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,7 +30,7 @@ import (
type ResourceClaimTemplateLister interface { type ResourceClaimTemplateLister interface {
// List lists all ResourceClaimTemplates in the indexer. // List lists all ResourceClaimTemplates in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaimTemplate, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaimTemplate, err error)
// ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates. // ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates.
ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister
ResourceClaimTemplateListerExpansion ResourceClaimTemplateListerExpansion
@ -38,17 +38,17 @@ type ResourceClaimTemplateLister interface {
// resourceClaimTemplateLister implements the ResourceClaimTemplateLister interface. // resourceClaimTemplateLister implements the ResourceClaimTemplateLister interface.
type resourceClaimTemplateLister struct { type resourceClaimTemplateLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaimTemplate] listers.ResourceIndexer[*v1alpha3.ResourceClaimTemplate]
} }
// NewResourceClaimTemplateLister returns a new ResourceClaimTemplateLister. // NewResourceClaimTemplateLister returns a new ResourceClaimTemplateLister.
func NewResourceClaimTemplateLister(indexer cache.Indexer) ResourceClaimTemplateLister { func NewResourceClaimTemplateLister(indexer cache.Indexer) ResourceClaimTemplateLister {
return &resourceClaimTemplateLister{listers.New[*v1alpha2.ResourceClaimTemplate](indexer, v1alpha2.Resource("resourceclaimtemplate"))} return &resourceClaimTemplateLister{listers.New[*v1alpha3.ResourceClaimTemplate](indexer, v1alpha3.Resource("resourceclaimtemplate"))}
} }
// ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates. // ResourceClaimTemplates returns an object that can list and get ResourceClaimTemplates.
func (s *resourceClaimTemplateLister) ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister { func (s *resourceClaimTemplateLister) ResourceClaimTemplates(namespace string) ResourceClaimTemplateNamespaceLister {
return resourceClaimTemplateNamespaceLister{listers.NewNamespaced[*v1alpha2.ResourceClaimTemplate](s.ResourceIndexer, namespace)} return resourceClaimTemplateNamespaceLister{listers.NewNamespaced[*v1alpha3.ResourceClaimTemplate](s.ResourceIndexer, namespace)}
} }
// ResourceClaimTemplateNamespaceLister helps list and get ResourceClaimTemplates. // ResourceClaimTemplateNamespaceLister helps list and get ResourceClaimTemplates.
@ -56,15 +56,15 @@ func (s *resourceClaimTemplateLister) ResourceClaimTemplates(namespace string) R
type ResourceClaimTemplateNamespaceLister interface { type ResourceClaimTemplateNamespaceLister interface {
// List lists all ResourceClaimTemplates in the indexer for a given namespace. // List lists all ResourceClaimTemplates in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClaimTemplate, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClaimTemplate, err error)
// Get retrieves the ResourceClaimTemplate from the indexer for a given namespace and name. // Get retrieves the ResourceClaimTemplate from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceClaimTemplate, error) Get(name string) (*v1alpha3.ResourceClaimTemplate, error)
ResourceClaimTemplateNamespaceListerExpansion ResourceClaimTemplateNamespaceListerExpansion
} }
// resourceClaimTemplateNamespaceLister implements the ResourceClaimTemplateNamespaceLister // resourceClaimTemplateNamespaceLister implements the ResourceClaimTemplateNamespaceLister
// interface. // interface.
type resourceClaimTemplateNamespaceLister struct { type resourceClaimTemplateNamespaceLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClaimTemplate] listers.ResourceIndexer[*v1alpha3.ResourceClaimTemplate]
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,19 +30,19 @@ import (
type ResourceClassLister interface { type ResourceClassLister interface {
// List lists all ResourceClasses in the indexer. // List lists all ResourceClasses in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClass, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClass, err error)
// Get retrieves the ResourceClass from the index for a given name. // Get retrieves the ResourceClass from the index for a given name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceClass, error) Get(name string) (*v1alpha3.ResourceClass, error)
ResourceClassListerExpansion ResourceClassListerExpansion
} }
// resourceClassLister implements the ResourceClassLister interface. // resourceClassLister implements the ResourceClassLister interface.
type resourceClassLister struct { type resourceClassLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClass] listers.ResourceIndexer[*v1alpha3.ResourceClass]
} }
// NewResourceClassLister returns a new ResourceClassLister. // NewResourceClassLister returns a new ResourceClassLister.
func NewResourceClassLister(indexer cache.Indexer) ResourceClassLister { func NewResourceClassLister(indexer cache.Indexer) ResourceClassLister {
return &resourceClassLister{listers.New[*v1alpha2.ResourceClass](indexer, v1alpha2.Resource("resourceclass"))} return &resourceClassLister{listers.New[*v1alpha3.ResourceClass](indexer, v1alpha3.Resource("resourceclass"))}
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,7 +30,7 @@ import (
type ResourceClassParametersLister interface { type ResourceClassParametersLister interface {
// List lists all ResourceClassParameters in the indexer. // List lists all ResourceClassParameters in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClassParameters, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClassParameters, err error)
// ResourceClassParameters returns an object that can list and get ResourceClassParameters. // ResourceClassParameters returns an object that can list and get ResourceClassParameters.
ResourceClassParameters(namespace string) ResourceClassParametersNamespaceLister ResourceClassParameters(namespace string) ResourceClassParametersNamespaceLister
ResourceClassParametersListerExpansion ResourceClassParametersListerExpansion
@ -38,17 +38,17 @@ type ResourceClassParametersLister interface {
// resourceClassParametersLister implements the ResourceClassParametersLister interface. // resourceClassParametersLister implements the ResourceClassParametersLister interface.
type resourceClassParametersLister struct { type resourceClassParametersLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClassParameters] listers.ResourceIndexer[*v1alpha3.ResourceClassParameters]
} }
// NewResourceClassParametersLister returns a new ResourceClassParametersLister. // NewResourceClassParametersLister returns a new ResourceClassParametersLister.
func NewResourceClassParametersLister(indexer cache.Indexer) ResourceClassParametersLister { func NewResourceClassParametersLister(indexer cache.Indexer) ResourceClassParametersLister {
return &resourceClassParametersLister{listers.New[*v1alpha2.ResourceClassParameters](indexer, v1alpha2.Resource("resourceclassparameters"))} return &resourceClassParametersLister{listers.New[*v1alpha3.ResourceClassParameters](indexer, v1alpha3.Resource("resourceclassparameters"))}
} }
// ResourceClassParameters returns an object that can list and get ResourceClassParameters. // ResourceClassParameters returns an object that can list and get ResourceClassParameters.
func (s *resourceClassParametersLister) ResourceClassParameters(namespace string) ResourceClassParametersNamespaceLister { func (s *resourceClassParametersLister) ResourceClassParameters(namespace string) ResourceClassParametersNamespaceLister {
return resourceClassParametersNamespaceLister{listers.NewNamespaced[*v1alpha2.ResourceClassParameters](s.ResourceIndexer, namespace)} return resourceClassParametersNamespaceLister{listers.NewNamespaced[*v1alpha3.ResourceClassParameters](s.ResourceIndexer, namespace)}
} }
// ResourceClassParametersNamespaceLister helps list and get ResourceClassParameters. // ResourceClassParametersNamespaceLister helps list and get ResourceClassParameters.
@ -56,15 +56,15 @@ func (s *resourceClassParametersLister) ResourceClassParameters(namespace string
type ResourceClassParametersNamespaceLister interface { type ResourceClassParametersNamespaceLister interface {
// List lists all ResourceClassParameters in the indexer for a given namespace. // List lists all ResourceClassParameters in the indexer for a given namespace.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceClassParameters, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceClassParameters, err error)
// Get retrieves the ResourceClassParameters from the indexer for a given namespace and name. // Get retrieves the ResourceClassParameters from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceClassParameters, error) Get(name string) (*v1alpha3.ResourceClassParameters, error)
ResourceClassParametersNamespaceListerExpansion ResourceClassParametersNamespaceListerExpansion
} }
// resourceClassParametersNamespaceLister implements the ResourceClassParametersNamespaceLister // resourceClassParametersNamespaceLister implements the ResourceClassParametersNamespaceLister
// interface. // interface.
type resourceClassParametersNamespaceLister struct { type resourceClassParametersNamespaceLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceClassParameters] listers.ResourceIndexer[*v1alpha3.ResourceClassParameters]
} }

View File

@ -16,10 +16,10 @@ limitations under the License.
// Code generated by lister-gen. DO NOT EDIT. // Code generated by lister-gen. DO NOT EDIT.
package v1alpha2 package v1alpha3
import ( import (
v1alpha2 "k8s.io/api/resource/v1alpha2" v1alpha3 "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers" "k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
@ -30,19 +30,19 @@ import (
type ResourceSliceLister interface { type ResourceSliceLister interface {
// List lists all ResourceSlices in the indexer. // List lists all ResourceSlices in the indexer.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.ResourceSlice, err error) List(selector labels.Selector) (ret []*v1alpha3.ResourceSlice, err error)
// Get retrieves the ResourceSlice from the index for a given name. // Get retrieves the ResourceSlice from the index for a given name.
// Objects returned here must be treated as read-only. // Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.ResourceSlice, error) Get(name string) (*v1alpha3.ResourceSlice, error)
ResourceSliceListerExpansion ResourceSliceListerExpansion
} }
// resourceSliceLister implements the ResourceSliceLister interface. // resourceSliceLister implements the ResourceSliceLister interface.
type resourceSliceLister struct { type resourceSliceLister struct {
listers.ResourceIndexer[*v1alpha2.ResourceSlice] listers.ResourceIndexer[*v1alpha3.ResourceSlice]
} }
// NewResourceSliceLister returns a new ResourceSliceLister. // NewResourceSliceLister returns a new ResourceSliceLister.
func NewResourceSliceLister(indexer cache.Indexer) ResourceSliceLister { func NewResourceSliceLister(indexer cache.Indexer) ResourceSliceLister {
return &resourceSliceLister{listers.New[*v1alpha2.ResourceSlice](indexer, v1alpha2.Resource("resourceslice"))} return &resourceSliceLister{listers.New[*v1alpha3.ResourceSlice](indexer, v1alpha3.Resource("resourceslice"))}
} }