mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update kubernetes to 1.30
updating kubernetes to 1.30 release Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
62ddcf715b
commit
e727bd351e
5974
vendor/k8s.io/api/resource/v1alpha2/generated.pb.go
generated
vendored
5974
vendor/k8s.io/api/resource/v1alpha2/generated.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
349
vendor/k8s.io/api/resource/v1alpha2/generated.proto
generated
vendored
349
vendor/k8s.io/api/resource/v1alpha2/generated.proto
generated
vendored
@ -22,6 +22,7 @@ syntax = "proto2";
|
||||
package k8s.io.api.resource.v1alpha2;
|
||||
|
||||
import "k8s.io/api/core/v1/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||
@ -63,6 +64,150 @@ message AllocationResult {
|
||||
optional bool shareable = 3;
|
||||
}
|
||||
|
||||
// AllocationResultModel must have one and only one field set.
|
||||
message AllocationResultModel {
|
||||
// NamedResources describes the allocation result when using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
optional NamedResourcesAllocationResult namedResources = 1;
|
||||
}
|
||||
|
||||
// DriverAllocationResult contains vendor parameters and the allocation result for
|
||||
// one request.
|
||||
message DriverAllocationResult {
|
||||
// VendorRequestParameters are the per-request configuration parameters
|
||||
// from the time that the claim was allocated.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension vendorRequestParameters = 1;
|
||||
|
||||
optional AllocationResultModel allocationResultModel = 2;
|
||||
}
|
||||
|
||||
// DriverRequests describes all resources that are needed from one particular driver.
|
||||
message DriverRequests {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
optional string driverName = 1;
|
||||
|
||||
// VendorParameters are arbitrary setup parameters for all requests of the
|
||||
// claim. They are ignored while allocating the claim.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension vendorParameters = 2;
|
||||
|
||||
// Requests describes all resources that are needed from the driver.
|
||||
// +listType=atomic
|
||||
repeated ResourceRequest requests = 3;
|
||||
}
|
||||
|
||||
// NamedResourcesAllocationResult is used in AllocationResultModel.
|
||||
message NamedResourcesAllocationResult {
|
||||
// Name is the name of the selected resource instance.
|
||||
optional string name = 1;
|
||||
}
|
||||
|
||||
// NamedResourcesAttribute is a combination of an attribute name and its value.
|
||||
message NamedResourcesAttribute {
|
||||
// Name is unique identifier among all resource instances managed by
|
||||
// the driver on the node. It must be a DNS subdomain.
|
||||
optional string name = 1;
|
||||
|
||||
optional NamedResourcesAttributeValue attributeValue = 2;
|
||||
}
|
||||
|
||||
// NamedResourcesAttributeValue must have one and only one field set.
|
||||
message NamedResourcesAttributeValue {
|
||||
// QuantityValue is a quantity.
|
||||
optional k8s.io.apimachinery.pkg.api.resource.Quantity quantity = 6;
|
||||
|
||||
// BoolValue is a true/false value.
|
||||
optional bool bool = 2;
|
||||
|
||||
// IntValue is a 64-bit integer.
|
||||
optional int64 int = 7;
|
||||
|
||||
// IntSliceValue is an array of 64-bit integers.
|
||||
optional NamedResourcesIntSlice intSlice = 8;
|
||||
|
||||
// StringValue is a string.
|
||||
optional string string = 5;
|
||||
|
||||
// StringSliceValue is an array of strings.
|
||||
optional NamedResourcesStringSlice stringSlice = 9;
|
||||
|
||||
// VersionValue is a semantic version according to semver.org spec 2.0.0.
|
||||
optional string version = 10;
|
||||
}
|
||||
|
||||
// NamedResourcesFilter is used in ResourceFilterModel.
|
||||
message NamedResourcesFilter {
|
||||
// Selector is a CEL expression which must evaluate to true if a
|
||||
// resource instance is suitable. The language is as defined in
|
||||
// https://kubernetes.io/docs/reference/using-api/cel/
|
||||
//
|
||||
// In addition, for each type NamedResourcesin AttributeValue there is a map that
|
||||
// resolves to the corresponding value of the instance under evaluation.
|
||||
// For example:
|
||||
//
|
||||
// attributes.quantity["a"].isGreaterThan(quantity("0")) &&
|
||||
// attributes.stringslice["b"].isSorted()
|
||||
optional string selector = 1;
|
||||
}
|
||||
|
||||
// NamedResourcesInstance represents one individual hardware instance that can be selected based
|
||||
// on its attributes.
|
||||
message NamedResourcesInstance {
|
||||
// Name is unique identifier among all resource instances managed by
|
||||
// the driver on the node. It must be a DNS subdomain.
|
||||
optional string name = 1;
|
||||
|
||||
// Attributes defines the attributes of this resource instance.
|
||||
// The name of each attribute must be unique.
|
||||
//
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
repeated NamedResourcesAttribute attributes = 2;
|
||||
}
|
||||
|
||||
// NamedResourcesIntSlice contains a slice of 64-bit integers.
|
||||
message NamedResourcesIntSlice {
|
||||
// Ints is the slice of 64-bit integers.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated int64 ints = 1;
|
||||
}
|
||||
|
||||
// NamedResourcesRequest is used in ResourceRequestModel.
|
||||
message NamedResourcesRequest {
|
||||
// Selector is a CEL expression which must evaluate to true if a
|
||||
// resource instance is suitable. The language is as defined in
|
||||
// https://kubernetes.io/docs/reference/using-api/cel/
|
||||
//
|
||||
// In addition, for each type NamedResourcesin AttributeValue there is a map that
|
||||
// resolves to the corresponding value of the instance under evaluation.
|
||||
// For example:
|
||||
//
|
||||
// attributes.quantity["a"].isGreaterThan(quantity("0")) &&
|
||||
// attributes.stringslice["b"].isSorted()
|
||||
optional string selector = 1;
|
||||
}
|
||||
|
||||
// NamedResourcesResources is used in ResourceModel.
|
||||
message NamedResourcesResources {
|
||||
// The list of all individual resources instances currently available.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated NamedResourcesInstance instances = 1;
|
||||
}
|
||||
|
||||
// NamedResourcesStringSlice contains a slice of strings.
|
||||
message NamedResourcesStringSlice {
|
||||
// Strings is the slice of strings.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated string strings = 1;
|
||||
}
|
||||
|
||||
// PodSchedulingContext objects hold information that is needed to schedule
|
||||
// a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
|
||||
// mode.
|
||||
@ -176,6 +321,45 @@ message ResourceClaimList {
|
||||
repeated ResourceClaim items = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimParameters defines resource requests for a ResourceClaim in an
|
||||
// in-tree format understood by Kubernetes.
|
||||
message ResourceClaimParameters {
|
||||
// Standard object metadata
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// If this object was created from some other resource, then this links
|
||||
// back to that resource. This field is used to find the in-tree representation
|
||||
// of the claim parameters when the parameter reference of the claim refers
|
||||
// to some unknown type.
|
||||
// +optional
|
||||
optional ResourceClaimParametersReference generatedFrom = 2;
|
||||
|
||||
// Shareable indicates whether the allocated claim is meant to be shareable
|
||||
// by multiple consumers at the same time.
|
||||
// +optional
|
||||
optional bool shareable = 3;
|
||||
|
||||
// DriverRequests describes all resources that are needed for the
|
||||
// allocated claim. A single claim may use resources coming from
|
||||
// different drivers. For each driver, this array has at most one
|
||||
// entry which then may have one or more per-driver requests.
|
||||
//
|
||||
// May be empty, in which case the claim can always be allocated.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated DriverRequests driverRequests = 4;
|
||||
}
|
||||
|
||||
// ResourceClaimParametersList is a collection of ResourceClaimParameters.
|
||||
message ResourceClaimParametersList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
repeated ResourceClaimParameters items = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimParametersReference contains enough information to let you
|
||||
// locate the parameters for a ResourceClaim. The object must be in the same
|
||||
// namespace as the ResourceClaim.
|
||||
@ -257,6 +441,8 @@ message ResourceClaimStatus {
|
||||
//
|
||||
// +listType=map
|
||||
// +listMapKey=uid
|
||||
// +patchStrategy=merge
|
||||
// +patchMergeKey=uid
|
||||
// +optional
|
||||
repeated ResourceClaimConsumerReference reservedFor = 3;
|
||||
|
||||
@ -342,6 +528,11 @@ message ResourceClass {
|
||||
// Setting this field is optional. If null, all nodes are candidates.
|
||||
// +optional
|
||||
optional k8s.io.api.core.v1.NodeSelector suitableNodes = 4;
|
||||
|
||||
// If and only if allocation of claims using this class is handled
|
||||
// via structured parameters, then StructuredParameters must be set to true.
|
||||
// +optional
|
||||
optional bool structuredParameters = 5;
|
||||
}
|
||||
|
||||
// ResourceClassList is a collection of classes.
|
||||
@ -354,6 +545,43 @@ message ResourceClassList {
|
||||
repeated ResourceClass items = 2;
|
||||
}
|
||||
|
||||
// ResourceClassParameters defines resource requests for a ResourceClass in an
|
||||
// in-tree format understood by Kubernetes.
|
||||
message ResourceClassParameters {
|
||||
// Standard object metadata
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// If this object was created from some other resource, then this links
|
||||
// back to that resource. This field is used to find the in-tree representation
|
||||
// of the class parameters when the parameter reference of the class refers
|
||||
// to some unknown type.
|
||||
// +optional
|
||||
optional ResourceClassParametersReference generatedFrom = 2;
|
||||
|
||||
// VendorParameters are arbitrary setup parameters for all claims using
|
||||
// this class. They are ignored while allocating the claim. There must
|
||||
// not be more than one entry per driver.
|
||||
//
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
repeated VendorParameters vendorParameters = 3;
|
||||
|
||||
// Filters describes additional contraints that must be met when using the class.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated ResourceFilter filters = 4;
|
||||
}
|
||||
|
||||
// ResourceClassParametersList is a collection of ResourceClassParameters.
|
||||
message ResourceClassParametersList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
repeated ResourceClassParameters items = 2;
|
||||
}
|
||||
|
||||
// ResourceClassParametersReference contains enough information to let you
|
||||
// locate the parameters for a ResourceClass.
|
||||
message ResourceClassParametersReference {
|
||||
@ -377,6 +605,22 @@ message ResourceClassParametersReference {
|
||||
optional string namespace = 4;
|
||||
}
|
||||
|
||||
// ResourceFilter is a filter for resources from one particular driver.
|
||||
message ResourceFilter {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
optional string driverName = 1;
|
||||
|
||||
optional ResourceFilterModel resourceFilterModel = 2;
|
||||
}
|
||||
|
||||
// ResourceFilterModel must have one and only one field set.
|
||||
message ResourceFilterModel {
|
||||
// NamedResources describes a resource filter using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
optional NamedResourcesFilter namedResources = 1;
|
||||
}
|
||||
|
||||
// ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
|
||||
message ResourceHandle {
|
||||
// DriverName specifies the name of the resource driver whose kubelet
|
||||
@ -396,5 +640,110 @@ message ResourceHandle {
|
||||
// future, but not reduced.
|
||||
// +optional
|
||||
optional string data = 2;
|
||||
|
||||
// If StructuredData is set, then it needs to be used instead of Data.
|
||||
//
|
||||
// +optional
|
||||
optional StructuredResourceHandle structuredData = 5;
|
||||
}
|
||||
|
||||
// ResourceModel must have one and only one field set.
|
||||
message ResourceModel {
|
||||
// NamedResources describes available resources using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
optional NamedResourcesResources namedResources = 1;
|
||||
}
|
||||
|
||||
// ResourceRequest is a request for resources from one particular driver.
|
||||
message ResourceRequest {
|
||||
// VendorParameters are arbitrary setup parameters for the requested
|
||||
// resource. They are ignored while allocating a claim.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension vendorParameters = 1;
|
||||
|
||||
optional ResourceRequestModel resourceRequestModel = 2;
|
||||
}
|
||||
|
||||
// ResourceRequestModel must have one and only one field set.
|
||||
message ResourceRequestModel {
|
||||
// NamedResources describes a request for resources with the named resources model.
|
||||
//
|
||||
// +optional
|
||||
optional NamedResourcesRequest namedResources = 1;
|
||||
}
|
||||
|
||||
// ResourceSlice provides information about available
|
||||
// resources on individual nodes.
|
||||
message ResourceSlice {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// NodeName identifies the node which provides the resources
|
||||
// if they are local to a node.
|
||||
//
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects with a certain node name.
|
||||
//
|
||||
// +optional
|
||||
optional string nodeName = 2;
|
||||
|
||||
// DriverName identifies the DRA driver providing the capacity information.
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects with a certain driver name.
|
||||
optional string driverName = 3;
|
||||
|
||||
optional ResourceModel resourceModel = 4;
|
||||
}
|
||||
|
||||
// ResourceSliceList is a collection of ResourceSlices.
|
||||
message ResourceSliceList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
repeated ResourceSlice items = 2;
|
||||
}
|
||||
|
||||
// StructuredResourceHandle is the in-tree representation of the allocation result.
|
||||
message StructuredResourceHandle {
|
||||
// VendorClassParameters are the per-claim configuration parameters
|
||||
// from the resource class at the time that the claim was allocated.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension vendorClassParameters = 1;
|
||||
|
||||
// VendorClaimParameters are the per-claim configuration parameters
|
||||
// from the resource claim parameters at the time that the claim was
|
||||
// allocated.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension vendorClaimParameters = 2;
|
||||
|
||||
// NodeName is the name of the node providing the necessary resources
|
||||
// if the resources are local to a node.
|
||||
//
|
||||
// +optional
|
||||
optional string nodeName = 4;
|
||||
|
||||
// Results lists all allocated driver resources.
|
||||
//
|
||||
// +listType=atomic
|
||||
repeated DriverAllocationResult results = 5;
|
||||
}
|
||||
|
||||
// VendorParameters are opaque parameters for one particular driver.
|
||||
message VendorParameters {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
optional string driverName = 1;
|
||||
|
||||
// Parameters can be arbitrary setup parameters. They are ignored while
|
||||
// allocating a claim.
|
||||
//
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2;
|
||||
}
|
||||
|
||||
|
127
vendor/k8s.io/api/resource/v1alpha2/namedresources.go
generated
vendored
Normal file
127
vendor/k8s.io/api/resource/v1alpha2/namedresources.go
generated
vendored
Normal file
@ -0,0 +1,127 @@
|
||||
/*
|
||||
Copyright 2023 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package v1alpha2
|
||||
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/api/resource"
|
||||
)
|
||||
|
||||
// NamedResourcesResources is used in ResourceModel.
|
||||
type NamedResourcesResources struct {
|
||||
// The list of all individual resources instances currently available.
|
||||
//
|
||||
// +listType=atomic
|
||||
Instances []NamedResourcesInstance `json:"instances" protobuf:"bytes,1,name=instances"`
|
||||
}
|
||||
|
||||
// NamedResourcesInstance represents one individual hardware instance that can be selected based
|
||||
// on its attributes.
|
||||
type NamedResourcesInstance struct {
|
||||
// Name is unique identifier among all resource instances managed by
|
||||
// the driver on the node. It must be a DNS subdomain.
|
||||
Name string `json:"name" protobuf:"bytes,1,name=name"`
|
||||
|
||||
// Attributes defines the attributes of this resource instance.
|
||||
// The name of each attribute must be unique.
|
||||
//
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
Attributes []NamedResourcesAttribute `json:"attributes,omitempty" protobuf:"bytes,2,opt,name=attributes"`
|
||||
}
|
||||
|
||||
// NamedResourcesAttribute is a combination of an attribute name and its value.
|
||||
type NamedResourcesAttribute struct {
|
||||
// Name is unique identifier among all resource instances managed by
|
||||
// the driver on the node. It must be a DNS subdomain.
|
||||
Name string `json:"name" protobuf:"bytes,1,name=name"`
|
||||
|
||||
NamedResourcesAttributeValue `json:",inline" protobuf:"bytes,2,opt,name=attributeValue"`
|
||||
}
|
||||
|
||||
// The Go field names below have a Value suffix to avoid a conflict between the
|
||||
// field "String" and the corresponding method. That method is required.
|
||||
// The Kubernetes API is defined without that suffix to keep it more natural.
|
||||
|
||||
// NamedResourcesAttributeValue must have one and only one field set.
|
||||
type NamedResourcesAttributeValue struct {
|
||||
// QuantityValue is a quantity.
|
||||
QuantityValue *resource.Quantity `json:"quantity,omitempty" protobuf:"bytes,6,opt,name=quantity"`
|
||||
// BoolValue is a true/false value.
|
||||
BoolValue *bool `json:"bool,omitempty" protobuf:"bytes,2,opt,name=bool"`
|
||||
// IntValue is a 64-bit integer.
|
||||
IntValue *int64 `json:"int,omitempty" protobuf:"varint,7,opt,name=int"`
|
||||
// IntSliceValue is an array of 64-bit integers.
|
||||
IntSliceValue *NamedResourcesIntSlice `json:"intSlice,omitempty" protobuf:"varint,8,rep,name=intSlice"`
|
||||
// StringValue is a string.
|
||||
StringValue *string `json:"string,omitempty" protobuf:"bytes,5,opt,name=string"`
|
||||
// StringSliceValue is an array of strings.
|
||||
StringSliceValue *NamedResourcesStringSlice `json:"stringSlice,omitempty" protobuf:"bytes,9,rep,name=stringSlice"`
|
||||
// VersionValue is a semantic version according to semver.org spec 2.0.0.
|
||||
VersionValue *string `json:"version,omitempty" protobuf:"bytes,10,opt,name=version"`
|
||||
}
|
||||
|
||||
// NamedResourcesIntSlice contains a slice of 64-bit integers.
|
||||
type NamedResourcesIntSlice struct {
|
||||
// Ints is the slice of 64-bit integers.
|
||||
//
|
||||
// +listType=atomic
|
||||
Ints []int64 `json:"ints" protobuf:"bytes,1,opt,name=ints"`
|
||||
}
|
||||
|
||||
// NamedResourcesStringSlice contains a slice of strings.
|
||||
type NamedResourcesStringSlice struct {
|
||||
// Strings is the slice of strings.
|
||||
//
|
||||
// +listType=atomic
|
||||
Strings []string `json:"strings" protobuf:"bytes,1,opt,name=strings"`
|
||||
}
|
||||
|
||||
// NamedResourcesRequest is used in ResourceRequestModel.
|
||||
type NamedResourcesRequest struct {
|
||||
// Selector is a CEL expression which must evaluate to true if a
|
||||
// resource instance is suitable. The language is as defined in
|
||||
// https://kubernetes.io/docs/reference/using-api/cel/
|
||||
//
|
||||
// In addition, for each type NamedResourcesin AttributeValue there is a map that
|
||||
// resolves to the corresponding value of the instance under evaluation.
|
||||
// For example:
|
||||
//
|
||||
// attributes.quantity["a"].isGreaterThan(quantity("0")) &&
|
||||
// attributes.stringslice["b"].isSorted()
|
||||
Selector string `json:"selector" protobuf:"bytes,1,name=selector"`
|
||||
}
|
||||
|
||||
// NamedResourcesFilter is used in ResourceFilterModel.
|
||||
type NamedResourcesFilter struct {
|
||||
// Selector is a CEL expression which must evaluate to true if a
|
||||
// resource instance is suitable. The language is as defined in
|
||||
// https://kubernetes.io/docs/reference/using-api/cel/
|
||||
//
|
||||
// In addition, for each type NamedResourcesin AttributeValue there is a map that
|
||||
// resolves to the corresponding value of the instance under evaluation.
|
||||
// For example:
|
||||
//
|
||||
// attributes.quantity["a"].isGreaterThan(quantity("0")) &&
|
||||
// attributes.stringslice["b"].isSorted()
|
||||
Selector string `json:"selector" protobuf:"bytes,1,name=selector"`
|
||||
}
|
||||
|
||||
// NamedResourcesAllocationResult is used in AllocationResultModel.
|
||||
type NamedResourcesAllocationResult struct {
|
||||
// Name is the name of the selected resource instance.
|
||||
Name string `json:"name" protobuf:"bytes,1,name=name"`
|
||||
}
|
6
vendor/k8s.io/api/resource/v1alpha2/register.go
generated
vendored
6
vendor/k8s.io/api/resource/v1alpha2/register.go
generated
vendored
@ -52,6 +52,12 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
&ResourceClaimTemplateList{},
|
||||
&PodSchedulingContext{},
|
||||
&PodSchedulingContextList{},
|
||||
&ResourceSlice{},
|
||||
&ResourceSliceList{},
|
||||
&ResourceClaimParameters{},
|
||||
&ResourceClaimParametersList{},
|
||||
&ResourceClassParameters{},
|
||||
&ResourceClassParametersList{},
|
||||
)
|
||||
|
||||
// Add common types
|
||||
|
277
vendor/k8s.io/api/resource/v1alpha2/types.go
generated
vendored
277
vendor/k8s.io/api/resource/v1alpha2/types.go
generated
vendored
@ -19,9 +19,16 @@ package v1alpha2
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
const (
|
||||
// Finalizer is the finalizer that gets set for claims
|
||||
// which were allocated through a builtin controller.
|
||||
Finalizer = "dra.k8s.io/delete-protection"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
@ -114,8 +121,10 @@ type ResourceClaimStatus struct {
|
||||
//
|
||||
// +listType=map
|
||||
// +listMapKey=uid
|
||||
// +patchStrategy=merge
|
||||
// +patchMergeKey=uid
|
||||
// +optional
|
||||
ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,3,opt,name=reservedFor"`
|
||||
ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,3,opt,name=reservedFor" patchStrategy:"merge" patchMergeKey:"uid"`
|
||||
|
||||
// DeallocationRequested indicates that a ResourceClaim is to be
|
||||
// deallocated.
|
||||
@ -190,11 +199,63 @@ type ResourceHandle struct {
|
||||
// future, but not reduced.
|
||||
// +optional
|
||||
Data string `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"`
|
||||
|
||||
// If StructuredData is set, then it needs to be used instead of Data.
|
||||
//
|
||||
// +optional
|
||||
StructuredData *StructuredResourceHandle `json:"structuredData,omitempty" protobuf:"bytes,5,opt,name=structuredData"`
|
||||
}
|
||||
|
||||
// ResourceHandleDataMaxSize represents the maximum size of resourceHandle.data.
|
||||
const ResourceHandleDataMaxSize = 16 * 1024
|
||||
|
||||
// StructuredResourceHandle is the in-tree representation of the allocation result.
|
||||
type StructuredResourceHandle struct {
|
||||
// VendorClassParameters are the per-claim configuration parameters
|
||||
// from the resource class at the time that the claim was allocated.
|
||||
//
|
||||
// +optional
|
||||
VendorClassParameters runtime.RawExtension `json:"vendorClassParameters,omitempty" protobuf:"bytes,1,opt,name=vendorClassParameters"`
|
||||
|
||||
// VendorClaimParameters are the per-claim configuration parameters
|
||||
// from the resource claim parameters at the time that the claim was
|
||||
// allocated.
|
||||
//
|
||||
// +optional
|
||||
VendorClaimParameters runtime.RawExtension `json:"vendorClaimParameters,omitempty" protobuf:"bytes,2,opt,name=vendorClaimParameters"`
|
||||
|
||||
// NodeName is the name of the node providing the necessary resources
|
||||
// if the resources are local to a node.
|
||||
//
|
||||
// +optional
|
||||
NodeName string `json:"nodeName,omitempty" protobuf:"bytes,4,name=nodeName"`
|
||||
|
||||
// Results lists all allocated driver resources.
|
||||
//
|
||||
// +listType=atomic
|
||||
Results []DriverAllocationResult `json:"results" protobuf:"bytes,5,name=results"`
|
||||
}
|
||||
|
||||
// DriverAllocationResult contains vendor parameters and the allocation result for
|
||||
// one request.
|
||||
type DriverAllocationResult struct {
|
||||
// VendorRequestParameters are the per-request configuration parameters
|
||||
// from the time that the claim was allocated.
|
||||
//
|
||||
// +optional
|
||||
VendorRequestParameters runtime.RawExtension `json:"vendorRequestParameters,omitempty" protobuf:"bytes,1,opt,name=vendorRequestParameters"`
|
||||
|
||||
AllocationResultModel `json:",inline" protobuf:"bytes,2,name=allocationResultModel"`
|
||||
}
|
||||
|
||||
// AllocationResultModel must have one and only one field set.
|
||||
type AllocationResultModel struct {
|
||||
// NamedResources describes the allocation result when using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
NamedResources *NamedResourcesAllocationResult `json:"namedResources,omitempty" protobuf:"bytes,1,opt,name=namedResources"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
@ -345,6 +406,11 @@ type ResourceClass struct {
|
||||
// Setting this field is optional. If null, all nodes are candidates.
|
||||
// +optional
|
||||
SuitableNodes *v1.NodeSelector `json:"suitableNodes,omitempty" protobuf:"bytes,4,opt,name=suitableNodes"`
|
||||
|
||||
// If and only if allocation of claims using this class is handled
|
||||
// via structured parameters, then StructuredParameters must be set to true.
|
||||
// +optional
|
||||
StructuredParameters *bool `json:"structuredParameters,omitempty" protobuf:"bytes,5,opt,name=structuredParameters"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
@ -460,3 +526,212 @@ type ResourceClaimTemplateList struct {
|
||||
// Items is the list of resource claim templates.
|
||||
Items []ResourceClaimTemplate `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +genclient:nonNamespaced
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceSlice provides information about available
|
||||
// resources on individual nodes.
|
||||
type ResourceSlice struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// NodeName identifies the node which provides the resources
|
||||
// if they are local to a node.
|
||||
//
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects with a certain node name.
|
||||
//
|
||||
// +optional
|
||||
NodeName string `json:"nodeName,omitempty" protobuf:"bytes,2,opt,name=nodeName"`
|
||||
|
||||
// DriverName identifies the DRA driver providing the capacity information.
|
||||
// A field selector can be used to list only ResourceSlice
|
||||
// objects with a certain driver name.
|
||||
DriverName string `json:"driverName" protobuf:"bytes,3,name=driverName"`
|
||||
|
||||
ResourceModel `json:",inline" protobuf:"bytes,4,name=resourceModel"`
|
||||
}
|
||||
|
||||
// ResourceModel must have one and only one field set.
|
||||
type ResourceModel struct {
|
||||
// NamedResources describes available resources using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
NamedResources *NamedResourcesResources `json:"namedResources,omitempty" protobuf:"bytes,1,opt,name=namedResources"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceSliceList is a collection of ResourceSlices.
|
||||
type ResourceSliceList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
Items []ResourceSlice `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceClaimParameters defines resource requests for a ResourceClaim in an
|
||||
// in-tree format understood by Kubernetes.
|
||||
type ResourceClaimParameters struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// If this object was created from some other resource, then this links
|
||||
// back to that resource. This field is used to find the in-tree representation
|
||||
// of the claim parameters when the parameter reference of the claim refers
|
||||
// to some unknown type.
|
||||
// +optional
|
||||
GeneratedFrom *ResourceClaimParametersReference `json:"generatedFrom,omitempty" protobuf:"bytes,2,opt,name=generatedFrom"`
|
||||
|
||||
// Shareable indicates whether the allocated claim is meant to be shareable
|
||||
// by multiple consumers at the same time.
|
||||
// +optional
|
||||
Shareable bool `json:"shareable,omitempty" protobuf:"bytes,3,opt,name=shareable"`
|
||||
|
||||
// DriverRequests describes all resources that are needed for the
|
||||
// allocated claim. A single claim may use resources coming from
|
||||
// different drivers. For each driver, this array has at most one
|
||||
// entry which then may have one or more per-driver requests.
|
||||
//
|
||||
// May be empty, in which case the claim can always be allocated.
|
||||
//
|
||||
// +listType=atomic
|
||||
DriverRequests []DriverRequests `json:"driverRequests,omitempty" protobuf:"bytes,4,opt,name=driverRequests"`
|
||||
}
|
||||
|
||||
// DriverRequests describes all resources that are needed from one particular driver.
|
||||
type DriverRequests struct {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"`
|
||||
|
||||
// VendorParameters are arbitrary setup parameters for all requests of the
|
||||
// claim. They are ignored while allocating the claim.
|
||||
//
|
||||
// +optional
|
||||
VendorParameters runtime.RawExtension `json:"vendorParameters,omitempty" protobuf:"bytes,2,opt,name=vendorParameters"`
|
||||
|
||||
// Requests describes all resources that are needed from the driver.
|
||||
// +listType=atomic
|
||||
Requests []ResourceRequest `json:"requests,omitempty" protobuf:"bytes,3,opt,name=requests"`
|
||||
}
|
||||
|
||||
// ResourceRequest is a request for resources from one particular driver.
|
||||
type ResourceRequest struct {
|
||||
// VendorParameters are arbitrary setup parameters for the requested
|
||||
// resource. They are ignored while allocating a claim.
|
||||
//
|
||||
// +optional
|
||||
VendorParameters runtime.RawExtension `json:"vendorParameters,omitempty" protobuf:"bytes,1,opt,name=vendorParameters"`
|
||||
|
||||
ResourceRequestModel `json:",inline" protobuf:"bytes,2,name=resourceRequestModel"`
|
||||
}
|
||||
|
||||
// ResourceRequestModel must have one and only one field set.
|
||||
type ResourceRequestModel struct {
|
||||
// NamedResources describes a request for resources with the named resources model.
|
||||
//
|
||||
// +optional
|
||||
NamedResources *NamedResourcesRequest `json:"namedResources,omitempty" protobuf:"bytes,1,opt,name=namedResources"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceClaimParametersList is a collection of ResourceClaimParameters.
|
||||
type ResourceClaimParametersList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
Items []ResourceClaimParameters `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceClassParameters defines resource requests for a ResourceClass in an
|
||||
// in-tree format understood by Kubernetes.
|
||||
type ResourceClassParameters struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// If this object was created from some other resource, then this links
|
||||
// back to that resource. This field is used to find the in-tree representation
|
||||
// of the class parameters when the parameter reference of the class refers
|
||||
// to some unknown type.
|
||||
// +optional
|
||||
GeneratedFrom *ResourceClassParametersReference `json:"generatedFrom,omitempty" protobuf:"bytes,2,opt,name=generatedFrom"`
|
||||
|
||||
// VendorParameters are arbitrary setup parameters for all claims using
|
||||
// this class. They are ignored while allocating the claim. There must
|
||||
// not be more than one entry per driver.
|
||||
//
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
VendorParameters []VendorParameters `json:"vendorParameters,omitempty" protobuf:"bytes,3,opt,name=vendorParameters"`
|
||||
|
||||
// Filters describes additional contraints that must be met when using the class.
|
||||
//
|
||||
// +listType=atomic
|
||||
Filters []ResourceFilter `json:"filters,omitempty" protobuf:"bytes,4,opt,name=filters"`
|
||||
}
|
||||
|
||||
// ResourceFilter is a filter for resources from one particular driver.
|
||||
type ResourceFilter struct {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"`
|
||||
|
||||
ResourceFilterModel `json:",inline" protobuf:"bytes,2,name=resourceFilterModel"`
|
||||
}
|
||||
|
||||
// ResourceFilterModel must have one and only one field set.
|
||||
type ResourceFilterModel struct {
|
||||
// NamedResources describes a resource filter using the named resources model.
|
||||
//
|
||||
// +optional
|
||||
NamedResources *NamedResourcesFilter `json:"namedResources,omitempty" protobuf:"bytes,1,opt,name=namedResources"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.30
|
||||
|
||||
// ResourceClassParametersList is a collection of ResourceClassParameters.
|
||||
type ResourceClassParametersList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Items is the list of node resource capacity objects.
|
||||
Items []ResourceClassParameters `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// VendorParameters are opaque parameters for one particular driver.
|
||||
type VendorParameters struct {
|
||||
// DriverName is the name used by the DRA driver kubelet plugin.
|
||||
DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"`
|
||||
|
||||
// Parameters can be arbitrary setup parameters. They are ignored while
|
||||
// allocating a claim.
|
||||
//
|
||||
// +optional
|
||||
Parameters runtime.RawExtension `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"`
|
||||
}
|
||||
|
179
vendor/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go
generated
vendored
179
vendor/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go
generated
vendored
@ -38,6 +38,35 @@ func (AllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_AllocationResult
|
||||
}
|
||||
|
||||
var map_AllocationResultModel = map[string]string{
|
||||
"": "AllocationResultModel must have one and only one field set.",
|
||||
"namedResources": "NamedResources describes the allocation result when using the named resources model.",
|
||||
}
|
||||
|
||||
func (AllocationResultModel) SwaggerDoc() map[string]string {
|
||||
return map_AllocationResultModel
|
||||
}
|
||||
|
||||
var map_DriverAllocationResult = map[string]string{
|
||||
"": "DriverAllocationResult contains vendor parameters and the allocation result for one request.",
|
||||
"vendorRequestParameters": "VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated.",
|
||||
}
|
||||
|
||||
func (DriverAllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_DriverAllocationResult
|
||||
}
|
||||
|
||||
var map_DriverRequests = map[string]string{
|
||||
"": "DriverRequests describes all resources that are needed from one particular driver.",
|
||||
"driverName": "DriverName is the name used by the DRA driver kubelet plugin.",
|
||||
"vendorParameters": "VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.",
|
||||
"requests": "Requests describes all resources that are needed from the driver.",
|
||||
}
|
||||
|
||||
func (DriverRequests) SwaggerDoc() map[string]string {
|
||||
return map_DriverRequests
|
||||
}
|
||||
|
||||
var map_PodSchedulingContext = map[string]string{
|
||||
"": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
@ -111,6 +140,28 @@ func (ResourceClaimList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimList
|
||||
}
|
||||
|
||||
var map_ResourceClaimParameters = map[string]string{
|
||||
"": "ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes.",
|
||||
"metadata": "Standard object metadata",
|
||||
"generatedFrom": "If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the claim parameters when the parameter reference of the claim refers to some unknown type.",
|
||||
"shareable": "Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time.",
|
||||
"driverRequests": "DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.\n\nMay be empty, in which case the claim can always be allocated.",
|
||||
}
|
||||
|
||||
func (ResourceClaimParameters) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimParameters
|
||||
}
|
||||
|
||||
var map_ResourceClaimParametersList = map[string]string{
|
||||
"": "ResourceClaimParametersList is a collection of ResourceClaimParameters.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of node resource capacity objects.",
|
||||
}
|
||||
|
||||
func (ResourceClaimParametersList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimParametersList
|
||||
}
|
||||
|
||||
var map_ResourceClaimParametersReference = map[string]string{
|
||||
"": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.",
|
||||
"apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.",
|
||||
@ -186,11 +237,12 @@ func (ResourceClaimTemplateSpec) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_ResourceClass = map[string]string{
|
||||
"": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"driverName": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).",
|
||||
"parametersRef": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.",
|
||||
"suitableNodes": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates.",
|
||||
"": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"driverName": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).",
|
||||
"parametersRef": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.",
|
||||
"suitableNodes": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates.",
|
||||
"structuredParameters": "If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true.",
|
||||
}
|
||||
|
||||
func (ResourceClass) SwaggerDoc() map[string]string {
|
||||
@ -207,6 +259,28 @@ func (ResourceClassList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassList
|
||||
}
|
||||
|
||||
var map_ResourceClassParameters = map[string]string{
|
||||
"": "ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes.",
|
||||
"metadata": "Standard object metadata",
|
||||
"generatedFrom": "If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the class parameters when the parameter reference of the class refers to some unknown type.",
|
||||
"vendorParameters": "VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver.",
|
||||
"filters": "Filters describes additional contraints that must be met when using the class.",
|
||||
}
|
||||
|
||||
func (ResourceClassParameters) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassParameters
|
||||
}
|
||||
|
||||
var map_ResourceClassParametersList = map[string]string{
|
||||
"": "ResourceClassParametersList is a collection of ResourceClassParameters.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of node resource capacity objects.",
|
||||
}
|
||||
|
||||
func (ResourceClassParametersList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassParametersList
|
||||
}
|
||||
|
||||
var map_ResourceClassParametersReference = map[string]string{
|
||||
"": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.",
|
||||
"apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.",
|
||||
@ -219,14 +293,103 @@ func (ResourceClassParametersReference) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassParametersReference
|
||||
}
|
||||
|
||||
var map_ResourceFilter = map[string]string{
|
||||
"": "ResourceFilter is a filter for resources from one particular driver.",
|
||||
"driverName": "DriverName is the name used by the DRA driver kubelet plugin.",
|
||||
}
|
||||
|
||||
func (ResourceFilter) SwaggerDoc() map[string]string {
|
||||
return map_ResourceFilter
|
||||
}
|
||||
|
||||
var map_ResourceFilterModel = map[string]string{
|
||||
"": "ResourceFilterModel must have one and only one field set.",
|
||||
"namedResources": "NamedResources describes a resource filter using the named resources model.",
|
||||
}
|
||||
|
||||
func (ResourceFilterModel) SwaggerDoc() map[string]string {
|
||||
return map_ResourceFilterModel
|
||||
}
|
||||
|
||||
var map_ResourceHandle = map[string]string{
|
||||
"": "ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.",
|
||||
"driverName": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
|
||||
"data": "Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.",
|
||||
"": "ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.",
|
||||
"driverName": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
|
||||
"data": "Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.",
|
||||
"structuredData": "If StructuredData is set, then it needs to be used instead of Data.",
|
||||
}
|
||||
|
||||
func (ResourceHandle) SwaggerDoc() map[string]string {
|
||||
return map_ResourceHandle
|
||||
}
|
||||
|
||||
var map_ResourceModel = map[string]string{
|
||||
"": "ResourceModel must have one and only one field set.",
|
||||
"namedResources": "NamedResources describes available resources using the named resources model.",
|
||||
}
|
||||
|
||||
func (ResourceModel) SwaggerDoc() map[string]string {
|
||||
return map_ResourceModel
|
||||
}
|
||||
|
||||
var map_ResourceRequest = map[string]string{
|
||||
"": "ResourceRequest is a request for resources from one particular driver.",
|
||||
"vendorParameters": "VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.",
|
||||
}
|
||||
|
||||
func (ResourceRequest) SwaggerDoc() map[string]string {
|
||||
return map_ResourceRequest
|
||||
}
|
||||
|
||||
var map_ResourceRequestModel = map[string]string{
|
||||
"": "ResourceRequestModel must have one and only one field set.",
|
||||
"namedResources": "NamedResources describes a request for resources with the named resources model.",
|
||||
}
|
||||
|
||||
func (ResourceRequestModel) SwaggerDoc() map[string]string {
|
||||
return map_ResourceRequestModel
|
||||
}
|
||||
|
||||
var map_ResourceSlice = map[string]string{
|
||||
"": "ResourceSlice provides information about available resources on individual nodes.",
|
||||
"metadata": "Standard object metadata",
|
||||
"nodeName": "NodeName identifies the node which provides the resources if they are local to a node.\n\nA field selector can be used to list only ResourceSlice objects with a certain node name.",
|
||||
"driverName": "DriverName identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.",
|
||||
}
|
||||
|
||||
func (ResourceSlice) SwaggerDoc() map[string]string {
|
||||
return map_ResourceSlice
|
||||
}
|
||||
|
||||
var map_ResourceSliceList = map[string]string{
|
||||
"": "ResourceSliceList is a collection of ResourceSlices.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of node resource capacity objects.",
|
||||
}
|
||||
|
||||
func (ResourceSliceList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceSliceList
|
||||
}
|
||||
|
||||
var map_StructuredResourceHandle = map[string]string{
|
||||
"": "StructuredResourceHandle is the in-tree representation of the allocation result.",
|
||||
"vendorClassParameters": "VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated.",
|
||||
"vendorClaimParameters": "VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated.",
|
||||
"nodeName": "NodeName is the name of the node providing the necessary resources if the resources are local to a node.",
|
||||
"results": "Results lists all allocated driver resources.",
|
||||
}
|
||||
|
||||
func (StructuredResourceHandle) SwaggerDoc() map[string]string {
|
||||
return map_StructuredResourceHandle
|
||||
}
|
||||
|
||||
var map_VendorParameters = map[string]string{
|
||||
"": "VendorParameters are opaque parameters for one particular driver.",
|
||||
"driverName": "DriverName is the name used by the DRA driver kubelet plugin.",
|
||||
"parameters": "Parameters can be arbitrary setup parameters. They are ignored while allocating a claim.",
|
||||
}
|
||||
|
||||
func (VendorParameters) SwaggerDoc() map[string]string {
|
||||
return map_VendorParameters
|
||||
}
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS END HERE
|
||||
|
630
vendor/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go
generated
vendored
630
vendor/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go
generated
vendored
@ -32,7 +32,9 @@ func (in *AllocationResult) DeepCopyInto(out *AllocationResult) {
|
||||
if in.ResourceHandles != nil {
|
||||
in, out := &in.ResourceHandles, &out.ResourceHandles
|
||||
*out = make([]ResourceHandle, len(*in))
|
||||
copy(*out, *in)
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.AvailableOnNodes != nil {
|
||||
in, out := &in.AvailableOnNodes, &out.AvailableOnNodes
|
||||
@ -52,6 +54,273 @@ func (in *AllocationResult) DeepCopy() *AllocationResult {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AllocationResultModel) DeepCopyInto(out *AllocationResultModel) {
|
||||
*out = *in
|
||||
if in.NamedResources != nil {
|
||||
in, out := &in.NamedResources, &out.NamedResources
|
||||
*out = new(NamedResourcesAllocationResult)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResultModel.
|
||||
func (in *AllocationResultModel) DeepCopy() *AllocationResultModel {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AllocationResultModel)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DriverAllocationResult) DeepCopyInto(out *DriverAllocationResult) {
|
||||
*out = *in
|
||||
in.VendorRequestParameters.DeepCopyInto(&out.VendorRequestParameters)
|
||||
in.AllocationResultModel.DeepCopyInto(&out.AllocationResultModel)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriverAllocationResult.
|
||||
func (in *DriverAllocationResult) DeepCopy() *DriverAllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DriverAllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DriverRequests) DeepCopyInto(out *DriverRequests) {
|
||||
*out = *in
|
||||
in.VendorParameters.DeepCopyInto(&out.VendorParameters)
|
||||
if in.Requests != nil {
|
||||
in, out := &in.Requests, &out.Requests
|
||||
*out = make([]ResourceRequest, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriverRequests.
|
||||
func (in *DriverRequests) DeepCopy() *DriverRequests {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DriverRequests)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesAllocationResult) DeepCopyInto(out *NamedResourcesAllocationResult) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAllocationResult.
|
||||
func (in *NamedResourcesAllocationResult) DeepCopy() *NamedResourcesAllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesAllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesAttribute) DeepCopyInto(out *NamedResourcesAttribute) {
|
||||
*out = *in
|
||||
in.NamedResourcesAttributeValue.DeepCopyInto(&out.NamedResourcesAttributeValue)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAttribute.
|
||||
func (in *NamedResourcesAttribute) DeepCopy() *NamedResourcesAttribute {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesAttribute)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesAttributeValue) DeepCopyInto(out *NamedResourcesAttributeValue) {
|
||||
*out = *in
|
||||
if in.QuantityValue != nil {
|
||||
in, out := &in.QuantityValue, &out.QuantityValue
|
||||
x := (*in).DeepCopy()
|
||||
*out = &x
|
||||
}
|
||||
if in.BoolValue != nil {
|
||||
in, out := &in.BoolValue, &out.BoolValue
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.IntValue != nil {
|
||||
in, out := &in.IntValue, &out.IntValue
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
if in.IntSliceValue != nil {
|
||||
in, out := &in.IntSliceValue, &out.IntSliceValue
|
||||
*out = new(NamedResourcesIntSlice)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.StringValue != nil {
|
||||
in, out := &in.StringValue, &out.StringValue
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.StringSliceValue != nil {
|
||||
in, out := &in.StringSliceValue, &out.StringSliceValue
|
||||
*out = new(NamedResourcesStringSlice)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.VersionValue != nil {
|
||||
in, out := &in.VersionValue, &out.VersionValue
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAttributeValue.
|
||||
func (in *NamedResourcesAttributeValue) DeepCopy() *NamedResourcesAttributeValue {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesAttributeValue)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesFilter) DeepCopyInto(out *NamedResourcesFilter) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesFilter.
|
||||
func (in *NamedResourcesFilter) DeepCopy() *NamedResourcesFilter {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesFilter)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesInstance) DeepCopyInto(out *NamedResourcesInstance) {
|
||||
*out = *in
|
||||
if in.Attributes != nil {
|
||||
in, out := &in.Attributes, &out.Attributes
|
||||
*out = make([]NamedResourcesAttribute, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesInstance.
|
||||
func (in *NamedResourcesInstance) DeepCopy() *NamedResourcesInstance {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesInstance)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesIntSlice) DeepCopyInto(out *NamedResourcesIntSlice) {
|
||||
*out = *in
|
||||
if in.Ints != nil {
|
||||
in, out := &in.Ints, &out.Ints
|
||||
*out = make([]int64, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesIntSlice.
|
||||
func (in *NamedResourcesIntSlice) DeepCopy() *NamedResourcesIntSlice {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesIntSlice)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesRequest) DeepCopyInto(out *NamedResourcesRequest) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesRequest.
|
||||
func (in *NamedResourcesRequest) DeepCopy() *NamedResourcesRequest {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesRequest)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesResources) DeepCopyInto(out *NamedResourcesResources) {
|
||||
*out = *in
|
||||
if in.Instances != nil {
|
||||
in, out := &in.Instances, &out.Instances
|
||||
*out = make([]NamedResourcesInstance, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesResources.
|
||||
func (in *NamedResourcesResources) DeepCopy() *NamedResourcesResources {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesResources)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamedResourcesStringSlice) DeepCopyInto(out *NamedResourcesStringSlice) {
|
||||
*out = *in
|
||||
if in.Strings != nil {
|
||||
in, out := &in.Strings, &out.Strings
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesStringSlice.
|
||||
func (in *NamedResourcesStringSlice) DeepCopy() *NamedResourcesStringSlice {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamedResourcesStringSlice)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext) {
|
||||
*out = *in
|
||||
@ -234,6 +503,77 @@ func (in *ResourceClaimList) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimParameters) DeepCopyInto(out *ResourceClaimParameters) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.GeneratedFrom != nil {
|
||||
in, out := &in.GeneratedFrom, &out.GeneratedFrom
|
||||
*out = new(ResourceClaimParametersReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.DriverRequests != nil {
|
||||
in, out := &in.DriverRequests, &out.DriverRequests
|
||||
*out = make([]DriverRequests, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParameters.
|
||||
func (in *ResourceClaimParameters) DeepCopy() *ResourceClaimParameters {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimParameters)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimParameters) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimParametersList) DeepCopyInto(out *ResourceClaimParametersList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClaimParameters, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersList.
|
||||
func (in *ResourceClaimParametersList) DeepCopy() *ResourceClaimParametersList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimParametersList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimParametersList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimParametersReference) DeepCopyInto(out *ResourceClaimParametersReference) {
|
||||
*out = *in
|
||||
@ -411,6 +751,11 @@ func (in *ResourceClass) DeepCopyInto(out *ResourceClass) {
|
||||
*out = new(v1.NodeSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.StructuredParameters != nil {
|
||||
in, out := &in.StructuredParameters, &out.StructuredParameters
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -465,6 +810,84 @@ func (in *ResourceClassList) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClassParameters) DeepCopyInto(out *ResourceClassParameters) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.GeneratedFrom != nil {
|
||||
in, out := &in.GeneratedFrom, &out.GeneratedFrom
|
||||
*out = new(ResourceClassParametersReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.VendorParameters != nil {
|
||||
in, out := &in.VendorParameters, &out.VendorParameters
|
||||
*out = make([]VendorParameters, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Filters != nil {
|
||||
in, out := &in.Filters, &out.Filters
|
||||
*out = make([]ResourceFilter, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParameters.
|
||||
func (in *ResourceClassParameters) DeepCopy() *ResourceClassParameters {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClassParameters)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClassParameters) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClassParametersList) DeepCopyInto(out *ResourceClassParametersList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClassParameters, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersList.
|
||||
func (in *ResourceClassParametersList) DeepCopy() *ResourceClassParametersList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClassParametersList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClassParametersList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClassParametersReference) DeepCopyInto(out *ResourceClassParametersReference) {
|
||||
*out = *in
|
||||
@ -481,9 +904,52 @@ func (in *ResourceClassParametersReference) DeepCopy() *ResourceClassParametersR
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter) {
|
||||
*out = *in
|
||||
in.ResourceFilterModel.DeepCopyInto(&out.ResourceFilterModel)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilter.
|
||||
func (in *ResourceFilter) DeepCopy() *ResourceFilter {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceFilter)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceFilterModel) DeepCopyInto(out *ResourceFilterModel) {
|
||||
*out = *in
|
||||
if in.NamedResources != nil {
|
||||
in, out := &in.NamedResources, &out.NamedResources
|
||||
*out = new(NamedResourcesFilter)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilterModel.
|
||||
func (in *ResourceFilterModel) DeepCopy() *ResourceFilterModel {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceFilterModel)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle) {
|
||||
*out = *in
|
||||
if in.StructuredData != nil {
|
||||
in, out := &in.StructuredData, &out.StructuredData
|
||||
*out = new(StructuredResourceHandle)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -496,3 +962,165 @@ func (in *ResourceHandle) DeepCopy() *ResourceHandle {
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceModel) DeepCopyInto(out *ResourceModel) {
|
||||
*out = *in
|
||||
if in.NamedResources != nil {
|
||||
in, out := &in.NamedResources, &out.NamedResources
|
||||
*out = new(NamedResourcesResources)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceModel.
|
||||
func (in *ResourceModel) DeepCopy() *ResourceModel {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceModel)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceRequest) DeepCopyInto(out *ResourceRequest) {
|
||||
*out = *in
|
||||
in.VendorParameters.DeepCopyInto(&out.VendorParameters)
|
||||
in.ResourceRequestModel.DeepCopyInto(&out.ResourceRequestModel)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequest.
|
||||
func (in *ResourceRequest) DeepCopy() *ResourceRequest {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceRequest)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceRequestModel) DeepCopyInto(out *ResourceRequestModel) {
|
||||
*out = *in
|
||||
if in.NamedResources != nil {
|
||||
in, out := &in.NamedResources, &out.NamedResources
|
||||
*out = new(NamedResourcesRequest)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequestModel.
|
||||
func (in *ResourceRequestModel) DeepCopy() *ResourceRequestModel {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceRequestModel)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceSlice) DeepCopyInto(out *ResourceSlice) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.ResourceModel.DeepCopyInto(&out.ResourceModel)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSlice.
|
||||
func (in *ResourceSlice) DeepCopy() *ResourceSlice {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceSlice)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceSlice) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceSliceList) DeepCopyInto(out *ResourceSliceList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceSlice, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceList.
|
||||
func (in *ResourceSliceList) DeepCopy() *ResourceSliceList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceSliceList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceSliceList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *StructuredResourceHandle) DeepCopyInto(out *StructuredResourceHandle) {
|
||||
*out = *in
|
||||
in.VendorClassParameters.DeepCopyInto(&out.VendorClassParameters)
|
||||
in.VendorClaimParameters.DeepCopyInto(&out.VendorClaimParameters)
|
||||
if in.Results != nil {
|
||||
in, out := &in.Results, &out.Results
|
||||
*out = make([]DriverAllocationResult, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructuredResourceHandle.
|
||||
func (in *StructuredResourceHandle) DeepCopy() *StructuredResourceHandle {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(StructuredResourceHandle)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *VendorParameters) DeepCopyInto(out *VendorParameters) {
|
||||
*out = *in
|
||||
in.Parameters.DeepCopyInto(&out.Parameters)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VendorParameters.
|
||||
func (in *VendorParameters) DeepCopy() *VendorParameters {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(VendorParameters)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
Reference in New Issue
Block a user