v1alpha2

package
v0.30.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha2 is the v1alpha2 version of the resource API.

Index

Constants

View Source
const AllocationResultResourceHandlesMaxSize = 32

AllocationResultResourceHandlesMaxSize represents the maximum number of entries in allocation.resourceHandles.

View Source
const (
	// Finalizer is the finalizer that gets set for claims
	// which were allocated through a builtin controller.
	Finalizer = "dra.k8s.io/delete-protection"
)
View Source
const GroupName = "resource.k8s.io"

GroupName is the group name use in this package

View Source
const PodSchedulingNodeListMaxSize = 128

PodSchedulingNodeListMaxSize defines the maximum number of entries in the node lists that are stored in PodSchedulingContext objects. This limit is part of the API.

View Source
const ResourceClaimReservedForMaxSize = 32

ReservedForMaxSize is the maximum number of entries in claim.status.reservedFor.

View Source
const ResourceHandleDataMaxSize = 16 * 1024

ResourceHandleDataMaxSize represents the maximum size of resourceHandle.data.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AllocationMode

type AllocationMode string

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.

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"
)

type AllocationResult

type AllocationResult struct {
	// ResourceHandles contain the state associated with an allocation that
	// should be maintained throughout the lifetime of a claim. Each
	// ResourceHandle contains data that should be passed to a specific kubelet
	// plugin once it lands on a node. This data is returned by the driver
	// after a successful allocation and is opaque to Kubernetes. Driver
	// documentation may explain to users how to interpret this data if needed.
	//
	// Setting this field is optional. It has a maximum size of 32 entries.
	// If null (or empty), it is assumed this allocation will be processed by a
	// single kubelet plugin with no ResourceHandle data attached. The name of
	// the kubelet plugin invoked will match the DriverName set in the
	// ResourceClaimStatus this AllocationResult is embedded in.
	//
	// +listType=atomic
	// +optional
	ResourceHandles []ResourceHandle `json:"resourceHandles,omitempty" protobuf:"bytes,1,opt,name=resourceHandles"`

	// This field will get set by the resource driver after it has allocated
	// the resource 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"`
}

AllocationResult contains attributes of an allocated resource.

func (*AllocationResult) DeepCopy

func (in *AllocationResult) DeepCopy() *AllocationResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.

func (*AllocationResult) DeepCopyInto

func (in *AllocationResult) DeepCopyInto(out *AllocationResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AllocationResult) Descriptor

func (*AllocationResult) Descriptor() ([]byte, []int)

func (*AllocationResult) Marshal

func (m *AllocationResult) Marshal() (dAtA []byte, err error)

func (*AllocationResult) MarshalTo

func (m *AllocationResult) MarshalTo(dAtA []byte) (int, error)

func (*AllocationResult) MarshalToSizedBuffer

func (m *AllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllocationResult) ProtoMessage

func (*AllocationResult) ProtoMessage()

func (*AllocationResult) Reset

func (m *AllocationResult) Reset()

func (*AllocationResult) Size

func (m *AllocationResult) Size() (n int)

func (*AllocationResult) String

func (this *AllocationResult) String() string

func (AllocationResult) SwaggerDoc

func (AllocationResult) SwaggerDoc() map[string]string

func (*AllocationResult) Unmarshal

func (m *AllocationResult) Unmarshal(dAtA []byte) error

func (*AllocationResult) XXX_DiscardUnknown

func (m *AllocationResult) XXX_DiscardUnknown()

func (*AllocationResult) XXX_Marshal

func (m *AllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationResult) XXX_Merge

func (m *AllocationResult) XXX_Merge(src proto.Message)

func (*AllocationResult) XXX_Size

func (m *AllocationResult) XXX_Size() int

func (*AllocationResult) XXX_Unmarshal

func (m *AllocationResult) XXX_Unmarshal(b []byte) error

type AllocationResultModel added in v0.30.0

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"`
}

AllocationResultModel must have one and only one field set.

func (*AllocationResultModel) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResultModel.

func (*AllocationResultModel) DeepCopyInto added in v0.30.0

func (in *AllocationResultModel) DeepCopyInto(out *AllocationResultModel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AllocationResultModel) Descriptor added in v0.30.0

func (*AllocationResultModel) Descriptor() ([]byte, []int)

func (*AllocationResultModel) Marshal added in v0.30.0

func (m *AllocationResultModel) Marshal() (dAtA []byte, err error)

func (*AllocationResultModel) MarshalTo added in v0.30.0

func (m *AllocationResultModel) MarshalTo(dAtA []byte) (int, error)

func (*AllocationResultModel) MarshalToSizedBuffer added in v0.30.0

func (m *AllocationResultModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllocationResultModel) ProtoMessage added in v0.30.0

func (*AllocationResultModel) ProtoMessage()

func (*AllocationResultModel) Reset added in v0.30.0

func (m *AllocationResultModel) Reset()

func (*AllocationResultModel) Size added in v0.30.0

func (m *AllocationResultModel) Size() (n int)

func (*AllocationResultModel) String added in v0.30.0

func (this *AllocationResultModel) String() string

func (AllocationResultModel) SwaggerDoc added in v0.30.0

func (AllocationResultModel) SwaggerDoc() map[string]string

func (*AllocationResultModel) Unmarshal added in v0.30.0

func (m *AllocationResultModel) Unmarshal(dAtA []byte) error

func (*AllocationResultModel) XXX_DiscardUnknown added in v0.30.0

func (m *AllocationResultModel) XXX_DiscardUnknown()

func (*AllocationResultModel) XXX_Marshal added in v0.30.0

func (m *AllocationResultModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationResultModel) XXX_Merge added in v0.30.0

func (m *AllocationResultModel) XXX_Merge(src proto.Message)

func (*AllocationResultModel) XXX_Size added in v0.30.0

func (m *AllocationResultModel) XXX_Size() int

func (*AllocationResultModel) XXX_Unmarshal added in v0.30.0

func (m *AllocationResultModel) XXX_Unmarshal(b []byte) error

type DriverAllocationResult added in v0.30.0

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"`
}

DriverAllocationResult contains vendor parameters and the allocation result for one request.

func (*DriverAllocationResult) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriverAllocationResult.

func (*DriverAllocationResult) DeepCopyInto added in v0.30.0

func (in *DriverAllocationResult) DeepCopyInto(out *DriverAllocationResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DriverAllocationResult) Descriptor added in v0.30.0

func (*DriverAllocationResult) Descriptor() ([]byte, []int)

func (*DriverAllocationResult) Marshal added in v0.30.0

func (m *DriverAllocationResult) Marshal() (dAtA []byte, err error)

func (*DriverAllocationResult) MarshalTo added in v0.30.0

func (m *DriverAllocationResult) MarshalTo(dAtA []byte) (int, error)

func (*DriverAllocationResult) MarshalToSizedBuffer added in v0.30.0

func (m *DriverAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DriverAllocationResult) ProtoMessage added in v0.30.0

func (*DriverAllocationResult) ProtoMessage()

func (*DriverAllocationResult) Reset added in v0.30.0

func (m *DriverAllocationResult) Reset()

func (*DriverAllocationResult) Size added in v0.30.0

func (m *DriverAllocationResult) Size() (n int)

func (*DriverAllocationResult) String added in v0.30.0

func (this *DriverAllocationResult) String() string

func (DriverAllocationResult) SwaggerDoc added in v0.30.0

func (DriverAllocationResult) SwaggerDoc() map[string]string

func (*DriverAllocationResult) Unmarshal added in v0.30.0

func (m *DriverAllocationResult) Unmarshal(dAtA []byte) error

func (*DriverAllocationResult) XXX_DiscardUnknown added in v0.30.0

func (m *DriverAllocationResult) XXX_DiscardUnknown()

func (*DriverAllocationResult) XXX_Marshal added in v0.30.0

func (m *DriverAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DriverAllocationResult) XXX_Merge added in v0.30.0

func (m *DriverAllocationResult) XXX_Merge(src proto.Message)

func (*DriverAllocationResult) XXX_Size added in v0.30.0

func (m *DriverAllocationResult) XXX_Size() int

func (*DriverAllocationResult) XXX_Unmarshal added in v0.30.0

func (m *DriverAllocationResult) XXX_Unmarshal(b []byte) error

type DriverRequests added in v0.30.0

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"`
}

DriverRequests describes all resources that are needed from one particular driver.

func (*DriverRequests) DeepCopy added in v0.30.0

func (in *DriverRequests) DeepCopy() *DriverRequests

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriverRequests.

func (*DriverRequests) DeepCopyInto added in v0.30.0

func (in *DriverRequests) DeepCopyInto(out *DriverRequests)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DriverRequests) Descriptor added in v0.30.0

func (*DriverRequests) Descriptor() ([]byte, []int)

func (*DriverRequests) Marshal added in v0.30.0

func (m *DriverRequests) Marshal() (dAtA []byte, err error)

func (*DriverRequests) MarshalTo added in v0.30.0

func (m *DriverRequests) MarshalTo(dAtA []byte) (int, error)

func (*DriverRequests) MarshalToSizedBuffer added in v0.30.0

func (m *DriverRequests) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DriverRequests) ProtoMessage added in v0.30.0

func (*DriverRequests) ProtoMessage()

func (*DriverRequests) Reset added in v0.30.0

func (m *DriverRequests) Reset()

func (*DriverRequests) Size added in v0.30.0

func (m *DriverRequests) Size() (n int)

func (*DriverRequests) String added in v0.30.0

func (this *DriverRequests) String() string

func (DriverRequests) SwaggerDoc added in v0.30.0

func (DriverRequests) SwaggerDoc() map[string]string

func (*DriverRequests) Unmarshal added in v0.30.0

func (m *DriverRequests) Unmarshal(dAtA []byte) error

func (*DriverRequests) XXX_DiscardUnknown added in v0.30.0

func (m *DriverRequests) XXX_DiscardUnknown()

func (*DriverRequests) XXX_Marshal added in v0.30.0

func (m *DriverRequests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DriverRequests) XXX_Merge added in v0.30.0

func (m *DriverRequests) XXX_Merge(src proto.Message)

func (*DriverRequests) XXX_Size added in v0.30.0

func (m *DriverRequests) XXX_Size() int

func (*DriverRequests) XXX_Unmarshal added in v0.30.0

func (m *DriverRequests) XXX_Unmarshal(b []byte) error

type NamedResourcesAllocationResult added in v0.30.0

type NamedResourcesAllocationResult struct {
	// Name is the name of the selected resource instance.
	Name string `json:"name" protobuf:"bytes,1,name=name"`
}

NamedResourcesAllocationResult is used in AllocationResultModel.

func (*NamedResourcesAllocationResult) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAllocationResult.

func (*NamedResourcesAllocationResult) DeepCopyInto added in v0.30.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesAllocationResult) Descriptor added in v0.30.0

func (*NamedResourcesAllocationResult) Descriptor() ([]byte, []int)

func (*NamedResourcesAllocationResult) Marshal added in v0.30.0

func (m *NamedResourcesAllocationResult) Marshal() (dAtA []byte, err error)

func (*NamedResourcesAllocationResult) MarshalTo added in v0.30.0

func (m *NamedResourcesAllocationResult) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesAllocationResult) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesAllocationResult) ProtoMessage added in v0.30.0

func (*NamedResourcesAllocationResult) ProtoMessage()

func (*NamedResourcesAllocationResult) Reset added in v0.30.0

func (m *NamedResourcesAllocationResult) Reset()

func (*NamedResourcesAllocationResult) Size added in v0.30.0

func (m *NamedResourcesAllocationResult) Size() (n int)

func (*NamedResourcesAllocationResult) String added in v0.30.0

func (this *NamedResourcesAllocationResult) String() string

func (*NamedResourcesAllocationResult) Unmarshal added in v0.30.0

func (m *NamedResourcesAllocationResult) Unmarshal(dAtA []byte) error

func (*NamedResourcesAllocationResult) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesAllocationResult) XXX_DiscardUnknown()

func (*NamedResourcesAllocationResult) XXX_Marshal added in v0.30.0

func (m *NamedResourcesAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesAllocationResult) XXX_Merge added in v0.30.0

func (m *NamedResourcesAllocationResult) XXX_Merge(src proto.Message)

func (*NamedResourcesAllocationResult) XXX_Size added in v0.30.0

func (m *NamedResourcesAllocationResult) XXX_Size() int

func (*NamedResourcesAllocationResult) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesAllocationResult) XXX_Unmarshal(b []byte) error

type NamedResourcesAttribute added in v0.30.0

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"`
}

NamedResourcesAttribute is a combination of an attribute name and its value.

func (*NamedResourcesAttribute) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAttribute.

func (*NamedResourcesAttribute) DeepCopyInto added in v0.30.0

func (in *NamedResourcesAttribute) DeepCopyInto(out *NamedResourcesAttribute)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesAttribute) Descriptor added in v0.30.0

func (*NamedResourcesAttribute) Descriptor() ([]byte, []int)

func (*NamedResourcesAttribute) Marshal added in v0.30.0

func (m *NamedResourcesAttribute) Marshal() (dAtA []byte, err error)

func (*NamedResourcesAttribute) MarshalTo added in v0.30.0

func (m *NamedResourcesAttribute) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesAttribute) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesAttribute) ProtoMessage added in v0.30.0

func (*NamedResourcesAttribute) ProtoMessage()

func (*NamedResourcesAttribute) Reset added in v0.30.0

func (m *NamedResourcesAttribute) Reset()

func (*NamedResourcesAttribute) Size added in v0.30.0

func (m *NamedResourcesAttribute) Size() (n int)

func (*NamedResourcesAttribute) String added in v0.30.0

func (this *NamedResourcesAttribute) String() string

func (*NamedResourcesAttribute) Unmarshal added in v0.30.0

func (m *NamedResourcesAttribute) Unmarshal(dAtA []byte) error

func (*NamedResourcesAttribute) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesAttribute) XXX_DiscardUnknown()

func (*NamedResourcesAttribute) XXX_Marshal added in v0.30.0

func (m *NamedResourcesAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesAttribute) XXX_Merge added in v0.30.0

func (m *NamedResourcesAttribute) XXX_Merge(src proto.Message)

func (*NamedResourcesAttribute) XXX_Size added in v0.30.0

func (m *NamedResourcesAttribute) XXX_Size() int

func (*NamedResourcesAttribute) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesAttribute) XXX_Unmarshal(b []byte) error

type NamedResourcesAttributeValue added in v0.30.0

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"`
}

NamedResourcesAttributeValue must have one and only one field set.

func (*NamedResourcesAttributeValue) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesAttributeValue.

func (*NamedResourcesAttributeValue) DeepCopyInto added in v0.30.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesAttributeValue) Descriptor added in v0.30.0

func (*NamedResourcesAttributeValue) Descriptor() ([]byte, []int)

func (*NamedResourcesAttributeValue) Marshal added in v0.30.0

func (m *NamedResourcesAttributeValue) Marshal() (dAtA []byte, err error)

func (*NamedResourcesAttributeValue) MarshalTo added in v0.30.0

func (m *NamedResourcesAttributeValue) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesAttributeValue) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesAttributeValue) ProtoMessage added in v0.30.0

func (*NamedResourcesAttributeValue) ProtoMessage()

func (*NamedResourcesAttributeValue) Reset added in v0.30.0

func (m *NamedResourcesAttributeValue) Reset()

func (*NamedResourcesAttributeValue) Size added in v0.30.0

func (m *NamedResourcesAttributeValue) Size() (n int)

func (*NamedResourcesAttributeValue) String added in v0.30.0

func (this *NamedResourcesAttributeValue) String() string

func (*NamedResourcesAttributeValue) Unmarshal added in v0.30.0

func (m *NamedResourcesAttributeValue) Unmarshal(dAtA []byte) error

func (*NamedResourcesAttributeValue) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesAttributeValue) XXX_DiscardUnknown()

func (*NamedResourcesAttributeValue) XXX_Marshal added in v0.30.0

func (m *NamedResourcesAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesAttributeValue) XXX_Merge added in v0.30.0

func (m *NamedResourcesAttributeValue) XXX_Merge(src proto.Message)

func (*NamedResourcesAttributeValue) XXX_Size added in v0.30.0

func (m *NamedResourcesAttributeValue) XXX_Size() int

func (*NamedResourcesAttributeValue) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesAttributeValue) XXX_Unmarshal(b []byte) error

type NamedResourcesFilter added in v0.30.0

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"`
}

NamedResourcesFilter is used in ResourceFilterModel.

func (*NamedResourcesFilter) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesFilter.

func (*NamedResourcesFilter) DeepCopyInto added in v0.30.0

func (in *NamedResourcesFilter) DeepCopyInto(out *NamedResourcesFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesFilter) Descriptor added in v0.30.0

func (*NamedResourcesFilter) Descriptor() ([]byte, []int)

func (*NamedResourcesFilter) Marshal added in v0.30.0

func (m *NamedResourcesFilter) Marshal() (dAtA []byte, err error)

func (*NamedResourcesFilter) MarshalTo added in v0.30.0

func (m *NamedResourcesFilter) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesFilter) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesFilter) ProtoMessage added in v0.30.0

func (*NamedResourcesFilter) ProtoMessage()

func (*NamedResourcesFilter) Reset added in v0.30.0

func (m *NamedResourcesFilter) Reset()

func (*NamedResourcesFilter) Size added in v0.30.0

func (m *NamedResourcesFilter) Size() (n int)

func (*NamedResourcesFilter) String added in v0.30.0

func (this *NamedResourcesFilter) String() string

func (*NamedResourcesFilter) Unmarshal added in v0.30.0

func (m *NamedResourcesFilter) Unmarshal(dAtA []byte) error

func (*NamedResourcesFilter) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesFilter) XXX_DiscardUnknown()

func (*NamedResourcesFilter) XXX_Marshal added in v0.30.0

func (m *NamedResourcesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesFilter) XXX_Merge added in v0.30.0

func (m *NamedResourcesFilter) XXX_Merge(src proto.Message)

func (*NamedResourcesFilter) XXX_Size added in v0.30.0

func (m *NamedResourcesFilter) XXX_Size() int

func (*NamedResourcesFilter) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesFilter) XXX_Unmarshal(b []byte) error

type NamedResourcesInstance added in v0.30.0

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"`
}

NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.

func (*NamedResourcesInstance) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesInstance.

func (*NamedResourcesInstance) DeepCopyInto added in v0.30.0

func (in *NamedResourcesInstance) DeepCopyInto(out *NamedResourcesInstance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesInstance) Descriptor added in v0.30.0

func (*NamedResourcesInstance) Descriptor() ([]byte, []int)

func (*NamedResourcesInstance) Marshal added in v0.30.0

func (m *NamedResourcesInstance) Marshal() (dAtA []byte, err error)

func (*NamedResourcesInstance) MarshalTo added in v0.30.0

func (m *NamedResourcesInstance) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesInstance) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesInstance) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesInstance) ProtoMessage added in v0.30.0

func (*NamedResourcesInstance) ProtoMessage()

func (*NamedResourcesInstance) Reset added in v0.30.0

func (m *NamedResourcesInstance) Reset()

func (*NamedResourcesInstance) Size added in v0.30.0

func (m *NamedResourcesInstance) Size() (n int)

func (*NamedResourcesInstance) String added in v0.30.0

func (this *NamedResourcesInstance) String() string

func (*NamedResourcesInstance) Unmarshal added in v0.30.0

func (m *NamedResourcesInstance) Unmarshal(dAtA []byte) error

func (*NamedResourcesInstance) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesInstance) XXX_DiscardUnknown()

func (*NamedResourcesInstance) XXX_Marshal added in v0.30.0

func (m *NamedResourcesInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesInstance) XXX_Merge added in v0.30.0

func (m *NamedResourcesInstance) XXX_Merge(src proto.Message)

func (*NamedResourcesInstance) XXX_Size added in v0.30.0

func (m *NamedResourcesInstance) XXX_Size() int

func (*NamedResourcesInstance) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesInstance) XXX_Unmarshal(b []byte) error

type NamedResourcesIntSlice added in v0.30.0

type NamedResourcesIntSlice struct {
	// Ints is the slice of 64-bit integers.
	//
	// +listType=atomic
	Ints []int64 `json:"ints" protobuf:"bytes,1,opt,name=ints"`
}

NamedResourcesIntSlice contains a slice of 64-bit integers.

func (*NamedResourcesIntSlice) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesIntSlice.

func (*NamedResourcesIntSlice) DeepCopyInto added in v0.30.0

func (in *NamedResourcesIntSlice) DeepCopyInto(out *NamedResourcesIntSlice)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesIntSlice) Descriptor added in v0.30.0

func (*NamedResourcesIntSlice) Descriptor() ([]byte, []int)

func (*NamedResourcesIntSlice) Marshal added in v0.30.0

func (m *NamedResourcesIntSlice) Marshal() (dAtA []byte, err error)

func (*NamedResourcesIntSlice) MarshalTo added in v0.30.0

func (m *NamedResourcesIntSlice) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesIntSlice) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesIntSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesIntSlice) ProtoMessage added in v0.30.0

func (*NamedResourcesIntSlice) ProtoMessage()

func (*NamedResourcesIntSlice) Reset added in v0.30.0

func (m *NamedResourcesIntSlice) Reset()

func (*NamedResourcesIntSlice) Size added in v0.30.0

func (m *NamedResourcesIntSlice) Size() (n int)

func (*NamedResourcesIntSlice) String added in v0.30.0

func (this *NamedResourcesIntSlice) String() string

func (*NamedResourcesIntSlice) Unmarshal added in v0.30.0

func (m *NamedResourcesIntSlice) Unmarshal(dAtA []byte) error

func (*NamedResourcesIntSlice) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesIntSlice) XXX_DiscardUnknown()

func (*NamedResourcesIntSlice) XXX_Marshal added in v0.30.0

func (m *NamedResourcesIntSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesIntSlice) XXX_Merge added in v0.30.0

func (m *NamedResourcesIntSlice) XXX_Merge(src proto.Message)

func (*NamedResourcesIntSlice) XXX_Size added in v0.30.0

func (m *NamedResourcesIntSlice) XXX_Size() int

func (*NamedResourcesIntSlice) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesIntSlice) XXX_Unmarshal(b []byte) error

type NamedResourcesRequest added in v0.30.0

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"`
}

NamedResourcesRequest is used in ResourceRequestModel.

func (*NamedResourcesRequest) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesRequest.

func (*NamedResourcesRequest) DeepCopyInto added in v0.30.0

func (in *NamedResourcesRequest) DeepCopyInto(out *NamedResourcesRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesRequest) Descriptor added in v0.30.0

func (*NamedResourcesRequest) Descriptor() ([]byte, []int)

func (*NamedResourcesRequest) Marshal added in v0.30.0

func (m *NamedResourcesRequest) Marshal() (dAtA []byte, err error)

func (*NamedResourcesRequest) MarshalTo added in v0.30.0

func (m *NamedResourcesRequest) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesRequest) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesRequest) ProtoMessage added in v0.30.0

func (*NamedResourcesRequest) ProtoMessage()

func (*NamedResourcesRequest) Reset added in v0.30.0

func (m *NamedResourcesRequest) Reset()

func (*NamedResourcesRequest) Size added in v0.30.0

func (m *NamedResourcesRequest) Size() (n int)

func (*NamedResourcesRequest) String added in v0.30.0

func (this *NamedResourcesRequest) String() string

func (*NamedResourcesRequest) Unmarshal added in v0.30.0

func (m *NamedResourcesRequest) Unmarshal(dAtA []byte) error

func (*NamedResourcesRequest) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesRequest) XXX_DiscardUnknown()

func (*NamedResourcesRequest) XXX_Marshal added in v0.30.0

func (m *NamedResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesRequest) XXX_Merge added in v0.30.0

func (m *NamedResourcesRequest) XXX_Merge(src proto.Message)

func (*NamedResourcesRequest) XXX_Size added in v0.30.0

func (m *NamedResourcesRequest) XXX_Size() int

func (*NamedResourcesRequest) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesRequest) XXX_Unmarshal(b []byte) error

type NamedResourcesResources added in v0.30.0

type NamedResourcesResources struct {
	// The list of all individual resources instances currently available.
	//
	// +listType=atomic
	Instances []NamedResourcesInstance `json:"instances" protobuf:"bytes,1,name=instances"`
}

NamedResourcesResources is used in ResourceModel.

func (*NamedResourcesResources) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesResources.

func (*NamedResourcesResources) DeepCopyInto added in v0.30.0

func (in *NamedResourcesResources) DeepCopyInto(out *NamedResourcesResources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesResources) Descriptor added in v0.30.0

func (*NamedResourcesResources) Descriptor() ([]byte, []int)

func (*NamedResourcesResources) Marshal added in v0.30.0

func (m *NamedResourcesResources) Marshal() (dAtA []byte, err error)

func (*NamedResourcesResources) MarshalTo added in v0.30.0

func (m *NamedResourcesResources) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesResources) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesResources) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesResources) ProtoMessage added in v0.30.0

func (*NamedResourcesResources) ProtoMessage()

func (*NamedResourcesResources) Reset added in v0.30.0

func (m *NamedResourcesResources) Reset()

func (*NamedResourcesResources) Size added in v0.30.0

func (m *NamedResourcesResources) Size() (n int)

func (*NamedResourcesResources) String added in v0.30.0

func (this *NamedResourcesResources) String() string

func (*NamedResourcesResources) Unmarshal added in v0.30.0

func (m *NamedResourcesResources) Unmarshal(dAtA []byte) error

func (*NamedResourcesResources) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesResources) XXX_DiscardUnknown()

func (*NamedResourcesResources) XXX_Marshal added in v0.30.0

func (m *NamedResourcesResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesResources) XXX_Merge added in v0.30.0

func (m *NamedResourcesResources) XXX_Merge(src proto.Message)

func (*NamedResourcesResources) XXX_Size added in v0.30.0

func (m *NamedResourcesResources) XXX_Size() int

func (*NamedResourcesResources) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesResources) XXX_Unmarshal(b []byte) error

type NamedResourcesStringSlice added in v0.30.0

type NamedResourcesStringSlice struct {
	// Strings is the slice of strings.
	//
	// +listType=atomic
	Strings []string `json:"strings" protobuf:"bytes,1,opt,name=strings"`
}

NamedResourcesStringSlice contains a slice of strings.

func (*NamedResourcesStringSlice) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesStringSlice.

func (*NamedResourcesStringSlice) DeepCopyInto added in v0.30.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedResourcesStringSlice) Descriptor added in v0.30.0

func (*NamedResourcesStringSlice) Descriptor() ([]byte, []int)

func (*NamedResourcesStringSlice) Marshal added in v0.30.0

func (m *NamedResourcesStringSlice) Marshal() (dAtA []byte, err error)

func (*NamedResourcesStringSlice) MarshalTo added in v0.30.0

func (m *NamedResourcesStringSlice) MarshalTo(dAtA []byte) (int, error)

func (*NamedResourcesStringSlice) MarshalToSizedBuffer added in v0.30.0

func (m *NamedResourcesStringSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedResourcesStringSlice) ProtoMessage added in v0.30.0

func (*NamedResourcesStringSlice) ProtoMessage()

func (*NamedResourcesStringSlice) Reset added in v0.30.0

func (m *NamedResourcesStringSlice) Reset()

func (*NamedResourcesStringSlice) Size added in v0.30.0

func (m *NamedResourcesStringSlice) Size() (n int)

func (*NamedResourcesStringSlice) String added in v0.30.0

func (this *NamedResourcesStringSlice) String() string

func (*NamedResourcesStringSlice) Unmarshal added in v0.30.0

func (m *NamedResourcesStringSlice) Unmarshal(dAtA []byte) error

func (*NamedResourcesStringSlice) XXX_DiscardUnknown added in v0.30.0

func (m *NamedResourcesStringSlice) XXX_DiscardUnknown()

func (*NamedResourcesStringSlice) XXX_Marshal added in v0.30.0

func (m *NamedResourcesStringSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedResourcesStringSlice) XXX_Merge added in v0.30.0

func (m *NamedResourcesStringSlice) XXX_Merge(src proto.Message)

func (*NamedResourcesStringSlice) XXX_Size added in v0.30.0

func (m *NamedResourcesStringSlice) XXX_Size() int

func (*NamedResourcesStringSlice) XXX_Unmarshal added in v0.30.0

func (m *NamedResourcesStringSlice) XXX_Unmarshal(b []byte) error

type PodSchedulingContext

type PodSchedulingContext 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 PodSchedulingContextSpec `json:"spec" protobuf:"bytes,2,name=spec"`

	// Status describes where resources for the Pod can be allocated.
	// +optional
	Status PodSchedulingContextStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

PodSchedulingContext 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.

func (*PodSchedulingContext) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContext.

func (*PodSchedulingContext) DeepCopyInto

func (in *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSchedulingContext) DeepCopyObject

func (in *PodSchedulingContext) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodSchedulingContext) Descriptor

func (*PodSchedulingContext) Descriptor() ([]byte, []int)

func (*PodSchedulingContext) Marshal

func (m *PodSchedulingContext) Marshal() (dAtA []byte, err error)

func (*PodSchedulingContext) MarshalTo

func (m *PodSchedulingContext) MarshalTo(dAtA []byte) (int, error)

func (*PodSchedulingContext) MarshalToSizedBuffer

func (m *PodSchedulingContext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodSchedulingContext) ProtoMessage

func (*PodSchedulingContext) ProtoMessage()

func (*PodSchedulingContext) Reset

func (m *PodSchedulingContext) Reset()

func (*PodSchedulingContext) Size

func (m *PodSchedulingContext) Size() (n int)

func (*PodSchedulingContext) String

func (this *PodSchedulingContext) String() string

func (PodSchedulingContext) SwaggerDoc

func (PodSchedulingContext) SwaggerDoc() map[string]string

func (*PodSchedulingContext) Unmarshal

func (m *PodSchedulingContext) Unmarshal(dAtA []byte) error

func (*PodSchedulingContext) XXX_DiscardUnknown

func (m *PodSchedulingContext) XXX_DiscardUnknown()

func (*PodSchedulingContext) XXX_Marshal

func (m *PodSchedulingContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodSchedulingContext) XXX_Merge

func (m *PodSchedulingContext) XXX_Merge(src proto.Message)

func (*PodSchedulingContext) XXX_Size

func (m *PodSchedulingContext) XXX_Size() int

func (*PodSchedulingContext) XXX_Unmarshal

func (m *PodSchedulingContext) XXX_Unmarshal(b []byte) error

type PodSchedulingContextList

type PodSchedulingContextList 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 PodSchedulingContext objects.
	Items []PodSchedulingContext `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PodSchedulingContextList is a collection of Pod scheduling objects.

func (*PodSchedulingContextList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextList.

func (*PodSchedulingContextList) DeepCopyInto

func (in *PodSchedulingContextList) DeepCopyInto(out *PodSchedulingContextList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSchedulingContextList) DeepCopyObject

func (in *PodSchedulingContextList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodSchedulingContextList) Descriptor

func (*PodSchedulingContextList) Descriptor() ([]byte, []int)

func (*PodSchedulingContextList) Marshal

func (m *PodSchedulingContextList) Marshal() (dAtA []byte, err error)

func (*PodSchedulingContextList) MarshalTo

func (m *PodSchedulingContextList) MarshalTo(dAtA []byte) (int, error)

func (*PodSchedulingContextList) MarshalToSizedBuffer

func (m *PodSchedulingContextList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodSchedulingContextList) ProtoMessage

func (*PodSchedulingContextList) ProtoMessage()

func (*PodSchedulingContextList) Reset

func (m *PodSchedulingContextList) Reset()

func (*PodSchedulingContextList) Size

func (m *PodSchedulingContextList) Size() (n int)

func (*PodSchedulingContextList) String

func (this *PodSchedulingContextList) String() string

func (PodSchedulingContextList) SwaggerDoc

func (PodSchedulingContextList) SwaggerDoc() map[string]string

func (*PodSchedulingContextList) Unmarshal

func (m *PodSchedulingContextList) Unmarshal(dAtA []byte) error

func (*PodSchedulingContextList) XXX_DiscardUnknown

func (m *PodSchedulingContextList) XXX_DiscardUnknown()

func (*PodSchedulingContextList) XXX_Marshal

func (m *PodSchedulingContextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodSchedulingContextList) XXX_Merge

func (m *PodSchedulingContextList) XXX_Merge(src proto.Message)

func (*PodSchedulingContextList) XXX_Size

func (m *PodSchedulingContextList) XXX_Size() int

func (*PodSchedulingContextList) XXX_Unmarshal

func (m *PodSchedulingContextList) XXX_Unmarshal(b []byte) error

type PodSchedulingContextSpec

type PodSchedulingContextSpec 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=atomic
	// +optional
	PotentialNodes []string `json:"potentialNodes,omitempty" protobuf:"bytes,2,opt,name=potentialNodes"`
}

PodSchedulingContextSpec describes where resources for the Pod are needed.

func (*PodSchedulingContextSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextSpec.

func (*PodSchedulingContextSpec) DeepCopyInto

func (in *PodSchedulingContextSpec) DeepCopyInto(out *PodSchedulingContextSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSchedulingContextSpec) Descriptor

func (*PodSchedulingContextSpec) Descriptor() ([]byte, []int)

func (*PodSchedulingContextSpec) Marshal

func (m *PodSchedulingContextSpec) Marshal() (dAtA []byte, err error)

func (*PodSchedulingContextSpec) MarshalTo

func (m *PodSchedulingContextSpec) MarshalTo(dAtA []byte) (int, error)

func (*PodSchedulingContextSpec) MarshalToSizedBuffer

func (m *PodSchedulingContextSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodSchedulingContextSpec) ProtoMessage

func (*PodSchedulingContextSpec) ProtoMessage()

func (*PodSchedulingContextSpec) Reset

func (m *PodSchedulingContextSpec) Reset()

func (*PodSchedulingContextSpec) Size

func (m *PodSchedulingContextSpec) Size() (n int)

func (*PodSchedulingContextSpec) String

func (this *PodSchedulingContextSpec) String() string

func (PodSchedulingContextSpec) SwaggerDoc

func (PodSchedulingContextSpec) SwaggerDoc() map[string]string

func (*PodSchedulingContextSpec) Unmarshal

func (m *PodSchedulingContextSpec) Unmarshal(dAtA []byte) error

func (*PodSchedulingContextSpec) XXX_DiscardUnknown

func (m *PodSchedulingContextSpec) XXX_DiscardUnknown()

func (*PodSchedulingContextSpec) XXX_Marshal

func (m *PodSchedulingContextSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodSchedulingContextSpec) XXX_Merge

func (m *PodSchedulingContextSpec) XXX_Merge(src proto.Message)

func (*PodSchedulingContextSpec) XXX_Size

func (m *PodSchedulingContextSpec) XXX_Size() int

func (*PodSchedulingContextSpec) XXX_Unmarshal

func (m *PodSchedulingContextSpec) XXX_Unmarshal(b []byte) error

type PodSchedulingContextStatus

type PodSchedulingContextStatus 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"`
}

PodSchedulingContextStatus describes where resources for the Pod can be allocated.

func (*PodSchedulingContextStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextStatus.

func (*PodSchedulingContextStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSchedulingContextStatus) Descriptor

func (*PodSchedulingContextStatus) Descriptor() ([]byte, []int)

func (*PodSchedulingContextStatus) Marshal

func (m *PodSchedulingContextStatus) Marshal() (dAtA []byte, err error)

func (*PodSchedulingContextStatus) MarshalTo

func (m *PodSchedulingContextStatus) MarshalTo(dAtA []byte) (int, error)

func (*PodSchedulingContextStatus) MarshalToSizedBuffer

func (m *PodSchedulingContextStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodSchedulingContextStatus) ProtoMessage

func (*PodSchedulingContextStatus) ProtoMessage()

func (*PodSchedulingContextStatus) Reset

func (m *PodSchedulingContextStatus) Reset()

func (*PodSchedulingContextStatus) Size

func (m *PodSchedulingContextStatus) Size() (n int)

func (*PodSchedulingContextStatus) String

func (this *PodSchedulingContextStatus) String() string

func (PodSchedulingContextStatus) SwaggerDoc

func (PodSchedulingContextStatus) SwaggerDoc() map[string]string

func (*PodSchedulingContextStatus) Unmarshal

func (m *PodSchedulingContextStatus) Unmarshal(dAtA []byte) error

func (*PodSchedulingContextStatus) XXX_DiscardUnknown

func (m *PodSchedulingContextStatus) XXX_DiscardUnknown()

func (*PodSchedulingContextStatus) XXX_Marshal

func (m *PodSchedulingContextStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodSchedulingContextStatus) XXX_Merge

func (m *PodSchedulingContextStatus) XXX_Merge(src proto.Message)

func (*PodSchedulingContextStatus) XXX_Size

func (m *PodSchedulingContextStatus) XXX_Size() int

func (*PodSchedulingContextStatus) XXX_Unmarshal

func (m *PodSchedulingContextStatus) XXX_Unmarshal(b []byte) error

type ResourceClaim

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"`
}

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.

func (*ResourceClaim) DeepCopy

func (in *ResourceClaim) DeepCopy() *ResourceClaim

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim.

func (*ResourceClaim) DeepCopyInto

func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaim) DeepCopyObject

func (in *ResourceClaim) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaim) Descriptor

func (*ResourceClaim) Descriptor() ([]byte, []int)

func (*ResourceClaim) Marshal

func (m *ResourceClaim) Marshal() (dAtA []byte, err error)

func (*ResourceClaim) MarshalTo

func (m *ResourceClaim) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaim) MarshalToSizedBuffer

func (m *ResourceClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaim) ProtoMessage

func (*ResourceClaim) ProtoMessage()

func (*ResourceClaim) Reset

func (m *ResourceClaim) Reset()

func (*ResourceClaim) Size

func (m *ResourceClaim) Size() (n int)

func (*ResourceClaim) String

func (this *ResourceClaim) String() string

func (ResourceClaim) SwaggerDoc

func (ResourceClaim) SwaggerDoc() map[string]string

func (*ResourceClaim) Unmarshal

func (m *ResourceClaim) Unmarshal(dAtA []byte) error

func (*ResourceClaim) XXX_DiscardUnknown

func (m *ResourceClaim) XXX_DiscardUnknown()

func (*ResourceClaim) XXX_Marshal

func (m *ResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaim) XXX_Merge

func (m *ResourceClaim) XXX_Merge(src proto.Message)

func (*ResourceClaim) XXX_Size

func (m *ResourceClaim) XXX_Size() int

func (*ResourceClaim) XXX_Unmarshal

func (m *ResourceClaim) XXX_Unmarshal(b []byte) error

type ResourceClaimConsumerReference

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"`
}

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.

func (*ResourceClaimConsumerReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference.

func (*ResourceClaimConsumerReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimConsumerReference) Descriptor

func (*ResourceClaimConsumerReference) Descriptor() ([]byte, []int)

func (*ResourceClaimConsumerReference) Marshal

func (m *ResourceClaimConsumerReference) Marshal() (dAtA []byte, err error)

func (*ResourceClaimConsumerReference) MarshalTo

func (m *ResourceClaimConsumerReference) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimConsumerReference) MarshalToSizedBuffer

func (m *ResourceClaimConsumerReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimConsumerReference) ProtoMessage

func (*ResourceClaimConsumerReference) ProtoMessage()

func (*ResourceClaimConsumerReference) Reset

func (m *ResourceClaimConsumerReference) Reset()

func (*ResourceClaimConsumerReference) Size

func (m *ResourceClaimConsumerReference) Size() (n int)

func (*ResourceClaimConsumerReference) String

func (this *ResourceClaimConsumerReference) String() string

func (ResourceClaimConsumerReference) SwaggerDoc

func (ResourceClaimConsumerReference) SwaggerDoc() map[string]string

func (*ResourceClaimConsumerReference) Unmarshal

func (m *ResourceClaimConsumerReference) Unmarshal(dAtA []byte) error

func (*ResourceClaimConsumerReference) XXX_DiscardUnknown

func (m *ResourceClaimConsumerReference) XXX_DiscardUnknown()

func (*ResourceClaimConsumerReference) XXX_Marshal

func (m *ResourceClaimConsumerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimConsumerReference) XXX_Merge

func (m *ResourceClaimConsumerReference) XXX_Merge(src proto.Message)

func (*ResourceClaimConsumerReference) XXX_Size

func (m *ResourceClaimConsumerReference) XXX_Size() int

func (*ResourceClaimConsumerReference) XXX_Unmarshal

func (m *ResourceClaimConsumerReference) XXX_Unmarshal(b []byte) error

type ResourceClaimList

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"`
}

ResourceClaimList is a collection of claims.

func (*ResourceClaimList) DeepCopy

func (in *ResourceClaimList) DeepCopy() *ResourceClaimList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList.

func (*ResourceClaimList) DeepCopyInto

func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimList) DeepCopyObject

func (in *ResourceClaimList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaimList) Descriptor

func (*ResourceClaimList) Descriptor() ([]byte, []int)

func (*ResourceClaimList) Marshal

func (m *ResourceClaimList) Marshal() (dAtA []byte, err error)

func (*ResourceClaimList) MarshalTo

func (m *ResourceClaimList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimList) MarshalToSizedBuffer

func (m *ResourceClaimList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimList) ProtoMessage

func (*ResourceClaimList) ProtoMessage()

func (*ResourceClaimList) Reset

func (m *ResourceClaimList) Reset()

func (*ResourceClaimList) Size

func (m *ResourceClaimList) Size() (n int)

func (*ResourceClaimList) String

func (this *ResourceClaimList) String() string

func (ResourceClaimList) SwaggerDoc

func (ResourceClaimList) SwaggerDoc() map[string]string

func (*ResourceClaimList) Unmarshal

func (m *ResourceClaimList) Unmarshal(dAtA []byte) error

func (*ResourceClaimList) XXX_DiscardUnknown

func (m *ResourceClaimList) XXX_DiscardUnknown()

func (*ResourceClaimList) XXX_Marshal

func (m *ResourceClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimList) XXX_Merge

func (m *ResourceClaimList) XXX_Merge(src proto.Message)

func (*ResourceClaimList) XXX_Size

func (m *ResourceClaimList) XXX_Size() int

func (*ResourceClaimList) XXX_Unmarshal

func (m *ResourceClaimList) XXX_Unmarshal(b []byte) error

type ResourceClaimParameters added in v0.30.0

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"`
}

ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes.

func (*ResourceClaimParameters) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParameters.

func (*ResourceClaimParameters) DeepCopyInto added in v0.30.0

func (in *ResourceClaimParameters) DeepCopyInto(out *ResourceClaimParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimParameters) DeepCopyObject added in v0.30.0

func (in *ResourceClaimParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaimParameters) Descriptor added in v0.30.0

func (*ResourceClaimParameters) Descriptor() ([]byte, []int)

func (*ResourceClaimParameters) Marshal added in v0.30.0

func (m *ResourceClaimParameters) Marshal() (dAtA []byte, err error)

func (*ResourceClaimParameters) MarshalTo added in v0.30.0

func (m *ResourceClaimParameters) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimParameters) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceClaimParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimParameters) ProtoMessage added in v0.30.0

func (*ResourceClaimParameters) ProtoMessage()

func (*ResourceClaimParameters) Reset added in v0.30.0

func (m *ResourceClaimParameters) Reset()

func (*ResourceClaimParameters) Size added in v0.30.0

func (m *ResourceClaimParameters) Size() (n int)

func (*ResourceClaimParameters) String added in v0.30.0

func (this *ResourceClaimParameters) String() string

func (ResourceClaimParameters) SwaggerDoc added in v0.30.0

func (ResourceClaimParameters) SwaggerDoc() map[string]string

func (*ResourceClaimParameters) Unmarshal added in v0.30.0

func (m *ResourceClaimParameters) Unmarshal(dAtA []byte) error

func (*ResourceClaimParameters) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceClaimParameters) XXX_DiscardUnknown()

func (*ResourceClaimParameters) XXX_Marshal added in v0.30.0

func (m *ResourceClaimParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimParameters) XXX_Merge added in v0.30.0

func (m *ResourceClaimParameters) XXX_Merge(src proto.Message)

func (*ResourceClaimParameters) XXX_Size added in v0.30.0

func (m *ResourceClaimParameters) XXX_Size() int

func (*ResourceClaimParameters) XXX_Unmarshal added in v0.30.0

func (m *ResourceClaimParameters) XXX_Unmarshal(b []byte) error

type ResourceClaimParametersList added in v0.30.0

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"`
}

ResourceClaimParametersList is a collection of ResourceClaimParameters.

func (*ResourceClaimParametersList) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersList.

func (*ResourceClaimParametersList) DeepCopyInto added in v0.30.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimParametersList) DeepCopyObject added in v0.30.0

func (in *ResourceClaimParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaimParametersList) Descriptor added in v0.30.0

func (*ResourceClaimParametersList) Descriptor() ([]byte, []int)

func (*ResourceClaimParametersList) Marshal added in v0.30.0

func (m *ResourceClaimParametersList) Marshal() (dAtA []byte, err error)

func (*ResourceClaimParametersList) MarshalTo added in v0.30.0

func (m *ResourceClaimParametersList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimParametersList) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceClaimParametersList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimParametersList) ProtoMessage added in v0.30.0

func (*ResourceClaimParametersList) ProtoMessage()

func (*ResourceClaimParametersList) Reset added in v0.30.0

func (m *ResourceClaimParametersList) Reset()

func (*ResourceClaimParametersList) Size added in v0.30.0

func (m *ResourceClaimParametersList) Size() (n int)

func (*ResourceClaimParametersList) String added in v0.30.0

func (this *ResourceClaimParametersList) String() string

func (ResourceClaimParametersList) SwaggerDoc added in v0.30.0

func (ResourceClaimParametersList) SwaggerDoc() map[string]string

func (*ResourceClaimParametersList) Unmarshal added in v0.30.0

func (m *ResourceClaimParametersList) Unmarshal(dAtA []byte) error

func (*ResourceClaimParametersList) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceClaimParametersList) XXX_DiscardUnknown()

func (*ResourceClaimParametersList) XXX_Marshal added in v0.30.0

func (m *ResourceClaimParametersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimParametersList) XXX_Merge added in v0.30.0

func (m *ResourceClaimParametersList) XXX_Merge(src proto.Message)

func (*ResourceClaimParametersList) XXX_Size added in v0.30.0

func (m *ResourceClaimParametersList) XXX_Size() int

func (*ResourceClaimParametersList) XXX_Unmarshal added in v0.30.0

func (m *ResourceClaimParametersList) XXX_Unmarshal(b []byte) error

type ResourceClaimParametersReference

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"`
}

ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.

func (*ResourceClaimParametersReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersReference.

func (*ResourceClaimParametersReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimParametersReference) Descriptor

func (*ResourceClaimParametersReference) Descriptor() ([]byte, []int)

func (*ResourceClaimParametersReference) Marshal

func (m *ResourceClaimParametersReference) Marshal() (dAtA []byte, err error)

func (*ResourceClaimParametersReference) MarshalTo

func (m *ResourceClaimParametersReference) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimParametersReference) MarshalToSizedBuffer

func (m *ResourceClaimParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimParametersReference) ProtoMessage

func (*ResourceClaimParametersReference) ProtoMessage()

func (*ResourceClaimParametersReference) Reset

func (*ResourceClaimParametersReference) Size

func (m *ResourceClaimParametersReference) Size() (n int)

func (*ResourceClaimParametersReference) String

func (ResourceClaimParametersReference) SwaggerDoc

func (*ResourceClaimParametersReference) Unmarshal

func (m *ResourceClaimParametersReference) Unmarshal(dAtA []byte) error

func (*ResourceClaimParametersReference) XXX_DiscardUnknown

func (m *ResourceClaimParametersReference) XXX_DiscardUnknown()

func (*ResourceClaimParametersReference) XXX_Marshal

func (m *ResourceClaimParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimParametersReference) XXX_Merge

func (*ResourceClaimParametersReference) XXX_Size

func (m *ResourceClaimParametersReference) XXX_Size() int

func (*ResourceClaimParametersReference) XXX_Unmarshal

func (m *ResourceClaimParametersReference) XXX_Unmarshal(b []byte) error

type ResourceClaimSchedulingStatus

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=atomic
	// +optional
	UnsuitableNodes []string `json:"unsuitableNodes,omitempty" protobuf:"bytes,2,opt,name=unsuitableNodes"`
}

ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.

func (*ResourceClaimSchedulingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSchedulingStatus.

func (*ResourceClaimSchedulingStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimSchedulingStatus) Descriptor

func (*ResourceClaimSchedulingStatus) Descriptor() ([]byte, []int)

func (*ResourceClaimSchedulingStatus) Marshal

func (m *ResourceClaimSchedulingStatus) Marshal() (dAtA []byte, err error)

func (*ResourceClaimSchedulingStatus) MarshalTo

func (m *ResourceClaimSchedulingStatus) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimSchedulingStatus) MarshalToSizedBuffer

func (m *ResourceClaimSchedulingStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimSchedulingStatus) ProtoMessage

func (*ResourceClaimSchedulingStatus) ProtoMessage()

func (*ResourceClaimSchedulingStatus) Reset

func (m *ResourceClaimSchedulingStatus) Reset()

func (*ResourceClaimSchedulingStatus) Size

func (m *ResourceClaimSchedulingStatus) Size() (n int)

func (*ResourceClaimSchedulingStatus) String

func (this *ResourceClaimSchedulingStatus) String() string

func (ResourceClaimSchedulingStatus) SwaggerDoc

func (ResourceClaimSchedulingStatus) SwaggerDoc() map[string]string

func (*ResourceClaimSchedulingStatus) Unmarshal

func (m *ResourceClaimSchedulingStatus) Unmarshal(dAtA []byte) error

func (*ResourceClaimSchedulingStatus) XXX_DiscardUnknown

func (m *ResourceClaimSchedulingStatus) XXX_DiscardUnknown()

func (*ResourceClaimSchedulingStatus) XXX_Marshal

func (m *ResourceClaimSchedulingStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimSchedulingStatus) XXX_Merge

func (m *ResourceClaimSchedulingStatus) XXX_Merge(src proto.Message)

func (*ResourceClaimSchedulingStatus) XXX_Size

func (m *ResourceClaimSchedulingStatus) XXX_Size() int

func (*ResourceClaimSchedulingStatus) XXX_Unmarshal

func (m *ResourceClaimSchedulingStatus) XXX_Unmarshal(b []byte) error

type ResourceClaimSpec

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"`
}

ResourceClaimSpec defines how a resource is to be allocated.

func (*ResourceClaimSpec) DeepCopy

func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec.

func (*ResourceClaimSpec) DeepCopyInto

func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimSpec) Descriptor

func (*ResourceClaimSpec) Descriptor() ([]byte, []int)

func (*ResourceClaimSpec) Marshal

func (m *ResourceClaimSpec) Marshal() (dAtA []byte, err error)

func (*ResourceClaimSpec) MarshalTo

func (m *ResourceClaimSpec) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimSpec) MarshalToSizedBuffer

func (m *ResourceClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimSpec) ProtoMessage

func (*ResourceClaimSpec) ProtoMessage()

func (*ResourceClaimSpec) Reset

func (m *ResourceClaimSpec) Reset()

func (*ResourceClaimSpec) Size

func (m *ResourceClaimSpec) Size() (n int)

func (*ResourceClaimSpec) String

func (this *ResourceClaimSpec) String() string

func (ResourceClaimSpec) SwaggerDoc

func (ResourceClaimSpec) SwaggerDoc() map[string]string

func (*ResourceClaimSpec) Unmarshal

func (m *ResourceClaimSpec) Unmarshal(dAtA []byte) error

func (*ResourceClaimSpec) XXX_DiscardUnknown

func (m *ResourceClaimSpec) XXX_DiscardUnknown()

func (*ResourceClaimSpec) XXX_Marshal

func (m *ResourceClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimSpec) XXX_Merge

func (m *ResourceClaimSpec) XXX_Merge(src proto.Message)

func (*ResourceClaimSpec) XXX_Size

func (m *ResourceClaimSpec) XXX_Size() int

func (*ResourceClaimSpec) XXX_Unmarshal

func (m *ResourceClaimSpec) XXX_Unmarshal(b []byte) error

type ResourceClaimStatus

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 or set of
	// resources has been allocated successfully. If this is not specified, the
	// resources have not been allocated yet.
	// +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=map
	// +listMapKey=uid
	// +patchStrategy=merge
	// +patchMergeKey=uid
	// +optional
	ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,3,opt,name=reservedFor" patchStrategy:"merge" patchMergeKey:"uid"`

	// 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"`
}

ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.

func (*ResourceClaimStatus) DeepCopy

func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus.

func (*ResourceClaimStatus) DeepCopyInto

func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimStatus) Descriptor

func (*ResourceClaimStatus) Descriptor() ([]byte, []int)

func (*ResourceClaimStatus) Marshal

func (m *ResourceClaimStatus) Marshal() (dAtA []byte, err error)

func (*ResourceClaimStatus) MarshalTo

func (m *ResourceClaimStatus) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimStatus) MarshalToSizedBuffer

func (m *ResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimStatus) ProtoMessage

func (*ResourceClaimStatus) ProtoMessage()

func (*ResourceClaimStatus) Reset

func (m *ResourceClaimStatus) Reset()

func (*ResourceClaimStatus) Size

func (m *ResourceClaimStatus) Size() (n int)

func (*ResourceClaimStatus) String

func (this *ResourceClaimStatus) String() string

func (ResourceClaimStatus) SwaggerDoc

func (ResourceClaimStatus) SwaggerDoc() map[string]string

func (*ResourceClaimStatus) Unmarshal

func (m *ResourceClaimStatus) Unmarshal(dAtA []byte) error

func (*ResourceClaimStatus) XXX_DiscardUnknown

func (m *ResourceClaimStatus) XXX_DiscardUnknown()

func (*ResourceClaimStatus) XXX_Marshal

func (m *ResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimStatus) XXX_Merge

func (m *ResourceClaimStatus) XXX_Merge(src proto.Message)

func (*ResourceClaimStatus) XXX_Size

func (m *ResourceClaimStatus) XXX_Size() int

func (*ResourceClaimStatus) XXX_Unmarshal

func (m *ResourceClaimStatus) XXX_Unmarshal(b []byte) error

type ResourceClaimTemplate

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"`
}

ResourceClaimTemplate is used to produce ResourceClaim objects.

func (*ResourceClaimTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate.

func (*ResourceClaimTemplate) DeepCopyInto

func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimTemplate) DeepCopyObject

func (in *ResourceClaimTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaimTemplate) Descriptor

func (*ResourceClaimTemplate) Descriptor() ([]byte, []int)

func (*ResourceClaimTemplate) Marshal

func (m *ResourceClaimTemplate) Marshal() (dAtA []byte, err error)

func (*ResourceClaimTemplate) MarshalTo

func (m *ResourceClaimTemplate) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimTemplate) MarshalToSizedBuffer

func (m *ResourceClaimTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimTemplate) ProtoMessage

func (*ResourceClaimTemplate) ProtoMessage()

func (*ResourceClaimTemplate) Reset

func (m *ResourceClaimTemplate) Reset()

func (*ResourceClaimTemplate) Size

func (m *ResourceClaimTemplate) Size() (n int)

func (*ResourceClaimTemplate) String

func (this *ResourceClaimTemplate) String() string

func (ResourceClaimTemplate) SwaggerDoc

func (ResourceClaimTemplate) SwaggerDoc() map[string]string

func (*ResourceClaimTemplate) Unmarshal

func (m *ResourceClaimTemplate) Unmarshal(dAtA []byte) error

func (*ResourceClaimTemplate) XXX_DiscardUnknown

func (m *ResourceClaimTemplate) XXX_DiscardUnknown()

func (*ResourceClaimTemplate) XXX_Marshal

func (m *ResourceClaimTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimTemplate) XXX_Merge

func (m *ResourceClaimTemplate) XXX_Merge(src proto.Message)

func (*ResourceClaimTemplate) XXX_Size

func (m *ResourceClaimTemplate) XXX_Size() int

func (*ResourceClaimTemplate) XXX_Unmarshal

func (m *ResourceClaimTemplate) XXX_Unmarshal(b []byte) error

type ResourceClaimTemplateList

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"`
}

ResourceClaimTemplateList is a collection of claim templates.

func (*ResourceClaimTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList.

func (*ResourceClaimTemplateList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimTemplateList) DeepCopyObject

func (in *ResourceClaimTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClaimTemplateList) Descriptor

func (*ResourceClaimTemplateList) Descriptor() ([]byte, []int)

func (*ResourceClaimTemplateList) Marshal

func (m *ResourceClaimTemplateList) Marshal() (dAtA []byte, err error)

func (*ResourceClaimTemplateList) MarshalTo

func (m *ResourceClaimTemplateList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimTemplateList) MarshalToSizedBuffer

func (m *ResourceClaimTemplateList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimTemplateList) ProtoMessage

func (*ResourceClaimTemplateList) ProtoMessage()

func (*ResourceClaimTemplateList) Reset

func (m *ResourceClaimTemplateList) Reset()

func (*ResourceClaimTemplateList) Size

func (m *ResourceClaimTemplateList) Size() (n int)

func (*ResourceClaimTemplateList) String

func (this *ResourceClaimTemplateList) String() string

func (ResourceClaimTemplateList) SwaggerDoc

func (ResourceClaimTemplateList) SwaggerDoc() map[string]string

func (*ResourceClaimTemplateList) Unmarshal

func (m *ResourceClaimTemplateList) Unmarshal(dAtA []byte) error

func (*ResourceClaimTemplateList) XXX_DiscardUnknown

func (m *ResourceClaimTemplateList) XXX_DiscardUnknown()

func (*ResourceClaimTemplateList) XXX_Marshal

func (m *ResourceClaimTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimTemplateList) XXX_Merge

func (m *ResourceClaimTemplateList) XXX_Merge(src proto.Message)

func (*ResourceClaimTemplateList) XXX_Size

func (m *ResourceClaimTemplateList) XXX_Size() int

func (*ResourceClaimTemplateList) XXX_Unmarshal

func (m *ResourceClaimTemplateList) XXX_Unmarshal(b []byte) error

type ResourceClaimTemplateSpec

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"`
}

ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.

func (*ResourceClaimTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec.

func (*ResourceClaimTemplateSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClaimTemplateSpec) Descriptor

func (*ResourceClaimTemplateSpec) Descriptor() ([]byte, []int)

func (*ResourceClaimTemplateSpec) Marshal

func (m *ResourceClaimTemplateSpec) Marshal() (dAtA []byte, err error)

func (*ResourceClaimTemplateSpec) MarshalTo

func (m *ResourceClaimTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClaimTemplateSpec) MarshalToSizedBuffer

func (m *ResourceClaimTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClaimTemplateSpec) ProtoMessage

func (*ResourceClaimTemplateSpec) ProtoMessage()

func (*ResourceClaimTemplateSpec) Reset

func (m *ResourceClaimTemplateSpec) Reset()

func (*ResourceClaimTemplateSpec) Size

func (m *ResourceClaimTemplateSpec) Size() (n int)

func (*ResourceClaimTemplateSpec) String

func (this *ResourceClaimTemplateSpec) String() string

func (ResourceClaimTemplateSpec) SwaggerDoc

func (ResourceClaimTemplateSpec) SwaggerDoc() map[string]string

func (*ResourceClaimTemplateSpec) Unmarshal

func (m *ResourceClaimTemplateSpec) Unmarshal(dAtA []byte) error

func (*ResourceClaimTemplateSpec) XXX_DiscardUnknown

func (m *ResourceClaimTemplateSpec) XXX_DiscardUnknown()

func (*ResourceClaimTemplateSpec) XXX_Marshal

func (m *ResourceClaimTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClaimTemplateSpec) XXX_Merge

func (m *ResourceClaimTemplateSpec) XXX_Merge(src proto.Message)

func (*ResourceClaimTemplateSpec) XXX_Size

func (m *ResourceClaimTemplateSpec) XXX_Size() int

func (*ResourceClaimTemplateSpec) XXX_Unmarshal

func (m *ResourceClaimTemplateSpec) XXX_Unmarshal(b []byte) error

type ResourceClass

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"`

	// 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"`
}

ResourceClass is used by administrators to influence how resources are allocated.

This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

func (*ResourceClass) DeepCopy

func (in *ResourceClass) DeepCopy() *ResourceClass

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClass.

func (*ResourceClass) DeepCopyInto

func (in *ResourceClass) DeepCopyInto(out *ResourceClass)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClass) DeepCopyObject

func (in *ResourceClass) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClass) Descriptor

func (*ResourceClass) Descriptor() ([]byte, []int)

func (*ResourceClass) Marshal

func (m *ResourceClass) Marshal() (dAtA []byte, err error)

func (*ResourceClass) MarshalTo

func (m *ResourceClass) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClass) MarshalToSizedBuffer

func (m *ResourceClass) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClass) ProtoMessage

func (*ResourceClass) ProtoMessage()

func (*ResourceClass) Reset

func (m *ResourceClass) Reset()

func (*ResourceClass) Size

func (m *ResourceClass) Size() (n int)

func (*ResourceClass) String

func (this *ResourceClass) String() string

func (ResourceClass) SwaggerDoc

func (ResourceClass) SwaggerDoc() map[string]string

func (*ResourceClass) Unmarshal

func (m *ResourceClass) Unmarshal(dAtA []byte) error

func (*ResourceClass) XXX_DiscardUnknown

func (m *ResourceClass) XXX_DiscardUnknown()

func (*ResourceClass) XXX_Marshal

func (m *ResourceClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClass) XXX_Merge

func (m *ResourceClass) XXX_Merge(src proto.Message)

func (*ResourceClass) XXX_Size

func (m *ResourceClass) XXX_Size() int

func (*ResourceClass) XXX_Unmarshal

func (m *ResourceClass) XXX_Unmarshal(b []byte) error

type ResourceClassList

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"`
}

ResourceClassList is a collection of classes.

func (*ResourceClassList) DeepCopy

func (in *ResourceClassList) DeepCopy() *ResourceClassList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassList.

func (*ResourceClassList) DeepCopyInto

func (in *ResourceClassList) DeepCopyInto(out *ResourceClassList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClassList) DeepCopyObject

func (in *ResourceClassList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClassList) Descriptor

func (*ResourceClassList) Descriptor() ([]byte, []int)

func (*ResourceClassList) Marshal

func (m *ResourceClassList) Marshal() (dAtA []byte, err error)

func (*ResourceClassList) MarshalTo

func (m *ResourceClassList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClassList) MarshalToSizedBuffer

func (m *ResourceClassList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClassList) ProtoMessage

func (*ResourceClassList) ProtoMessage()

func (*ResourceClassList) Reset

func (m *ResourceClassList) Reset()

func (*ResourceClassList) Size

func (m *ResourceClassList) Size() (n int)

func (*ResourceClassList) String

func (this *ResourceClassList) String() string

func (ResourceClassList) SwaggerDoc

func (ResourceClassList) SwaggerDoc() map[string]string

func (*ResourceClassList) Unmarshal

func (m *ResourceClassList) Unmarshal(dAtA []byte) error

func (*ResourceClassList) XXX_DiscardUnknown

func (m *ResourceClassList) XXX_DiscardUnknown()

func (*ResourceClassList) XXX_Marshal

func (m *ResourceClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClassList) XXX_Merge

func (m *ResourceClassList) XXX_Merge(src proto.Message)

func (*ResourceClassList) XXX_Size

func (m *ResourceClassList) XXX_Size() int

func (*ResourceClassList) XXX_Unmarshal

func (m *ResourceClassList) XXX_Unmarshal(b []byte) error

type ResourceClassParameters added in v0.30.0

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"`
}

ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes.

func (*ResourceClassParameters) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParameters.

func (*ResourceClassParameters) DeepCopyInto added in v0.30.0

func (in *ResourceClassParameters) DeepCopyInto(out *ResourceClassParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClassParameters) DeepCopyObject added in v0.30.0

func (in *ResourceClassParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClassParameters) Descriptor added in v0.30.0

func (*ResourceClassParameters) Descriptor() ([]byte, []int)

func (*ResourceClassParameters) Marshal added in v0.30.0

func (m *ResourceClassParameters) Marshal() (dAtA []byte, err error)

func (*ResourceClassParameters) MarshalTo added in v0.30.0

func (m *ResourceClassParameters) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClassParameters) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceClassParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClassParameters) ProtoMessage added in v0.30.0

func (*ResourceClassParameters) ProtoMessage()

func (*ResourceClassParameters) Reset added in v0.30.0

func (m *ResourceClassParameters) Reset()

func (*ResourceClassParameters) Size added in v0.30.0

func (m *ResourceClassParameters) Size() (n int)

func (*ResourceClassParameters) String added in v0.30.0

func (this *ResourceClassParameters) String() string

func (ResourceClassParameters) SwaggerDoc added in v0.30.0

func (ResourceClassParameters) SwaggerDoc() map[string]string

func (*ResourceClassParameters) Unmarshal added in v0.30.0

func (m *ResourceClassParameters) Unmarshal(dAtA []byte) error

func (*ResourceClassParameters) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceClassParameters) XXX_DiscardUnknown()

func (*ResourceClassParameters) XXX_Marshal added in v0.30.0

func (m *ResourceClassParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClassParameters) XXX_Merge added in v0.30.0

func (m *ResourceClassParameters) XXX_Merge(src proto.Message)

func (*ResourceClassParameters) XXX_Size added in v0.30.0

func (m *ResourceClassParameters) XXX_Size() int

func (*ResourceClassParameters) XXX_Unmarshal added in v0.30.0

func (m *ResourceClassParameters) XXX_Unmarshal(b []byte) error

type ResourceClassParametersList added in v0.30.0

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"`
}

ResourceClassParametersList is a collection of ResourceClassParameters.

func (*ResourceClassParametersList) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersList.

func (*ResourceClassParametersList) DeepCopyInto added in v0.30.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClassParametersList) DeepCopyObject added in v0.30.0

func (in *ResourceClassParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceClassParametersList) Descriptor added in v0.30.0

func (*ResourceClassParametersList) Descriptor() ([]byte, []int)

func (*ResourceClassParametersList) Marshal added in v0.30.0

func (m *ResourceClassParametersList) Marshal() (dAtA []byte, err error)

func (*ResourceClassParametersList) MarshalTo added in v0.30.0

func (m *ResourceClassParametersList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClassParametersList) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceClassParametersList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClassParametersList) ProtoMessage added in v0.30.0

func (*ResourceClassParametersList) ProtoMessage()

func (*ResourceClassParametersList) Reset added in v0.30.0

func (m *ResourceClassParametersList) Reset()

func (*ResourceClassParametersList) Size added in v0.30.0

func (m *ResourceClassParametersList) Size() (n int)

func (*ResourceClassParametersList) String added in v0.30.0

func (this *ResourceClassParametersList) String() string

func (ResourceClassParametersList) SwaggerDoc added in v0.30.0

func (ResourceClassParametersList) SwaggerDoc() map[string]string

func (*ResourceClassParametersList) Unmarshal added in v0.30.0

func (m *ResourceClassParametersList) Unmarshal(dAtA []byte) error

func (*ResourceClassParametersList) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceClassParametersList) XXX_DiscardUnknown()

func (*ResourceClassParametersList) XXX_Marshal added in v0.30.0

func (m *ResourceClassParametersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClassParametersList) XXX_Merge added in v0.30.0

func (m *ResourceClassParametersList) XXX_Merge(src proto.Message)

func (*ResourceClassParametersList) XXX_Size added in v0.30.0

func (m *ResourceClassParametersList) XXX_Size() int

func (*ResourceClassParametersList) XXX_Unmarshal added in v0.30.0

func (m *ResourceClassParametersList) XXX_Unmarshal(b []byte) error

type ResourceClassParametersReference

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"`
}

ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.

func (*ResourceClassParametersReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersReference.

func (*ResourceClassParametersReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceClassParametersReference) Descriptor

func (*ResourceClassParametersReference) Descriptor() ([]byte, []int)

func (*ResourceClassParametersReference) Marshal

func (m *ResourceClassParametersReference) Marshal() (dAtA []byte, err error)

func (*ResourceClassParametersReference) MarshalTo

func (m *ResourceClassParametersReference) MarshalTo(dAtA []byte) (int, error)

func (*ResourceClassParametersReference) MarshalToSizedBuffer

func (m *ResourceClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceClassParametersReference) ProtoMessage

func (*ResourceClassParametersReference) ProtoMessage()

func (*ResourceClassParametersReference) Reset

func (*ResourceClassParametersReference) Size

func (m *ResourceClassParametersReference) Size() (n int)

func (*ResourceClassParametersReference) String

func (ResourceClassParametersReference) SwaggerDoc

func (*ResourceClassParametersReference) Unmarshal

func (m *ResourceClassParametersReference) Unmarshal(dAtA []byte) error

func (*ResourceClassParametersReference) XXX_DiscardUnknown

func (m *ResourceClassParametersReference) XXX_DiscardUnknown()

func (*ResourceClassParametersReference) XXX_Marshal

func (m *ResourceClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceClassParametersReference) XXX_Merge

func (*ResourceClassParametersReference) XXX_Size

func (m *ResourceClassParametersReference) XXX_Size() int

func (*ResourceClassParametersReference) XXX_Unmarshal

func (m *ResourceClassParametersReference) XXX_Unmarshal(b []byte) error

type ResourceFilter added in v0.30.0

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"`
}

ResourceFilter is a filter for resources from one particular driver.

func (*ResourceFilter) DeepCopy added in v0.30.0

func (in *ResourceFilter) DeepCopy() *ResourceFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilter.

func (*ResourceFilter) DeepCopyInto added in v0.30.0

func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceFilter) Descriptor added in v0.30.0

func (*ResourceFilter) Descriptor() ([]byte, []int)

func (*ResourceFilter) Marshal added in v0.30.0

func (m *ResourceFilter) Marshal() (dAtA []byte, err error)

func (*ResourceFilter) MarshalTo added in v0.30.0

func (m *ResourceFilter) MarshalTo(dAtA []byte) (int, error)

func (*ResourceFilter) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceFilter) ProtoMessage added in v0.30.0

func (*ResourceFilter) ProtoMessage()

func (*ResourceFilter) Reset added in v0.30.0

func (m *ResourceFilter) Reset()

func (*ResourceFilter) Size added in v0.30.0

func (m *ResourceFilter) Size() (n int)

func (*ResourceFilter) String added in v0.30.0

func (this *ResourceFilter) String() string

func (ResourceFilter) SwaggerDoc added in v0.30.0

func (ResourceFilter) SwaggerDoc() map[string]string

func (*ResourceFilter) Unmarshal added in v0.30.0

func (m *ResourceFilter) Unmarshal(dAtA []byte) error

func (*ResourceFilter) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceFilter) XXX_DiscardUnknown()

func (*ResourceFilter) XXX_Marshal added in v0.30.0

func (m *ResourceFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceFilter) XXX_Merge added in v0.30.0

func (m *ResourceFilter) XXX_Merge(src proto.Message)

func (*ResourceFilter) XXX_Size added in v0.30.0

func (m *ResourceFilter) XXX_Size() int

func (*ResourceFilter) XXX_Unmarshal added in v0.30.0

func (m *ResourceFilter) XXX_Unmarshal(b []byte) error

type ResourceFilterModel added in v0.30.0

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"`
}

ResourceFilterModel must have one and only one field set.

func (*ResourceFilterModel) DeepCopy added in v0.30.0

func (in *ResourceFilterModel) DeepCopy() *ResourceFilterModel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilterModel.

func (*ResourceFilterModel) DeepCopyInto added in v0.30.0

func (in *ResourceFilterModel) DeepCopyInto(out *ResourceFilterModel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceFilterModel) Descriptor added in v0.30.0

func (*ResourceFilterModel) Descriptor() ([]byte, []int)

func (*ResourceFilterModel) Marshal added in v0.30.0

func (m *ResourceFilterModel) Marshal() (dAtA []byte, err error)

func (*ResourceFilterModel) MarshalTo added in v0.30.0

func (m *ResourceFilterModel) MarshalTo(dAtA []byte) (int, error)

func (*ResourceFilterModel) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceFilterModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceFilterModel) ProtoMessage added in v0.30.0

func (*ResourceFilterModel) ProtoMessage()

func (*ResourceFilterModel) Reset added in v0.30.0

func (m *ResourceFilterModel) Reset()

func (*ResourceFilterModel) Size added in v0.30.0

func (m *ResourceFilterModel) Size() (n int)

func (*ResourceFilterModel) String added in v0.30.0

func (this *ResourceFilterModel) String() string

func (ResourceFilterModel) SwaggerDoc added in v0.30.0

func (ResourceFilterModel) SwaggerDoc() map[string]string

func (*ResourceFilterModel) Unmarshal added in v0.30.0

func (m *ResourceFilterModel) Unmarshal(dAtA []byte) error

func (*ResourceFilterModel) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceFilterModel) XXX_DiscardUnknown()

func (*ResourceFilterModel) XXX_Marshal added in v0.30.0

func (m *ResourceFilterModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceFilterModel) XXX_Merge added in v0.30.0

func (m *ResourceFilterModel) XXX_Merge(src proto.Message)

func (*ResourceFilterModel) XXX_Size added in v0.30.0

func (m *ResourceFilterModel) XXX_Size() int

func (*ResourceFilterModel) XXX_Unmarshal added in v0.30.0

func (m *ResourceFilterModel) XXX_Unmarshal(b []byte) error

type ResourceHandle

type ResourceHandle struct {
	// 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.
	DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"`

	// 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.
	//
	// The maximum size of this field is 16KiB. This may get increased in the
	// 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"`
}

ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.

func (*ResourceHandle) DeepCopy

func (in *ResourceHandle) DeepCopy() *ResourceHandle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceHandle.

func (*ResourceHandle) DeepCopyInto

func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceHandle) Descriptor

func (*ResourceHandle) Descriptor() ([]byte, []int)

func (*ResourceHandle) Marshal

func (m *ResourceHandle) Marshal() (dAtA []byte, err error)

func (*ResourceHandle) MarshalTo

func (m *ResourceHandle) MarshalTo(dAtA []byte) (int, error)

func (*ResourceHandle) MarshalToSizedBuffer

func (m *ResourceHandle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceHandle) ProtoMessage

func (*ResourceHandle) ProtoMessage()

func (*ResourceHandle) Reset

func (m *ResourceHandle) Reset()

func (*ResourceHandle) Size

func (m *ResourceHandle) Size() (n int)

func (*ResourceHandle) String

func (this *ResourceHandle) String() string

func (ResourceHandle) SwaggerDoc

func (ResourceHandle) SwaggerDoc() map[string]string

func (*ResourceHandle) Unmarshal

func (m *ResourceHandle) Unmarshal(dAtA []byte) error

func (*ResourceHandle) XXX_DiscardUnknown

func (m *ResourceHandle) XXX_DiscardUnknown()

func (*ResourceHandle) XXX_Marshal

func (m *ResourceHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceHandle) XXX_Merge

func (m *ResourceHandle) XXX_Merge(src proto.Message)

func (*ResourceHandle) XXX_Size

func (m *ResourceHandle) XXX_Size() int

func (*ResourceHandle) XXX_Unmarshal

func (m *ResourceHandle) XXX_Unmarshal(b []byte) error

type ResourceModel added in v0.30.0

type ResourceModel struct {
	// NamedResources describes available resources using the named resources model.
	//
	// +optional
	NamedResources *NamedResourcesResources `json:"namedResources,omitempty" protobuf:"bytes,1,opt,name=namedResources"`
}

ResourceModel must have one and only one field set.

func (*ResourceModel) DeepCopy added in v0.30.0

func (in *ResourceModel) DeepCopy() *ResourceModel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceModel.

func (*ResourceModel) DeepCopyInto added in v0.30.0

func (in *ResourceModel) DeepCopyInto(out *ResourceModel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceModel) Descriptor added in v0.30.0

func (*ResourceModel) Descriptor() ([]byte, []int)

func (*ResourceModel) Marshal added in v0.30.0

func (m *ResourceModel) Marshal() (dAtA []byte, err error)

func (*ResourceModel) MarshalTo added in v0.30.0

func (m *ResourceModel) MarshalTo(dAtA []byte) (int, error)

func (*ResourceModel) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceModel) ProtoMessage added in v0.30.0

func (*ResourceModel) ProtoMessage()

func (*ResourceModel) Reset added in v0.30.0

func (m *ResourceModel) Reset()

func (*ResourceModel) Size added in v0.30.0

func (m *ResourceModel) Size() (n int)

func (*ResourceModel) String added in v0.30.0

func (this *ResourceModel) String() string

func (ResourceModel) SwaggerDoc added in v0.30.0

func (ResourceModel) SwaggerDoc() map[string]string

func (*ResourceModel) Unmarshal added in v0.30.0

func (m *ResourceModel) Unmarshal(dAtA []byte) error

func (*ResourceModel) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceModel) XXX_DiscardUnknown()

func (*ResourceModel) XXX_Marshal added in v0.30.0

func (m *ResourceModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceModel) XXX_Merge added in v0.30.0

func (m *ResourceModel) XXX_Merge(src proto.Message)

func (*ResourceModel) XXX_Size added in v0.30.0

func (m *ResourceModel) XXX_Size() int

func (*ResourceModel) XXX_Unmarshal added in v0.30.0

func (m *ResourceModel) XXX_Unmarshal(b []byte) error

type ResourceRequest added in v0.30.0

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"`
}

ResourceRequest is a request for resources from one particular driver.

func (*ResourceRequest) DeepCopy added in v0.30.0

func (in *ResourceRequest) DeepCopy() *ResourceRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequest.

func (*ResourceRequest) DeepCopyInto added in v0.30.0

func (in *ResourceRequest) DeepCopyInto(out *ResourceRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceRequest) Descriptor added in v0.30.0

func (*ResourceRequest) Descriptor() ([]byte, []int)

func (*ResourceRequest) Marshal added in v0.30.0

func (m *ResourceRequest) Marshal() (dAtA []byte, err error)

func (*ResourceRequest) MarshalTo added in v0.30.0

func (m *ResourceRequest) MarshalTo(dAtA []byte) (int, error)

func (*ResourceRequest) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceRequest) ProtoMessage added in v0.30.0

func (*ResourceRequest) ProtoMessage()

func (*ResourceRequest) Reset added in v0.30.0

func (m *ResourceRequest) Reset()

func (*ResourceRequest) Size added in v0.30.0

func (m *ResourceRequest) Size() (n int)

func (*ResourceRequest) String added in v0.30.0

func (this *ResourceRequest) String() string

func (ResourceRequest) SwaggerDoc added in v0.30.0

func (ResourceRequest) SwaggerDoc() map[string]string

func (*ResourceRequest) Unmarshal added in v0.30.0

func (m *ResourceRequest) Unmarshal(dAtA []byte) error

func (*ResourceRequest) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceRequest) XXX_DiscardUnknown()

func (*ResourceRequest) XXX_Marshal added in v0.30.0

func (m *ResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceRequest) XXX_Merge added in v0.30.0

func (m *ResourceRequest) XXX_Merge(src proto.Message)

func (*ResourceRequest) XXX_Size added in v0.30.0

func (m *ResourceRequest) XXX_Size() int

func (*ResourceRequest) XXX_Unmarshal added in v0.30.0

func (m *ResourceRequest) XXX_Unmarshal(b []byte) error

type ResourceRequestModel added in v0.30.0

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"`
}

ResourceRequestModel must have one and only one field set.

func (*ResourceRequestModel) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequestModel.

func (*ResourceRequestModel) DeepCopyInto added in v0.30.0

func (in *ResourceRequestModel) DeepCopyInto(out *ResourceRequestModel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceRequestModel) Descriptor added in v0.30.0

func (*ResourceRequestModel) Descriptor() ([]byte, []int)

func (*ResourceRequestModel) Marshal added in v0.30.0

func (m *ResourceRequestModel) Marshal() (dAtA []byte, err error)

func (*ResourceRequestModel) MarshalTo added in v0.30.0

func (m *ResourceRequestModel) MarshalTo(dAtA []byte) (int, error)

func (*ResourceRequestModel) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceRequestModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceRequestModel) ProtoMessage added in v0.30.0

func (*ResourceRequestModel) ProtoMessage()

func (*ResourceRequestModel) Reset added in v0.30.0

func (m *ResourceRequestModel) Reset()

func (*ResourceRequestModel) Size added in v0.30.0

func (m *ResourceRequestModel) Size() (n int)

func (*ResourceRequestModel) String added in v0.30.0

func (this *ResourceRequestModel) String() string

func (ResourceRequestModel) SwaggerDoc added in v0.30.0

func (ResourceRequestModel) SwaggerDoc() map[string]string

func (*ResourceRequestModel) Unmarshal added in v0.30.0

func (m *ResourceRequestModel) Unmarshal(dAtA []byte) error

func (*ResourceRequestModel) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceRequestModel) XXX_DiscardUnknown()

func (*ResourceRequestModel) XXX_Marshal added in v0.30.0

func (m *ResourceRequestModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceRequestModel) XXX_Merge added in v0.30.0

func (m *ResourceRequestModel) XXX_Merge(src proto.Message)

func (*ResourceRequestModel) XXX_Size added in v0.30.0

func (m *ResourceRequestModel) XXX_Size() int

func (*ResourceRequestModel) XXX_Unmarshal added in v0.30.0

func (m *ResourceRequestModel) XXX_Unmarshal(b []byte) error

type ResourceSlice added in v0.30.0

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"`
}

ResourceSlice provides information about available resources on individual nodes.

func (*ResourceSlice) DeepCopy added in v0.30.0

func (in *ResourceSlice) DeepCopy() *ResourceSlice

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSlice.

func (*ResourceSlice) DeepCopyInto added in v0.30.0

func (in *ResourceSlice) DeepCopyInto(out *ResourceSlice)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceSlice) DeepCopyObject added in v0.30.0

func (in *ResourceSlice) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceSlice) Descriptor added in v0.30.0

func (*ResourceSlice) Descriptor() ([]byte, []int)

func (*ResourceSlice) Marshal added in v0.30.0

func (m *ResourceSlice) Marshal() (dAtA []byte, err error)

func (*ResourceSlice) MarshalTo added in v0.30.0

func (m *ResourceSlice) MarshalTo(dAtA []byte) (int, error)

func (*ResourceSlice) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceSlice) ProtoMessage added in v0.30.0

func (*ResourceSlice) ProtoMessage()

func (*ResourceSlice) Reset added in v0.30.0

func (m *ResourceSlice) Reset()

func (*ResourceSlice) Size added in v0.30.0

func (m *ResourceSlice) Size() (n int)

func (*ResourceSlice) String added in v0.30.0

func (this *ResourceSlice) String() string

func (ResourceSlice) SwaggerDoc added in v0.30.0

func (ResourceSlice) SwaggerDoc() map[string]string

func (*ResourceSlice) Unmarshal added in v0.30.0

func (m *ResourceSlice) Unmarshal(dAtA []byte) error

func (*ResourceSlice) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceSlice) XXX_DiscardUnknown()

func (*ResourceSlice) XXX_Marshal added in v0.30.0

func (m *ResourceSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceSlice) XXX_Merge added in v0.30.0

func (m *ResourceSlice) XXX_Merge(src proto.Message)

func (*ResourceSlice) XXX_Size added in v0.30.0

func (m *ResourceSlice) XXX_Size() int

func (*ResourceSlice) XXX_Unmarshal added in v0.30.0

func (m *ResourceSlice) XXX_Unmarshal(b []byte) error

type ResourceSliceList added in v0.30.0

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"`
}

ResourceSliceList is a collection of ResourceSlices.

func (*ResourceSliceList) DeepCopy added in v0.30.0

func (in *ResourceSliceList) DeepCopy() *ResourceSliceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceList.

func (*ResourceSliceList) DeepCopyInto added in v0.30.0

func (in *ResourceSliceList) DeepCopyInto(out *ResourceSliceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceSliceList) DeepCopyObject added in v0.30.0

func (in *ResourceSliceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceSliceList) Descriptor added in v0.30.0

func (*ResourceSliceList) Descriptor() ([]byte, []int)

func (*ResourceSliceList) Marshal added in v0.30.0

func (m *ResourceSliceList) Marshal() (dAtA []byte, err error)

func (*ResourceSliceList) MarshalTo added in v0.30.0

func (m *ResourceSliceList) MarshalTo(dAtA []byte) (int, error)

func (*ResourceSliceList) MarshalToSizedBuffer added in v0.30.0

func (m *ResourceSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceSliceList) ProtoMessage added in v0.30.0

func (*ResourceSliceList) ProtoMessage()

func (*ResourceSliceList) Reset added in v0.30.0

func (m *ResourceSliceList) Reset()

func (*ResourceSliceList) Size added in v0.30.0

func (m *ResourceSliceList) Size() (n int)

func (*ResourceSliceList) String added in v0.30.0

func (this *ResourceSliceList) String() string

func (ResourceSliceList) SwaggerDoc added in v0.30.0

func (ResourceSliceList) SwaggerDoc() map[string]string

func (*ResourceSliceList) Unmarshal added in v0.30.0

func (m *ResourceSliceList) Unmarshal(dAtA []byte) error

func (*ResourceSliceList) XXX_DiscardUnknown added in v0.30.0

func (m *ResourceSliceList) XXX_DiscardUnknown()

func (*ResourceSliceList) XXX_Marshal added in v0.30.0

func (m *ResourceSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceSliceList) XXX_Merge added in v0.30.0

func (m *ResourceSliceList) XXX_Merge(src proto.Message)

func (*ResourceSliceList) XXX_Size added in v0.30.0

func (m *ResourceSliceList) XXX_Size() int

func (*ResourceSliceList) XXX_Unmarshal added in v0.30.0

func (m *ResourceSliceList) XXX_Unmarshal(b []byte) error

type StructuredResourceHandle added in v0.30.0

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"`
}

StructuredResourceHandle is the in-tree representation of the allocation result.

func (*StructuredResourceHandle) DeepCopy added in v0.30.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructuredResourceHandle.

func (*StructuredResourceHandle) DeepCopyInto added in v0.30.0

func (in *StructuredResourceHandle) DeepCopyInto(out *StructuredResourceHandle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructuredResourceHandle) Descriptor added in v0.30.0

func (*StructuredResourceHandle) Descriptor() ([]byte, []int)

func (*StructuredResourceHandle) Marshal added in v0.30.0

func (m *StructuredResourceHandle) Marshal() (dAtA []byte, err error)

func (*StructuredResourceHandle) MarshalTo added in v0.30.0

func (m *StructuredResourceHandle) MarshalTo(dAtA []byte) (int, error)

func (*StructuredResourceHandle) MarshalToSizedBuffer added in v0.30.0

func (m *StructuredResourceHandle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StructuredResourceHandle) ProtoMessage added in v0.30.0

func (*StructuredResourceHandle) ProtoMessage()

func (*StructuredResourceHandle) Reset added in v0.30.0

func (m *StructuredResourceHandle) Reset()

func (*StructuredResourceHandle) Size added in v0.30.0

func (m *StructuredResourceHandle) Size() (n int)

func (*StructuredResourceHandle) String added in v0.30.0

func (this *StructuredResourceHandle) String() string

func (StructuredResourceHandle) SwaggerDoc added in v0.30.0

func (StructuredResourceHandle) SwaggerDoc() map[string]string

func (*StructuredResourceHandle) Unmarshal added in v0.30.0

func (m *StructuredResourceHandle) Unmarshal(dAtA []byte) error

func (*StructuredResourceHandle) XXX_DiscardUnknown added in v0.30.0

func (m *StructuredResourceHandle) XXX_DiscardUnknown()

func (*StructuredResourceHandle) XXX_Marshal added in v0.30.0

func (m *StructuredResourceHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StructuredResourceHandle) XXX_Merge added in v0.30.0

func (m *StructuredResourceHandle) XXX_Merge(src proto.Message)

func (*StructuredResourceHandle) XXX_Size added in v0.30.0

func (m *StructuredResourceHandle) XXX_Size() int

func (*StructuredResourceHandle) XXX_Unmarshal added in v0.30.0

func (m *StructuredResourceHandle) XXX_Unmarshal(b []byte) error

type VendorParameters added in v0.30.0

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"`
}

VendorParameters are opaque parameters for one particular driver.

func (*VendorParameters) DeepCopy added in v0.30.0

func (in *VendorParameters) DeepCopy() *VendorParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VendorParameters.

func (*VendorParameters) DeepCopyInto added in v0.30.0

func (in *VendorParameters) DeepCopyInto(out *VendorParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VendorParameters) Descriptor added in v0.30.0

func (*VendorParameters) Descriptor() ([]byte, []int)

func (*VendorParameters) Marshal added in v0.30.0

func (m *VendorParameters) Marshal() (dAtA []byte, err error)

func (*VendorParameters) MarshalTo added in v0.30.0

func (m *VendorParameters) MarshalTo(dAtA []byte) (int, error)

func (*VendorParameters) MarshalToSizedBuffer added in v0.30.0

func (m *VendorParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VendorParameters) ProtoMessage added in v0.30.0

func (*VendorParameters) ProtoMessage()

func (*VendorParameters) Reset added in v0.30.0

func (m *VendorParameters) Reset()

func (*VendorParameters) Size added in v0.30.0

func (m *VendorParameters) Size() (n int)

func (*VendorParameters) String added in v0.30.0

func (this *VendorParameters) String() string

func (VendorParameters) SwaggerDoc added in v0.30.0

func (VendorParameters) SwaggerDoc() map[string]string

func (*VendorParameters) Unmarshal added in v0.30.0

func (m *VendorParameters) Unmarshal(dAtA []byte) error

func (*VendorParameters) XXX_DiscardUnknown added in v0.30.0

func (m *VendorParameters) XXX_DiscardUnknown()

func (*VendorParameters) XXX_Marshal added in v0.30.0

func (m *VendorParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VendorParameters) XXX_Merge added in v0.30.0

func (m *VendorParameters) XXX_Merge(src proto.Message)

func (*VendorParameters) XXX_Size added in v0.30.0

func (m *VendorParameters) XXX_Size() int

func (*VendorParameters) XXX_Unmarshal added in v0.30.0

func (m *VendorParameters) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL