mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update kubernetes to 1.26.1
update kubernetes and its dependencies to v1.26.1 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
e9e33fb851
commit
9c8de9471e
24
vendor/k8s.io/api/resource/v1alpha1/doc.go
generated
vendored
Normal file
24
vendor/k8s.io/api/resource/v1alpha1/doc.go
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
Copyright 2022 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.
|
||||
*/
|
||||
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package
|
||||
// +k8s:protobuf-gen=package
|
||||
|
||||
// +groupName=resource.k8s.io
|
||||
|
||||
// Package v1alpha1 is the v1alpha1 version of the resource API.
|
||||
package v1alpha1 // import "k8s.io/api/resource/v1alpha1"
|
4593
vendor/k8s.io/api/resource/v1alpha1/generated.pb.go
generated
vendored
Normal file
4593
vendor/k8s.io/api/resource/v1alpha1/generated.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
371
vendor/k8s.io/api/resource/v1alpha1/generated.proto
generated
vendored
Normal file
371
vendor/k8s.io/api/resource/v1alpha1/generated.proto
generated
vendored
Normal file
@ -0,0 +1,371 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// This file was autogenerated by go-to-protobuf. Do not edit it manually!
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package k8s.io.api.resource.v1alpha1;
|
||||
|
||||
import "k8s.io/api/core/v1/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";
|
||||
|
||||
// Package-wide variables from generator "generated".
|
||||
option go_package = "k8s.io/api/resource/v1alpha1";
|
||||
|
||||
// AllocationResult contains attributed of an allocated resource.
|
||||
message AllocationResult {
|
||||
// ResourceHandle contains arbitrary data returned by the driver after a
|
||||
// successful allocation. This is opaque for
|
||||
// Kubernetes. Driver documentation may explain to users how to
|
||||
// interpret this data if needed.
|
||||
//
|
||||
// The maximum size of this field is 16KiB. This may get
|
||||
// increased in the future, but not reduced.
|
||||
// +optional
|
||||
optional string resourceHandle = 1;
|
||||
|
||||
// This field will get set by the resource driver after it has
|
||||
// allocated the resource driver to inform the scheduler where it can
|
||||
// schedule Pods using the ResourceClaim.
|
||||
//
|
||||
// Setting this field is optional. If null, the resource is available
|
||||
// everywhere.
|
||||
// +optional
|
||||
optional k8s.io.api.core.v1.NodeSelector availableOnNodes = 2;
|
||||
|
||||
// Shareable determines whether the resource supports more
|
||||
// than one consumer at a time.
|
||||
// +optional
|
||||
optional bool shareable = 3;
|
||||
}
|
||||
|
||||
// PodScheduling objects hold information that is needed to schedule
|
||||
// a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
|
||||
// mode.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message PodScheduling {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec describes where resources for the Pod are needed.
|
||||
optional PodSchedulingSpec spec = 2;
|
||||
|
||||
// Status describes where resources for the Pod can be allocated.
|
||||
// +optional
|
||||
optional PodSchedulingStatus status = 3;
|
||||
}
|
||||
|
||||
// PodSchedulingList is a collection of Pod scheduling objects.
|
||||
message PodSchedulingList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of PodScheduling objects.
|
||||
repeated PodScheduling items = 2;
|
||||
}
|
||||
|
||||
// PodSchedulingSpec describes where resources for the Pod are needed.
|
||||
message PodSchedulingSpec {
|
||||
// SelectedNode is the node for which allocation of ResourceClaims that
|
||||
// are referenced by the Pod and that use "WaitForFirstConsumer"
|
||||
// allocation is to be attempted.
|
||||
// +optional
|
||||
optional string selectedNode = 1;
|
||||
|
||||
// PotentialNodes lists nodes where the Pod might be able to run.
|
||||
//
|
||||
// The size of this field is limited to 128. This is large enough for
|
||||
// many clusters. Larger clusters may need more attempts to find a node
|
||||
// that suits all pending resources. This may get increased in the
|
||||
// future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
repeated string potentialNodes = 2;
|
||||
}
|
||||
|
||||
// PodSchedulingStatus describes where resources for the Pod can be allocated.
|
||||
message PodSchedulingStatus {
|
||||
// ResourceClaims describes resource availability for each
|
||||
// pod.spec.resourceClaim entry where the corresponding ResourceClaim
|
||||
// uses "WaitForFirstConsumer" allocation mode.
|
||||
//
|
||||
// +listType=map
|
||||
// +listMapKey=name
|
||||
// +optional
|
||||
repeated ResourceClaimSchedulingStatus resourceClaims = 1;
|
||||
}
|
||||
|
||||
// ResourceClaim describes which resources are needed by a resource consumer.
|
||||
// Its status tracks whether the resource has been allocated and what the
|
||||
// resulting attributes are.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message ResourceClaim {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec describes the desired attributes of a resource that then needs
|
||||
// to be allocated. It can only be set once when creating the
|
||||
// ResourceClaim.
|
||||
optional ResourceClaimSpec spec = 2;
|
||||
|
||||
// Status describes whether the resource is available and with which
|
||||
// attributes.
|
||||
// +optional
|
||||
optional ResourceClaimStatus status = 3;
|
||||
}
|
||||
|
||||
// ResourceClaimConsumerReference contains enough information to let you
|
||||
// locate the consumer of a ResourceClaim. The user must be a resource in the same
|
||||
// namespace as the ResourceClaim.
|
||||
message ResourceClaimConsumerReference {
|
||||
// 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.
|
||||
// +optional
|
||||
optional string apiGroup = 1;
|
||||
|
||||
// Resource is the type of resource being referenced, for example "pods".
|
||||
optional string resource = 3;
|
||||
|
||||
// Name is the name of resource being referenced.
|
||||
optional string name = 4;
|
||||
|
||||
// UID identifies exactly one incarnation of the resource.
|
||||
optional string uid = 5;
|
||||
}
|
||||
|
||||
// ResourceClaimList is a collection of claims.
|
||||
message ResourceClaimList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource claims.
|
||||
repeated ResourceClaim 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.
|
||||
message ResourceClaimParametersReference {
|
||||
// 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.
|
||||
// +optional
|
||||
optional string apiGroup = 1;
|
||||
|
||||
// Kind is the type of resource being referenced. This is the same
|
||||
// value as in the parameter object's metadata, for example "ConfigMap".
|
||||
optional string kind = 2;
|
||||
|
||||
// Name is the name of resource being referenced.
|
||||
optional string name = 3;
|
||||
}
|
||||
|
||||
// ResourceClaimSchedulingStatus contains information about one particular
|
||||
// ResourceClaim with "WaitForFirstConsumer" allocation mode.
|
||||
message ResourceClaimSchedulingStatus {
|
||||
// Name matches the pod.spec.resourceClaims[*].Name field.
|
||||
// +optional
|
||||
optional string name = 1;
|
||||
|
||||
// UnsuitableNodes lists nodes that the ResourceClaim cannot be
|
||||
// allocated for.
|
||||
//
|
||||
// The size of this field is limited to 128, the same as for
|
||||
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
||||
// future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
repeated string unsuitableNodes = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimSpec defines how a resource is to be allocated.
|
||||
message ResourceClaimSpec {
|
||||
// ResourceClassName references the driver and additional parameters
|
||||
// via the name of a ResourceClass that was created as part of the
|
||||
// driver deployment.
|
||||
optional string resourceClassName = 1;
|
||||
|
||||
// ParametersRef references a separate object with arbitrary parameters
|
||||
// that will be used by the driver when allocating a resource for the
|
||||
// claim.
|
||||
//
|
||||
// The object must be in the same namespace as the ResourceClaim.
|
||||
// +optional
|
||||
optional ResourceClaimParametersReference parametersRef = 2;
|
||||
|
||||
// Allocation can start immediately or when a Pod wants to use the
|
||||
// resource. "WaitForFirstConsumer" is the default.
|
||||
// +optional
|
||||
optional string allocationMode = 3;
|
||||
}
|
||||
|
||||
// ResourceClaimStatus tracks whether the resource has been allocated and what
|
||||
// the resulting attributes are.
|
||||
message ResourceClaimStatus {
|
||||
// DriverName is a copy of the driver name from the ResourceClass at
|
||||
// the time when allocation started.
|
||||
// +optional
|
||||
optional string driverName = 1;
|
||||
|
||||
// Allocation is set by the resource driver once a resource has been
|
||||
// allocated successfully. If this is not specified, the resource is
|
||||
// not yet allocated.
|
||||
// +optional
|
||||
optional AllocationResult allocation = 2;
|
||||
|
||||
// ReservedFor indicates which entities are currently allowed to use
|
||||
// the claim. A Pod which references a ResourceClaim which is not
|
||||
// reserved for that Pod will not be started.
|
||||
//
|
||||
// There can be at most 32 such reservations. This may get increased in
|
||||
// the future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
repeated ResourceClaimConsumerReference reservedFor = 3;
|
||||
|
||||
// DeallocationRequested indicates that a ResourceClaim is to be
|
||||
// deallocated.
|
||||
//
|
||||
// The driver then must deallocate this claim and reset the field
|
||||
// together with clearing the Allocation field.
|
||||
//
|
||||
// While DeallocationRequested is set, no new consumers may be added to
|
||||
// ReservedFor.
|
||||
// +optional
|
||||
optional bool deallocationRequested = 4;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplate is used to produce ResourceClaim objects.
|
||||
message ResourceClaimTemplate {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Describes the ResourceClaim that is to be generated.
|
||||
//
|
||||
// This field is immutable. A ResourceClaim will get created by the
|
||||
// control plane for a Pod when needed and then not get updated
|
||||
// anymore.
|
||||
optional ResourceClaimTemplateSpec spec = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplateList is a collection of claim templates.
|
||||
message ResourceClaimTemplateList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource claim templates.
|
||||
repeated ResourceClaimTemplate items = 2;
|
||||
}
|
||||
|
||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
||||
message ResourceClaimTemplateSpec {
|
||||
// ObjectMeta may contain labels and annotations that will be copied into the PVC
|
||||
// when creating it. No other fields are allowed and will be rejected during
|
||||
// validation.
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Spec for the ResourceClaim. The entire content is copied unchanged
|
||||
// into the ResourceClaim that gets created from this template. The
|
||||
// same fields as in a ResourceClaim are also valid here.
|
||||
optional ResourceClaimSpec spec = 2;
|
||||
}
|
||||
|
||||
// ResourceClass is used by administrators to influence how resources
|
||||
// are allocated.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
message ResourceClass {
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// DriverName defines the name of the dynamic resource driver that is
|
||||
// used for allocation of a ResourceClaim that uses this class.
|
||||
//
|
||||
// Resource drivers have a unique name in forward domain order
|
||||
// (acme.example.com).
|
||||
optional string driverName = 2;
|
||||
|
||||
// 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.
|
||||
// +optional
|
||||
optional ResourceClassParametersReference parametersRef = 3;
|
||||
|
||||
// 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.
|
||||
//
|
||||
// Setting this field is optional. If null, all nodes are candidates.
|
||||
// +optional
|
||||
optional k8s.io.api.core.v1.NodeSelector suitableNodes = 4;
|
||||
}
|
||||
|
||||
// ResourceClassList is a collection of classes.
|
||||
message ResourceClassList {
|
||||
// Standard list metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
// Items is the list of resource classes.
|
||||
repeated ResourceClass items = 2;
|
||||
}
|
||||
|
||||
// ResourceClassParametersReference contains enough information to let you
|
||||
// locate the parameters for a ResourceClass.
|
||||
message ResourceClassParametersReference {
|
||||
// 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.
|
||||
// +optional
|
||||
optional string apiGroup = 1;
|
||||
|
||||
// Kind is the type of resource being referenced. This is the same
|
||||
// value as in the parameter object's metadata.
|
||||
optional string kind = 2;
|
||||
|
||||
// Name is the name of resource being referenced.
|
||||
optional string name = 3;
|
||||
|
||||
// Namespace that contains the referenced resource. Must be empty
|
||||
// for cluster-scoped resources and non-empty for namespaced
|
||||
// resources.
|
||||
// +optional
|
||||
optional string namespace = 4;
|
||||
}
|
||||
|
63
vendor/k8s.io/api/resource/v1alpha1/register.go
generated
vendored
Normal file
63
vendor/k8s.io/api/resource/v1alpha1/register.go
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
/*
|
||||
Copyright 2022 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 v1alpha1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
// GroupName is the group name use in this package
|
||||
const GroupName = "resource.k8s.io"
|
||||
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
||||
|
||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
||||
func Resource(resource string) schema.GroupResource {
|
||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
||||
}
|
||||
|
||||
var (
|
||||
// We only register manually written functions here. The registration of the
|
||||
// generated functions takes place in the generated files. The separation
|
||||
// makes the code compile even when the generated files are missing.
|
||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
// Adds the list of known types to the given scheme.
|
||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||
&ResourceClass{},
|
||||
&ResourceClassList{},
|
||||
&ResourceClaim{},
|
||||
&ResourceClaimList{},
|
||||
&ResourceClaimTemplate{},
|
||||
&ResourceClaimTemplateList{},
|
||||
&PodScheduling{},
|
||||
&PodSchedulingList{},
|
||||
)
|
||||
|
||||
// Add common types
|
||||
scheme.AddKnownTypes(SchemeGroupVersion, &metav1.Status{})
|
||||
|
||||
// Add the watch version that applies
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
429
vendor/k8s.io/api/resource/v1alpha1/types.go
generated
vendored
Normal file
429
vendor/k8s.io/api/resource/v1alpha1/types.go
generated
vendored
Normal file
@ -0,0 +1,429 @@
|
||||
/*
|
||||
Copyright 2022 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 v1alpha1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// ResourceClaim describes which resources are needed by a resource consumer.
|
||||
// Its status tracks whether the resource has been allocated and what the
|
||||
// resulting attributes are.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
type ResourceClaim struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Spec describes the desired attributes of a resource that then needs
|
||||
// to be allocated. It can only be set once when creating the
|
||||
// ResourceClaim.
|
||||
Spec ResourceClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"`
|
||||
|
||||
// Status describes whether the resource is available and with which
|
||||
// attributes.
|
||||
// +optional
|
||||
Status ResourceClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
||||
}
|
||||
|
||||
// ResourceClaimSpec defines how a resource is to be allocated.
|
||||
type ResourceClaimSpec struct {
|
||||
// ResourceClassName references the driver and additional parameters
|
||||
// via the name of a ResourceClass that was created as part of the
|
||||
// driver deployment.
|
||||
ResourceClassName string `json:"resourceClassName" protobuf:"bytes,1,name=resourceClassName"`
|
||||
|
||||
// ParametersRef references a separate object with arbitrary parameters
|
||||
// that will be used by the driver when allocating a resource for the
|
||||
// claim.
|
||||
//
|
||||
// The object must be in the same namespace as the ResourceClaim.
|
||||
// +optional
|
||||
ParametersRef *ResourceClaimParametersReference `json:"parametersRef,omitempty" protobuf:"bytes,2,opt,name=parametersRef"`
|
||||
|
||||
// Allocation can start immediately or when a Pod wants to use the
|
||||
// resource. "WaitForFirstConsumer" is the default.
|
||||
// +optional
|
||||
AllocationMode AllocationMode `json:"allocationMode,omitempty" protobuf:"bytes,3,opt,name=allocationMode"`
|
||||
}
|
||||
|
||||
// AllocationMode describes whether a ResourceClaim gets allocated immediately
|
||||
// when it gets created (AllocationModeImmediate) or whether allocation is
|
||||
// delayed until it is needed for a Pod
|
||||
// (AllocationModeWaitForFirstConsumer). Other modes might get added in the
|
||||
// future.
|
||||
type AllocationMode string
|
||||
|
||||
const (
|
||||
// When a ResourceClaim has AllocationModeWaitForFirstConsumer, allocation is
|
||||
// delayed until a Pod gets scheduled that needs the ResourceClaim. The
|
||||
// scheduler will consider all resource requirements of that Pod and
|
||||
// trigger allocation for a node that fits the Pod.
|
||||
AllocationModeWaitForFirstConsumer AllocationMode = "WaitForFirstConsumer"
|
||||
|
||||
// When a ResourceClaim has AllocationModeImmediate, allocation starts
|
||||
// as soon as the ResourceClaim gets created. This is done without
|
||||
// considering the needs of Pods that will use the ResourceClaim
|
||||
// because those Pods are not known yet.
|
||||
AllocationModeImmediate AllocationMode = "Immediate"
|
||||
)
|
||||
|
||||
// ResourceClaimStatus tracks whether the resource has been allocated and what
|
||||
// the resulting attributes are.
|
||||
type ResourceClaimStatus struct {
|
||||
// DriverName is a copy of the driver name from the ResourceClass at
|
||||
// the time when allocation started.
|
||||
// +optional
|
||||
DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"`
|
||||
|
||||
// Allocation is set by the resource driver once a resource has been
|
||||
// allocated successfully. If this is not specified, the resource is
|
||||
// not yet allocated.
|
||||
// +optional
|
||||
Allocation *AllocationResult `json:"allocation,omitempty" protobuf:"bytes,2,opt,name=allocation"`
|
||||
|
||||
// ReservedFor indicates which entities are currently allowed to use
|
||||
// the claim. A Pod which references a ResourceClaim which is not
|
||||
// reserved for that Pod will not be started.
|
||||
//
|
||||
// There can be at most 32 such reservations. This may get increased in
|
||||
// the future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,3,opt,name=reservedFor"`
|
||||
|
||||
// DeallocationRequested indicates that a ResourceClaim is to be
|
||||
// deallocated.
|
||||
//
|
||||
// The driver then must deallocate this claim and reset the field
|
||||
// together with clearing the Allocation field.
|
||||
//
|
||||
// While DeallocationRequested is set, no new consumers may be added to
|
||||
// ReservedFor.
|
||||
// +optional
|
||||
DeallocationRequested bool `json:"deallocationRequested,omitempty" protobuf:"varint,4,opt,name=deallocationRequested"`
|
||||
}
|
||||
|
||||
// ReservedForMaxSize is the maximum number of entries in
|
||||
// claim.status.reservedFor.
|
||||
const ResourceClaimReservedForMaxSize = 32
|
||||
|
||||
// AllocationResult contains attributed of an allocated resource.
|
||||
type AllocationResult struct {
|
||||
// ResourceHandle contains arbitrary data returned by the driver after a
|
||||
// successful allocation. This is opaque for
|
||||
// Kubernetes. Driver documentation may explain to users how to
|
||||
// interpret this data if needed.
|
||||
//
|
||||
// The maximum size of this field is 16KiB. This may get
|
||||
// increased in the future, but not reduced.
|
||||
// +optional
|
||||
ResourceHandle string `json:"resourceHandle,omitempty" protobuf:"bytes,1,opt,name=resourceHandle"`
|
||||
|
||||
// This field will get set by the resource driver after it has
|
||||
// allocated the resource driver to inform the scheduler where it can
|
||||
// schedule Pods using the ResourceClaim.
|
||||
//
|
||||
// Setting this field is optional. If null, the resource is available
|
||||
// everywhere.
|
||||
// +optional
|
||||
AvailableOnNodes *v1.NodeSelector `json:"availableOnNodes,omitempty" protobuf:"bytes,2,opt,name=availableOnNodes"`
|
||||
|
||||
// Shareable determines whether the resource supports more
|
||||
// than one consumer at a time.
|
||||
// +optional
|
||||
Shareable bool `json:"shareable,omitempty" protobuf:"varint,3,opt,name=shareable"`
|
||||
}
|
||||
|
||||
// ResourceHandleMaxSize is the maximum size of allocation.resourceHandle.
|
||||
const ResourceHandleMaxSize = 16 * 1024
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// ResourceClaimList is a collection of claims.
|
||||
type ResourceClaimList 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 resource claims.
|
||||
Items []ResourceClaim `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.26
|
||||
|
||||
// PodScheduling objects hold information that is needed to schedule
|
||||
// a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
|
||||
// mode.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
type PodScheduling struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Spec describes where resources for the Pod are needed.
|
||||
Spec PodSchedulingSpec `json:"spec" protobuf:"bytes,2,name=spec"`
|
||||
|
||||
// Status describes where resources for the Pod can be allocated.
|
||||
// +optional
|
||||
Status PodSchedulingStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
||||
}
|
||||
|
||||
// PodSchedulingSpec describes where resources for the Pod are needed.
|
||||
type PodSchedulingSpec struct {
|
||||
// SelectedNode is the node for which allocation of ResourceClaims that
|
||||
// are referenced by the Pod and that use "WaitForFirstConsumer"
|
||||
// allocation is to be attempted.
|
||||
// +optional
|
||||
SelectedNode string `json:"selectedNode,omitempty" protobuf:"bytes,1,opt,name=selectedNode"`
|
||||
|
||||
// PotentialNodes lists nodes where the Pod might be able to run.
|
||||
//
|
||||
// The size of this field is limited to 128. This is large enough for
|
||||
// many clusters. Larger clusters may need more attempts to find a node
|
||||
// that suits all pending resources. This may get increased in the
|
||||
// future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
PotentialNodes []string `json:"potentialNodes,omitempty" protobuf:"bytes,2,opt,name=potentialNodes"`
|
||||
}
|
||||
|
||||
// PodSchedulingStatus describes where resources for the Pod can be allocated.
|
||||
type PodSchedulingStatus struct {
|
||||
// ResourceClaims describes resource availability for each
|
||||
// pod.spec.resourceClaim entry where the corresponding ResourceClaim
|
||||
// uses "WaitForFirstConsumer" allocation mode.
|
||||
//
|
||||
// +listType=map
|
||||
// +listMapKey=name
|
||||
// +optional
|
||||
ResourceClaims []ResourceClaimSchedulingStatus `json:"resourceClaims,omitempty" protobuf:"bytes,1,opt,name=resourceClaims"`
|
||||
|
||||
// If there ever is a need to support other kinds of resources
|
||||
// than ResourceClaim, then new fields could get added here
|
||||
// for those other resources.
|
||||
}
|
||||
|
||||
// ResourceClaimSchedulingStatus contains information about one particular
|
||||
// ResourceClaim with "WaitForFirstConsumer" allocation mode.
|
||||
type ResourceClaimSchedulingStatus struct {
|
||||
// Name matches the pod.spec.resourceClaims[*].Name field.
|
||||
// +optional
|
||||
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
|
||||
|
||||
// UnsuitableNodes lists nodes that the ResourceClaim cannot be
|
||||
// allocated for.
|
||||
//
|
||||
// The size of this field is limited to 128, the same as for
|
||||
// PodSchedulingSpec.PotentialNodes. This may get increased in the
|
||||
// future, but not reduced.
|
||||
//
|
||||
// +listType=set
|
||||
// +optional
|
||||
UnsuitableNodes []string `json:"unsuitableNodes,omitempty" protobuf:"bytes,2,opt,name=unsuitableNodes"`
|
||||
}
|
||||
|
||||
// PodSchedulingNodeListMaxSize defines the maximum number of entries in the
|
||||
// node lists that are stored in PodScheduling objects. This limit is part
|
||||
// of the API.
|
||||
const PodSchedulingNodeListMaxSize = 128
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// PodSchedulingList is a collection of Pod scheduling objects.
|
||||
type PodSchedulingList 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 PodScheduling objects.
|
||||
Items []PodScheduling `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.26
|
||||
|
||||
// ResourceClass is used by administrators to influence how resources
|
||||
// are allocated.
|
||||
//
|
||||
// This is an alpha type and requires enabling the DynamicResourceAllocation
|
||||
// feature gate.
|
||||
type ResourceClass struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// DriverName defines the name of the dynamic resource driver that is
|
||||
// used for allocation of a ResourceClaim that uses this class.
|
||||
//
|
||||
// Resource drivers have a unique name in forward domain order
|
||||
// (acme.example.com).
|
||||
DriverName string `json:"driverName" protobuf:"bytes,2,name=driverName"`
|
||||
|
||||
// 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.
|
||||
// +optional
|
||||
ParametersRef *ResourceClassParametersReference `json:"parametersRef,omitempty" protobuf:"bytes,3,opt,name=parametersRef"`
|
||||
|
||||
// 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.
|
||||
//
|
||||
// Setting this field is optional. If null, all nodes are candidates.
|
||||
// +optional
|
||||
SuitableNodes *v1.NodeSelector `json:"suitableNodes,omitempty" protobuf:"bytes,4,opt,name=suitableNodes"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// ResourceClassList is a collection of classes.
|
||||
type ResourceClassList 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 resource classes.
|
||||
Items []ResourceClass `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
||||
|
||||
// ResourceClassParametersReference contains enough information to let you
|
||||
// locate the parameters for a ResourceClass.
|
||||
type ResourceClassParametersReference struct {
|
||||
// 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.
|
||||
// +optional
|
||||
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"`
|
||||
// Kind is the type of resource being referenced. This is the same
|
||||
// value as in the parameter object's metadata.
|
||||
Kind string `json:"kind" protobuf:"bytes,2,name=kind"`
|
||||
// Name is the name of resource being referenced.
|
||||
Name string `json:"name" protobuf:"bytes,3,name=name"`
|
||||
// Namespace that contains the referenced resource. Must be empty
|
||||
// for cluster-scoped resources and non-empty for namespaced
|
||||
// resources.
|
||||
// +optional
|
||||
Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"`
|
||||
}
|
||||
|
||||
// ResourceClaimParametersReference contains enough information to let you
|
||||
// locate the parameters for a ResourceClaim. The object must be in the same
|
||||
// namespace as the ResourceClaim.
|
||||
type ResourceClaimParametersReference struct {
|
||||
// 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.
|
||||
// +optional
|
||||
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"`
|
||||
// Kind is the type of resource being referenced. This is the same
|
||||
// value as in the parameter object's metadata, for example "ConfigMap".
|
||||
Kind string `json:"kind" protobuf:"bytes,2,name=kind"`
|
||||
// Name is the name of resource being referenced.
|
||||
Name string `json:"name" protobuf:"bytes,3,name=name"`
|
||||
}
|
||||
|
||||
// ResourceClaimConsumerReference contains enough information to let you
|
||||
// locate the consumer of a ResourceClaim. The user must be a resource in the same
|
||||
// namespace as the ResourceClaim.
|
||||
type ResourceClaimConsumerReference struct {
|
||||
// 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.
|
||||
// +optional
|
||||
APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"`
|
||||
// Resource is the type of resource being referenced, for example "pods".
|
||||
Resource string `json:"resource" protobuf:"bytes,3,name=resource"`
|
||||
// Name is the name of resource being referenced.
|
||||
Name string `json:"name" protobuf:"bytes,4,name=name"`
|
||||
// UID identifies exactly one incarnation of the resource.
|
||||
UID types.UID `json:"uid" protobuf:"bytes,5,name=uid"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// ResourceClaimTemplate is used to produce ResourceClaim objects.
|
||||
type ResourceClaimTemplate struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
// Standard object metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Describes the ResourceClaim that is to be generated.
|
||||
//
|
||||
// This field is immutable. A ResourceClaim will get created by the
|
||||
// control plane for a Pod when needed and then not get updated
|
||||
// anymore.
|
||||
Spec ResourceClaimTemplateSpec `json:"spec" protobuf:"bytes,2,name=spec"`
|
||||
}
|
||||
|
||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
||||
type ResourceClaimTemplateSpec struct {
|
||||
// ObjectMeta may contain labels and annotations that will be copied into the PVC
|
||||
// when creating it. No other fields are allowed and will be rejected during
|
||||
// validation.
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// Spec for the ResourceClaim. The entire content is copied unchanged
|
||||
// into the ResourceClaim that gets created from this template. The
|
||||
// same fields as in a ResourceClaim are also valid here.
|
||||
Spec ResourceClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.26
|
||||
|
||||
// ResourceClaimTemplateList is a collection of claim templates.
|
||||
type ResourceClaimTemplateList 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 resource claim templates.
|
||||
Items []ResourceClaimTemplate `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||
}
|
222
vendor/k8s.io/api/resource/v1alpha1/types_swagger_doc_generated.go
generated
vendored
Normal file
222
vendor/k8s.io/api/resource/v1alpha1/types_swagger_doc_generated.go
generated
vendored
Normal file
@ -0,0 +1,222 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package v1alpha1
|
||||
|
||||
// This file contains a collection of methods that can be used from go-restful to
|
||||
// generate Swagger API documentation for its models. Please read this PR for more
|
||||
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
|
||||
//
|
||||
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
|
||||
// they are on one line! For multiple line or blocks that you want to ignore use ---.
|
||||
// Any context after a --- is ignored.
|
||||
//
|
||||
// Those methods can be generated by using hack/update-generated-swagger-docs.sh
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||
var map_AllocationResult = map[string]string{
|
||||
"": "AllocationResult contains attributed of an allocated resource.",
|
||||
"resourceHandle": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.",
|
||||
"availableOnNodes": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere.",
|
||||
"shareable": "Shareable determines whether the resource supports more than one consumer at a time.",
|
||||
}
|
||||
|
||||
func (AllocationResult) SwaggerDoc() map[string]string {
|
||||
return map_AllocationResult
|
||||
}
|
||||
|
||||
var map_PodScheduling = map[string]string{
|
||||
"": "PodScheduling 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",
|
||||
"spec": "Spec describes where resources for the Pod are needed.",
|
||||
"status": "Status describes where resources for the Pod can be allocated.",
|
||||
}
|
||||
|
||||
func (PodScheduling) SwaggerDoc() map[string]string {
|
||||
return map_PodScheduling
|
||||
}
|
||||
|
||||
var map_PodSchedulingList = map[string]string{
|
||||
"": "PodSchedulingList is a collection of Pod scheduling objects.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of PodScheduling objects.",
|
||||
}
|
||||
|
||||
func (PodSchedulingList) SwaggerDoc() map[string]string {
|
||||
return map_PodSchedulingList
|
||||
}
|
||||
|
||||
var map_PodSchedulingSpec = map[string]string{
|
||||
"": "PodSchedulingSpec describes where resources for the Pod are needed.",
|
||||
"selectedNode": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
|
||||
"potentialNodes": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.",
|
||||
}
|
||||
|
||||
func (PodSchedulingSpec) SwaggerDoc() map[string]string {
|
||||
return map_PodSchedulingSpec
|
||||
}
|
||||
|
||||
var map_PodSchedulingStatus = map[string]string{
|
||||
"": "PodSchedulingStatus describes where resources for the Pod can be allocated.",
|
||||
"resourceClaims": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.",
|
||||
}
|
||||
|
||||
func (PodSchedulingStatus) SwaggerDoc() map[string]string {
|
||||
return map_PodSchedulingStatus
|
||||
}
|
||||
|
||||
var map_ResourceClaim = map[string]string{
|
||||
"": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.",
|
||||
"status": "Status describes whether the resource is available and with which attributes.",
|
||||
}
|
||||
|
||||
func (ResourceClaim) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaim
|
||||
}
|
||||
|
||||
var map_ResourceClaimConsumerReference = map[string]string{
|
||||
"": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource 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.",
|
||||
"resource": "Resource is the type of resource being referenced, for example \"pods\".",
|
||||
"name": "Name is the name of resource being referenced.",
|
||||
"uid": "UID identifies exactly one incarnation of the resource.",
|
||||
}
|
||||
|
||||
func (ResourceClaimConsumerReference) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimConsumerReference
|
||||
}
|
||||
|
||||
var map_ResourceClaimList = map[string]string{
|
||||
"": "ResourceClaimList is a collection of claims.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource claims.",
|
||||
}
|
||||
|
||||
func (ResourceClaimList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimList
|
||||
}
|
||||
|
||||
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.",
|
||||
"kind": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".",
|
||||
"name": "Name is the name of resource being referenced.",
|
||||
}
|
||||
|
||||
func (ResourceClaimParametersReference) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimParametersReference
|
||||
}
|
||||
|
||||
var map_ResourceClaimSchedulingStatus = map[string]string{
|
||||
"": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.",
|
||||
"name": "Name matches the pod.spec.resourceClaims[*].Name field.",
|
||||
"unsuitableNodes": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.",
|
||||
}
|
||||
|
||||
func (ResourceClaimSchedulingStatus) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimSchedulingStatus
|
||||
}
|
||||
|
||||
var map_ResourceClaimSpec = map[string]string{
|
||||
"": "ResourceClaimSpec defines how a resource is to be allocated.",
|
||||
"resourceClassName": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.",
|
||||
"parametersRef": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim.",
|
||||
"allocationMode": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.",
|
||||
}
|
||||
|
||||
func (ResourceClaimSpec) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimSpec
|
||||
}
|
||||
|
||||
var map_ResourceClaimStatus = map[string]string{
|
||||
"": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.",
|
||||
"driverName": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.",
|
||||
"allocation": "Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated.",
|
||||
"reservedFor": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.",
|
||||
"deallocationRequested": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.",
|
||||
}
|
||||
|
||||
func (ResourceClaimStatus) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimStatus
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplate = map[string]string{
|
||||
"": "ResourceClaimTemplate is used to produce ResourceClaim objects.",
|
||||
"metadata": "Standard object metadata",
|
||||
"spec": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplate) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplate
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplateList = map[string]string{
|
||||
"": "ResourceClaimTemplateList is a collection of claim templates.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource claim templates.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplateList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplateList
|
||||
}
|
||||
|
||||
var map_ResourceClaimTemplateSpec = map[string]string{
|
||||
"": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.",
|
||||
"metadata": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.",
|
||||
"spec": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.",
|
||||
}
|
||||
|
||||
func (ResourceClaimTemplateSpec) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClaimTemplateSpec
|
||||
}
|
||||
|
||||
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.",
|
||||
}
|
||||
|
||||
func (ResourceClass) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClass
|
||||
}
|
||||
|
||||
var map_ResourceClassList = map[string]string{
|
||||
"": "ResourceClassList is a collection of classes.",
|
||||
"metadata": "Standard list metadata",
|
||||
"items": "Items is the list of resource classes.",
|
||||
}
|
||||
|
||||
func (ResourceClassList) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassList
|
||||
}
|
||||
|
||||
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.",
|
||||
"kind": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.",
|
||||
"name": "Name is the name of resource being referenced.",
|
||||
"namespace": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.",
|
||||
}
|
||||
|
||||
func (ResourceClassParametersReference) SwaggerDoc() map[string]string {
|
||||
return map_ResourceClassParametersReference
|
||||
}
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS END HERE
|
477
vendor/k8s.io/api/resource/v1alpha1/zz_generated.deepcopy.go
generated
vendored
Normal file
477
vendor/k8s.io/api/resource/v1alpha1/zz_generated.deepcopy.go
generated
vendored
Normal file
@ -0,0 +1,477 @@
|
||||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AllocationResult) DeepCopyInto(out *AllocationResult) {
|
||||
*out = *in
|
||||
if in.AvailableOnNodes != nil {
|
||||
in, out := &in.AvailableOnNodes, &out.AvailableOnNodes
|
||||
*out = new(v1.NodeSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.
|
||||
func (in *AllocationResult) DeepCopy() *AllocationResult {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AllocationResult)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *PodScheduling) DeepCopyInto(out *PodScheduling) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodScheduling.
|
||||
func (in *PodScheduling) DeepCopy() *PodScheduling {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(PodScheduling)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *PodScheduling) 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 *PodSchedulingList) DeepCopyInto(out *PodSchedulingList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]PodScheduling, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingList.
|
||||
func (in *PodSchedulingList) DeepCopy() *PodSchedulingList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(PodSchedulingList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *PodSchedulingList) 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 *PodSchedulingSpec) DeepCopyInto(out *PodSchedulingSpec) {
|
||||
*out = *in
|
||||
if in.PotentialNodes != nil {
|
||||
in, out := &in.PotentialNodes, &out.PotentialNodes
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingSpec.
|
||||
func (in *PodSchedulingSpec) DeepCopy() *PodSchedulingSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(PodSchedulingSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *PodSchedulingStatus) DeepCopyInto(out *PodSchedulingStatus) {
|
||||
*out = *in
|
||||
if in.ResourceClaims != nil {
|
||||
in, out := &in.ResourceClaims, &out.ResourceClaims
|
||||
*out = make([]ResourceClaimSchedulingStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingStatus.
|
||||
func (in *PodSchedulingStatus) DeepCopy() *PodSchedulingStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(PodSchedulingStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim.
|
||||
func (in *ResourceClaim) DeepCopy() *ResourceClaim {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaim)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaim) 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 *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference.
|
||||
func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimConsumerReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClaim, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList.
|
||||
func (in *ResourceClaimList) DeepCopy() *ResourceClaimList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimList) 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
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersReference.
|
||||
func (in *ResourceClaimParametersReference) DeepCopy() *ResourceClaimParametersReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimParametersReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimSchedulingStatus) DeepCopyInto(out *ResourceClaimSchedulingStatus) {
|
||||
*out = *in
|
||||
if in.UnsuitableNodes != nil {
|
||||
in, out := &in.UnsuitableNodes, &out.UnsuitableNodes
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSchedulingStatus.
|
||||
func (in *ResourceClaimSchedulingStatus) DeepCopy() *ResourceClaimSchedulingStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimSchedulingStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
|
||||
*out = *in
|
||||
if in.ParametersRef != nil {
|
||||
in, out := &in.ParametersRef, &out.ParametersRef
|
||||
*out = new(ResourceClaimParametersReference)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec.
|
||||
func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) {
|
||||
*out = *in
|
||||
if in.Allocation != nil {
|
||||
in, out := &in.Allocation, &out.Allocation
|
||||
*out = new(AllocationResult)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.ReservedFor != nil {
|
||||
in, out := &in.ReservedFor, &out.ReservedFor
|
||||
*out = make([]ResourceClaimConsumerReference, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus.
|
||||
func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate.
|
||||
func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplate)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimTemplate) 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 *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClaimTemplate, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList.
|
||||
func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplateList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClaimTemplateList) 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 *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) {
|
||||
*out = *in
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec.
|
||||
func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClaimTemplateSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ResourceClass) DeepCopyInto(out *ResourceClass) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.ParametersRef != nil {
|
||||
in, out := &in.ParametersRef, &out.ParametersRef
|
||||
*out = new(ResourceClassParametersReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.SuitableNodes != nil {
|
||||
in, out := &in.SuitableNodes, &out.SuitableNodes
|
||||
*out = new(v1.NodeSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClass.
|
||||
func (in *ResourceClass) DeepCopy() *ResourceClass {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClass)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClass) 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 *ResourceClassList) DeepCopyInto(out *ResourceClassList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ResourceClass, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassList.
|
||||
func (in *ResourceClassList) DeepCopy() *ResourceClassList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClassList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ResourceClassList) 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
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersReference.
|
||||
func (in *ResourceClassParametersReference) DeepCopy() *ResourceClassParametersReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ResourceClassParametersReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
Reference in New Issue
Block a user