v1alpha3

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 45

Documentation

Overview

Package v1alpha3 is the v1alpha3 version of the resource API.

Index

Constants

View Source
const (
	// ResourceSliceSelectorNodeName can be used in a [metav1.ListOptions]
	// field selector to filter based on [ResourceSliceSpec.NodeName].
	ResourceSliceSelectorNodeName = "spec.nodeName"
	// ResourceSliceSelectorDriver can be used in a [metav1.ListOptions]
	// field selector to filter based on [ResourceSliceSpec.Driver].
	ResourceSliceSelectorDriver = "spec.driver"
)
View Source
const (
	DeviceRequestsMaxSize    = AllocationResultsMaxSize
	DeviceConstraintsMaxSize = 32
	DeviceConfigMaxSize      = 32
)
View Source
const (
	DeviceAllocationModeExactCount = DeviceAllocationMode("ExactCount")
	DeviceAllocationModeAll        = DeviceAllocationMode("All")
)

Valid [DeviceRequest.CountMode] values.

View Source
const (
	AllocationConfigSourceClass = "FromClass"
	AllocationConfigSourceClaim = "FromClaim"
)

Valid [DeviceAllocationConfiguration.Source] values.

View Source
const AllocationResultsMaxSize = 32

AllocationResultsMaxSize represents the maximum number of entries in allocation.devices.results.

View Source
const DeviceAttributeMaxValueLength = 64

DeviceAttributeMaxValueLength is the maximum length of a string or version attribute value.

View Source
const DeviceMaxIDLength = 32

DeviceMaxIDLength is the maximum length of the identifier in a device attribute or capacity name (`<domain>/<ID>`).

View Source
const (
	DeviceSelectorsMaxSize = 32
)
View Source
const (
	// Finalizer is the finalizer that gets set for claims
	// which were allocated through a builtin controller.
	// Reserved for use by Kubernetes, DRA driver controllers must
	// use their own finalizer.
	Finalizer = "resource.kubernetes.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 PoolNameMaxLength = validation.DNS1123SubdomainMaxLength // Same as for a single node name.
View Source
const ResourceClaimReservedForMaxSize = 32

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

View Source
const ResourceSliceMaxAttributesAndCapacitiesPerDevice = 32

Limit for the sum of the number of entries in both ResourceSlices.

View Source
const ResourceSliceMaxDevices = 128
View Source
const ResourceSliceMaxSharedCapacity = 128

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: "v1alpha3"}

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 AllocationConfigSource

type AllocationConfigSource string

type AllocationResult

type AllocationResult struct {
	// Devices is the result of allocating devices.
	//
	// +optional
	Devices DeviceAllocationResult `json:"devices,omitempty" protobuf:"bytes,1,opt,name=devices"`

	// NodeSelector defines where the allocated resources are available. If
	// unset, they are available everywhere.
	//
	// +optional
	NodeSelector *v1.NodeSelector `json:"nodeSelector,omitempty" protobuf:"bytes,3,opt,name=nodeSelector"`

	// Controller is the name of the DRA driver which handled the
	// allocation. That driver is also responsible for deallocating the
	// claim. It is empty when the claim can be deallocated without
	// involving a driver.
	//
	// A driver may allocate devices provided by other drivers, so this
	// driver name here can be different from the driver names listed for
	// the results.
	//
	// This is an alpha field and requires enabling the DRAControlPlaneController
	// feature gate.
	//
	// +optional
	// +featureGate=DRAControlPlaneController
	Controller string `json:"controller,omitempty" protobuf:"bytes,4,opt,name=controller"`
}

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 BasicDevice

type BasicDevice struct {
	// Attributes defines the set of attributes for this device.
	// The name of each attribute must be unique in that set.
	//
	// The maximum number of attributes and capacities combined is 32.
	//
	// +optional
	Attributes map[QualifiedName]DeviceAttribute `json:"attributes,omitempty" protobuf:"bytes,1,rep,name=attributes"`

	// Capacity defines the set of capacities for this device.
	// The name of each capacity must be unique in that set.
	//
	// The maximum number of attributes and capacities combined is 32.
	//
	// +optional
	Capacity map[QualifiedName]resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,2,rep,name=capacity"`
}

BasicDevice defines one device instance.

func (*BasicDevice) DeepCopy

func (in *BasicDevice) DeepCopy() *BasicDevice

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

func (*BasicDevice) DeepCopyInto

func (in *BasicDevice) DeepCopyInto(out *BasicDevice)

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

func (*BasicDevice) Descriptor

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

func (*BasicDevice) Marshal

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

func (*BasicDevice) MarshalTo

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

func (*BasicDevice) MarshalToSizedBuffer

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

func (*BasicDevice) ProtoMessage

func (*BasicDevice) ProtoMessage()

func (*BasicDevice) Reset

func (m *BasicDevice) Reset()

func (*BasicDevice) Size

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

func (*BasicDevice) String

func (this *BasicDevice) String() string

func (BasicDevice) SwaggerDoc

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

func (*BasicDevice) Unmarshal

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

func (*BasicDevice) XXX_DiscardUnknown

func (m *BasicDevice) XXX_DiscardUnknown()

func (*BasicDevice) XXX_Marshal

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

func (*BasicDevice) XXX_Merge

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

func (*BasicDevice) XXX_Size

func (m *BasicDevice) XXX_Size() int

func (*BasicDevice) XXX_Unmarshal

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

type CELDeviceSelector

type CELDeviceSelector struct {
	// Expression is a CEL expression which evaluates a single device. It
	// must evaluate to true when the device under consideration satisfies
	// the desired criteria, and false when it does not. Any other result
	// is an error and causes allocation of devices to abort.
	//
	// The expression's input is an object named "device", which carries
	// the following properties:
	//  - driver (string): the name of the driver which defines this device.
	//  - attributes (map[string]object): the device's attributes, grouped by prefix
	//    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
	//    of the attributes which were prefixed by "dra.example.com".
	//  - capacity (map[string]object): the device's capacities, grouped by prefix.
	//
	// Example: Consider a device with driver="dra.example.com", which exposes
	// two attributes named "model" and "ext.example.com/family" and which
	// exposes one capacity named "modules". This input to this expression
	// would have the following fields:
	//
	//     device.driver
	//     device.attributes["dra.example.com"].model
	//     device.attributes["ext.example.com"].family
	//     device.capacity["dra.example.com"].modules
	//
	// The device.driver field can be used to check for a specific driver,
	// either as a high-level precondition (i.e. you only want to consider
	// devices from this driver) or as part of a multi-clause expression
	// that is meant to consider devices from different drivers.
	//
	// The value type of each attribute is defined by the device
	// definition, and users who write these expressions must consult the
	// documentation for their specific drivers. The value type of each
	// capacity is Quantity.
	//
	// If an unknown prefix is used as a lookup in either device.attributes
	// or device.capacity, an empty map will be returned. Any reference to
	// an unknown field will cause an evaluation error and allocation to
	// abort.
	//
	// A robust expression should check for the existence of attributes
	// before referencing them.
	//
	// For ease of use, the cel.bind() function is enabled, and can be used
	// to simplify expressions that access multiple attributes with the
	// same domain. For example:
	//
	//     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
	//
	// +required
	Expression string `json:"expression" protobuf:"bytes,1,name=expression"`
}

CELDeviceSelector contains a CEL expression for selecting a device.

func (*CELDeviceSelector) DeepCopy

func (in *CELDeviceSelector) DeepCopy() *CELDeviceSelector

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

func (*CELDeviceSelector) DeepCopyInto

func (in *CELDeviceSelector) DeepCopyInto(out *CELDeviceSelector)

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

func (*CELDeviceSelector) Descriptor

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

func (*CELDeviceSelector) Marshal

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

func (*CELDeviceSelector) MarshalTo

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

func (*CELDeviceSelector) MarshalToSizedBuffer

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

func (*CELDeviceSelector) ProtoMessage

func (*CELDeviceSelector) ProtoMessage()

func (*CELDeviceSelector) Reset

func (m *CELDeviceSelector) Reset()

func (*CELDeviceSelector) Size

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

func (*CELDeviceSelector) String

func (this *CELDeviceSelector) String() string

func (CELDeviceSelector) SwaggerDoc

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

func (*CELDeviceSelector) Unmarshal

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

func (*CELDeviceSelector) XXX_DiscardUnknown

func (m *CELDeviceSelector) XXX_DiscardUnknown()

func (*CELDeviceSelector) XXX_Marshal

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

func (*CELDeviceSelector) XXX_Merge

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

func (*CELDeviceSelector) XXX_Size

func (m *CELDeviceSelector) XXX_Size() int

func (*CELDeviceSelector) XXX_Unmarshal

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

type Device

type Device struct {
	// Name is unique identifier among all devices managed by
	// the driver in the pool. It must be a DNS label.
	//
	// +required
	Name string `json:"name" protobuf:"bytes,1,name=name"`

	// Basic defines one device instance.
	//
	// +optional
	// +oneOf=deviceType
	Basic *BasicDevice `json:"basic,omitempty" protobuf:"bytes,2,opt,name=basic"`
}

Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.

func (*Device) DeepCopy

func (in *Device) DeepCopy() *Device

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

func (*Device) DeepCopyInto

func (in *Device) DeepCopyInto(out *Device)

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

func (*Device) Descriptor

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

func (*Device) Marshal

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

func (*Device) MarshalTo

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

func (*Device) MarshalToSizedBuffer

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

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) Size

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

func (*Device) String

func (this *Device) String() string

func (Device) SwaggerDoc

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

func (*Device) Unmarshal

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

func (*Device) XXX_DiscardUnknown

func (m *Device) XXX_DiscardUnknown()

func (*Device) XXX_Marshal

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

func (*Device) XXX_Merge

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

func (*Device) XXX_Size

func (m *Device) XXX_Size() int

func (*Device) XXX_Unmarshal

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

type DeviceAllocationConfiguration

type DeviceAllocationConfiguration struct {
	// Source records whether the configuration comes from a class and thus
	// is not something that a normal user would have been able to set
	// or from a claim.
	//
	// +required
	Source AllocationConfigSource `json:"source" protobuf:"bytes,1,name=source"`

	// Requests lists the names of requests where the configuration applies.
	// If empty, its applies to all requests.
	//
	// +optional
	// +listType=atomic
	Requests []string `json:"requests,omitempty" protobuf:"bytes,2,opt,name=requests"`

	DeviceConfiguration `json:",inline" protobuf:"bytes,3,name=deviceConfiguration"`
}

DeviceAllocationConfiguration gets embedded in an AllocationResult.

func (*DeviceAllocationConfiguration) DeepCopy

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

func (*DeviceAllocationConfiguration) DeepCopyInto

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

func (*DeviceAllocationConfiguration) Descriptor

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

func (*DeviceAllocationConfiguration) Marshal

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

func (*DeviceAllocationConfiguration) MarshalTo

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

func (*DeviceAllocationConfiguration) MarshalToSizedBuffer

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

func (*DeviceAllocationConfiguration) ProtoMessage

func (*DeviceAllocationConfiguration) ProtoMessage()

func (*DeviceAllocationConfiguration) Reset

func (m *DeviceAllocationConfiguration) Reset()

func (*DeviceAllocationConfiguration) Size

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

func (*DeviceAllocationConfiguration) String

func (this *DeviceAllocationConfiguration) String() string

func (DeviceAllocationConfiguration) SwaggerDoc

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

func (*DeviceAllocationConfiguration) Unmarshal

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

func (*DeviceAllocationConfiguration) XXX_DiscardUnknown

func (m *DeviceAllocationConfiguration) XXX_DiscardUnknown()

func (*DeviceAllocationConfiguration) XXX_Marshal

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

func (*DeviceAllocationConfiguration) XXX_Merge

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

func (*DeviceAllocationConfiguration) XXX_Size

func (m *DeviceAllocationConfiguration) XXX_Size() int

func (*DeviceAllocationConfiguration) XXX_Unmarshal

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

type DeviceAllocationMode

type DeviceAllocationMode string

type DeviceAllocationResult

type DeviceAllocationResult struct {
	// Results lists all allocated devices.
	//
	// +optional
	// +listType=atomic
	Results []DeviceRequestAllocationResult `json:"results,omitempty" protobuf:"bytes,1,opt,name=results"`

	// This field is a combination of all the claim and class configuration parameters.
	// Drivers can distinguish between those based on a flag.
	//
	// This includes configuration parameters for drivers which have no allocated
	// devices in the result because it is up to the drivers which configuration
	// parameters they support. They can silently ignore unknown configuration
	// parameters.
	//
	// +optional
	// +listType=atomic
	Config []DeviceAllocationConfiguration `json:"config,omitempty" protobuf:"bytes,2,opt,name=config"`
}

DeviceAllocationResult is the result of allocating devices.

func (*DeviceAllocationResult) DeepCopy

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

func (*DeviceAllocationResult) DeepCopyInto

func (in *DeviceAllocationResult) DeepCopyInto(out *DeviceAllocationResult)

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

func (*DeviceAllocationResult) Descriptor

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

func (*DeviceAllocationResult) Marshal

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

func (*DeviceAllocationResult) MarshalTo

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

func (*DeviceAllocationResult) MarshalToSizedBuffer

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

func (*DeviceAllocationResult) ProtoMessage

func (*DeviceAllocationResult) ProtoMessage()

func (*DeviceAllocationResult) Reset

func (m *DeviceAllocationResult) Reset()

func (*DeviceAllocationResult) Size

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

func (*DeviceAllocationResult) String

func (this *DeviceAllocationResult) String() string

func (DeviceAllocationResult) SwaggerDoc

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

func (*DeviceAllocationResult) Unmarshal

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

func (*DeviceAllocationResult) XXX_DiscardUnknown

func (m *DeviceAllocationResult) XXX_DiscardUnknown()

func (*DeviceAllocationResult) XXX_Marshal

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

func (*DeviceAllocationResult) XXX_Merge

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

func (*DeviceAllocationResult) XXX_Size

func (m *DeviceAllocationResult) XXX_Size() int

func (*DeviceAllocationResult) XXX_Unmarshal

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

type DeviceAttribute

type DeviceAttribute struct {

	// IntValue is a number.
	//
	// +optional
	// +oneOf=ValueType
	IntValue *int64 `json:"int,omitempty" protobuf:"varint,2,opt,name=int"`

	// BoolValue is a true/false value.
	//
	// +optional
	// +oneOf=ValueType
	BoolValue *bool `json:"bool,omitempty" protobuf:"varint,3,opt,name=bool"`

	// StringValue is a string. Must not be longer than 64 characters.
	//
	// +optional
	// +oneOf=ValueType
	StringValue *string `json:"string,omitempty" protobuf:"bytes,4,opt,name=string"`

	// VersionValue is a semantic version according to semver.org spec 2.0.0.
	// Must not be longer than 64 characters.
	//
	// +optional
	// +oneOf=ValueType
	VersionValue *string `json:"version,omitempty" protobuf:"bytes,5,opt,name=version"`
}

DeviceAttribute must have exactly one field set.

func (*DeviceAttribute) DeepCopy

func (in *DeviceAttribute) DeepCopy() *DeviceAttribute

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

func (*DeviceAttribute) DeepCopyInto

func (in *DeviceAttribute) DeepCopyInto(out *DeviceAttribute)

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

func (*DeviceAttribute) Descriptor

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

func (*DeviceAttribute) Marshal

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

func (*DeviceAttribute) MarshalTo

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

func (*DeviceAttribute) MarshalToSizedBuffer

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

func (*DeviceAttribute) ProtoMessage

func (*DeviceAttribute) ProtoMessage()

func (*DeviceAttribute) Reset

func (m *DeviceAttribute) Reset()

func (*DeviceAttribute) Size

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

func (*DeviceAttribute) String

func (this *DeviceAttribute) String() string

func (DeviceAttribute) SwaggerDoc

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

func (*DeviceAttribute) Unmarshal

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

func (*DeviceAttribute) XXX_DiscardUnknown

func (m *DeviceAttribute) XXX_DiscardUnknown()

func (*DeviceAttribute) XXX_Marshal

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

func (*DeviceAttribute) XXX_Merge

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

func (*DeviceAttribute) XXX_Size

func (m *DeviceAttribute) XXX_Size() int

func (*DeviceAttribute) XXX_Unmarshal

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

type DeviceClaim

type DeviceClaim struct {
	// Requests represent individual requests for distinct devices which
	// must all be satisfied. If empty, nothing needs to be allocated.
	//
	// +optional
	// +listType=atomic
	Requests []DeviceRequest `json:"requests" protobuf:"bytes,1,name=requests"`

	// These constraints must be satisfied by the set of devices that get
	// allocated for the claim.
	//
	// +optional
	// +listType=atomic
	Constraints []DeviceConstraint `json:"constraints,omitempty" protobuf:"bytes,2,opt,name=constraints"`

	// This field holds configuration for multiple potential drivers which
	// could satisfy requests in this claim. It is ignored while allocating
	// the claim.
	//
	// +optional
	// +listType=atomic
	Config []DeviceClaimConfiguration `json:"config,omitempty" protobuf:"bytes,3,opt,name=config"`
}

DeviceClaim defines how to request devices with a ResourceClaim.

func (*DeviceClaim) DeepCopy

func (in *DeviceClaim) DeepCopy() *DeviceClaim

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

func (*DeviceClaim) DeepCopyInto

func (in *DeviceClaim) DeepCopyInto(out *DeviceClaim)

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

func (*DeviceClaim) Descriptor

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

func (*DeviceClaim) Marshal

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

func (*DeviceClaim) MarshalTo

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

func (*DeviceClaim) MarshalToSizedBuffer

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

func (*DeviceClaim) ProtoMessage

func (*DeviceClaim) ProtoMessage()

func (*DeviceClaim) Reset

func (m *DeviceClaim) Reset()

func (*DeviceClaim) Size

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

func (*DeviceClaim) String

func (this *DeviceClaim) String() string

func (DeviceClaim) SwaggerDoc

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

func (*DeviceClaim) Unmarshal

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

func (*DeviceClaim) XXX_DiscardUnknown

func (m *DeviceClaim) XXX_DiscardUnknown()

func (*DeviceClaim) XXX_Marshal

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

func (*DeviceClaim) XXX_Merge

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

func (*DeviceClaim) XXX_Size

func (m *DeviceClaim) XXX_Size() int

func (*DeviceClaim) XXX_Unmarshal

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

type DeviceClaimConfiguration

type DeviceClaimConfiguration struct {
	// Requests lists the names of requests where the configuration applies.
	// If empty, it applies to all requests.
	//
	// +optional
	// +listType=atomic
	Requests []string `json:"requests,omitempty" protobuf:"bytes,1,opt,name=requests"`

	DeviceConfiguration `json:",inline" protobuf:"bytes,2,name=deviceConfiguration"`
}

DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.

func (*DeviceClaimConfiguration) DeepCopy

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

func (*DeviceClaimConfiguration) DeepCopyInto

func (in *DeviceClaimConfiguration) DeepCopyInto(out *DeviceClaimConfiguration)

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

func (*DeviceClaimConfiguration) Descriptor

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

func (*DeviceClaimConfiguration) Marshal

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

func (*DeviceClaimConfiguration) MarshalTo

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

func (*DeviceClaimConfiguration) MarshalToSizedBuffer

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

func (*DeviceClaimConfiguration) ProtoMessage

func (*DeviceClaimConfiguration) ProtoMessage()

func (*DeviceClaimConfiguration) Reset

func (m *DeviceClaimConfiguration) Reset()

func (*DeviceClaimConfiguration) Size

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

func (*DeviceClaimConfiguration) String

func (this *DeviceClaimConfiguration) String() string

func (DeviceClaimConfiguration) SwaggerDoc

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

func (*DeviceClaimConfiguration) Unmarshal

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

func (*DeviceClaimConfiguration) XXX_DiscardUnknown

func (m *DeviceClaimConfiguration) XXX_DiscardUnknown()

func (*DeviceClaimConfiguration) XXX_Marshal

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

func (*DeviceClaimConfiguration) XXX_Merge

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

func (*DeviceClaimConfiguration) XXX_Size

func (m *DeviceClaimConfiguration) XXX_Size() int

func (*DeviceClaimConfiguration) XXX_Unmarshal

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

type DeviceClass

type DeviceClass struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines what can be allocated and how to configure it.
	//
	// This is mutable. Consumers have to be prepared for classes changing
	// at any time, either because they get updated or replaced. Claim
	// allocations are done once based on whatever was set in classes at
	// the time of allocation.
	//
	// Changing the spec automatically increments the metadata.generation number.
	Spec DeviceClassSpec `json:"spec" protobuf:"bytes,2,name=spec"`
}

DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.

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

func (*DeviceClass) DeepCopy

func (in *DeviceClass) DeepCopy() *DeviceClass

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

func (*DeviceClass) DeepCopyInto

func (in *DeviceClass) DeepCopyInto(out *DeviceClass)

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

func (*DeviceClass) DeepCopyObject

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

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

func (*DeviceClass) Descriptor

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

func (*DeviceClass) Marshal

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

func (*DeviceClass) MarshalTo

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

func (*DeviceClass) MarshalToSizedBuffer

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

func (*DeviceClass) ProtoMessage

func (*DeviceClass) ProtoMessage()

func (*DeviceClass) Reset

func (m *DeviceClass) Reset()

func (*DeviceClass) Size

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

func (*DeviceClass) String

func (this *DeviceClass) String() string

func (DeviceClass) SwaggerDoc

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

func (*DeviceClass) Unmarshal

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

func (*DeviceClass) XXX_DiscardUnknown

func (m *DeviceClass) XXX_DiscardUnknown()

func (*DeviceClass) XXX_Marshal

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

func (*DeviceClass) XXX_Merge

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

func (*DeviceClass) XXX_Size

func (m *DeviceClass) XXX_Size() int

func (*DeviceClass) XXX_Unmarshal

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

type DeviceClassConfiguration

type DeviceClassConfiguration struct {
	DeviceConfiguration `json:",inline" protobuf:"bytes,1,opt,name=deviceConfiguration"`
}

DeviceClassConfiguration is used in DeviceClass.

func (*DeviceClassConfiguration) DeepCopy

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

func (*DeviceClassConfiguration) DeepCopyInto

func (in *DeviceClassConfiguration) DeepCopyInto(out *DeviceClassConfiguration)

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

func (*DeviceClassConfiguration) Descriptor

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

func (*DeviceClassConfiguration) Marshal

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

func (*DeviceClassConfiguration) MarshalTo

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

func (*DeviceClassConfiguration) MarshalToSizedBuffer

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

func (*DeviceClassConfiguration) ProtoMessage

func (*DeviceClassConfiguration) ProtoMessage()

func (*DeviceClassConfiguration) Reset

func (m *DeviceClassConfiguration) Reset()

func (*DeviceClassConfiguration) Size

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

func (*DeviceClassConfiguration) String

func (this *DeviceClassConfiguration) String() string

func (DeviceClassConfiguration) SwaggerDoc

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

func (*DeviceClassConfiguration) Unmarshal

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

func (*DeviceClassConfiguration) XXX_DiscardUnknown

func (m *DeviceClassConfiguration) XXX_DiscardUnknown()

func (*DeviceClassConfiguration) XXX_Marshal

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

func (*DeviceClassConfiguration) XXX_Merge

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

func (*DeviceClassConfiguration) XXX_Size

func (m *DeviceClassConfiguration) XXX_Size() int

func (*DeviceClassConfiguration) XXX_Unmarshal

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

type DeviceClassList

type DeviceClassList 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 []DeviceClass `json:"items" protobuf:"bytes,2,rep,name=items"`
}

DeviceClassList is a collection of classes.

func (*DeviceClassList) DeepCopy

func (in *DeviceClassList) DeepCopy() *DeviceClassList

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

func (*DeviceClassList) DeepCopyInto

func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList)

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

func (*DeviceClassList) DeepCopyObject

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

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

func (*DeviceClassList) Descriptor

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

func (*DeviceClassList) Marshal

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

func (*DeviceClassList) MarshalTo

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

func (*DeviceClassList) MarshalToSizedBuffer

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

func (*DeviceClassList) ProtoMessage

func (*DeviceClassList) ProtoMessage()

func (*DeviceClassList) Reset

func (m *DeviceClassList) Reset()

func (*DeviceClassList) Size

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

func (*DeviceClassList) String

func (this *DeviceClassList) String() string

func (DeviceClassList) SwaggerDoc

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

func (*DeviceClassList) Unmarshal

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

func (*DeviceClassList) XXX_DiscardUnknown

func (m *DeviceClassList) XXX_DiscardUnknown()

func (*DeviceClassList) XXX_Marshal

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

func (*DeviceClassList) XXX_Merge

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

func (*DeviceClassList) XXX_Size

func (m *DeviceClassList) XXX_Size() int

func (*DeviceClassList) XXX_Unmarshal

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

type DeviceClassSpec

type DeviceClassSpec struct {
	// Each selector must be satisfied by a device which is claimed via this class.
	//
	// +optional
	// +listType=atomic
	Selectors []DeviceSelector `json:"selectors,omitempty" protobuf:"bytes,1,opt,name=selectors"`

	// Config defines configuration parameters that apply to each device that is claimed via this class.
	// Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
	// configuration applies to exactly one driver.
	//
	// They are passed to the driver, but are not considered while allocating the claim.
	//
	// +optional
	// +listType=atomic
	Config []DeviceClassConfiguration `json:"config,omitempty" protobuf:"bytes,2,opt,name=config"`

	// 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 claim that has not been allocated yet *and* that claim
	// gets allocated through a control plane controller. It is ignored
	// when the claim does not use a control plane controller
	// for allocation.
	//
	// Setting this field is optional. If unset, all Nodes are candidates.
	//
	// This is an alpha field and requires enabling the DRAControlPlaneController
	// feature gate.
	//
	// +optional
	// +featureGate=DRAControlPlaneController
	SuitableNodes *v1.NodeSelector `json:"suitableNodes,omitempty" protobuf:"bytes,3,opt,name=suitableNodes"`
}

DeviceClassSpec is used in a DeviceClass to define what can be allocated and how to configure it.

func (*DeviceClassSpec) DeepCopy

func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec

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

func (*DeviceClassSpec) DeepCopyInto

func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec)

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

func (*DeviceClassSpec) Descriptor

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

func (*DeviceClassSpec) Marshal

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

func (*DeviceClassSpec) MarshalTo

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

func (*DeviceClassSpec) MarshalToSizedBuffer

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

func (*DeviceClassSpec) ProtoMessage

func (*DeviceClassSpec) ProtoMessage()

func (*DeviceClassSpec) Reset

func (m *DeviceClassSpec) Reset()

func (*DeviceClassSpec) Size

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

func (*DeviceClassSpec) String

func (this *DeviceClassSpec) String() string

func (DeviceClassSpec) SwaggerDoc

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

func (*DeviceClassSpec) Unmarshal

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

func (*DeviceClassSpec) XXX_DiscardUnknown

func (m *DeviceClassSpec) XXX_DiscardUnknown()

func (*DeviceClassSpec) XXX_Marshal

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

func (*DeviceClassSpec) XXX_Merge

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

func (*DeviceClassSpec) XXX_Size

func (m *DeviceClassSpec) XXX_Size() int

func (*DeviceClassSpec) XXX_Unmarshal

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

type DeviceConfiguration

type DeviceConfiguration struct {
	// Opaque provides driver-specific configuration parameters.
	//
	// +optional
	// +oneOf=ConfigurationType
	Opaque *OpaqueDeviceConfiguration `json:"opaque,omitempty" protobuf:"bytes,1,opt,name=opaque"`
}

DeviceConfiguration must have exactly one field set. It gets embedded inline in some other structs which have other fields, so field names must not conflict with those.

func (*DeviceConfiguration) DeepCopy

func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration

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

func (*DeviceConfiguration) DeepCopyInto

func (in *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration)

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

func (*DeviceConfiguration) Descriptor

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

func (*DeviceConfiguration) Marshal

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

func (*DeviceConfiguration) MarshalTo

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

func (*DeviceConfiguration) MarshalToSizedBuffer

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

func (*DeviceConfiguration) ProtoMessage

func (*DeviceConfiguration) ProtoMessage()

func (*DeviceConfiguration) Reset

func (m *DeviceConfiguration) Reset()

func (*DeviceConfiguration) Size

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

func (*DeviceConfiguration) String

func (this *DeviceConfiguration) String() string

func (DeviceConfiguration) SwaggerDoc

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

func (*DeviceConfiguration) Unmarshal

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

func (*DeviceConfiguration) XXX_DiscardUnknown

func (m *DeviceConfiguration) XXX_DiscardUnknown()

func (*DeviceConfiguration) XXX_Marshal

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

func (*DeviceConfiguration) XXX_Merge

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

func (*DeviceConfiguration) XXX_Size

func (m *DeviceConfiguration) XXX_Size() int

func (*DeviceConfiguration) XXX_Unmarshal

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

type DeviceConstraint

type DeviceConstraint struct {
	// Requests is a list of the one or more requests in this claim which
	// must co-satisfy this constraint. If a request is fulfilled by
	// multiple devices, then all of the devices must satisfy the
	// constraint. If this is not specified, this constraint applies to all
	// requests in this claim.
	//
	// +optional
	// +listType=atomic
	Requests []string `json:"requests,omitempty" protobuf:"bytes,1,opt,name=requests"`

	// MatchAttribute requires that all devices in question have this
	// attribute and that its type and value are the same across those
	// devices.
	//
	// For example, if you specified "dra.example.com/numa" (a hypothetical example!),
	// then only devices in the same NUMA node will be chosen. A device which
	// does not have that attribute will not be chosen. All devices should
	// use a value of the same type for this attribute because that is part of
	// its specification, but if one device doesn't, then it also will not be
	// chosen.
	//
	// Must include the domain qualifier.
	//
	// +optional
	// +oneOf=ConstraintType
	MatchAttribute *FullyQualifiedName `json:"matchAttribute,omitempty" protobuf:"bytes,2,opt,name=matchAttribute"`
}

DeviceConstraint must have exactly one field set besides Requests.

func (*DeviceConstraint) DeepCopy

func (in *DeviceConstraint) DeepCopy() *DeviceConstraint

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

func (*DeviceConstraint) DeepCopyInto

func (in *DeviceConstraint) DeepCopyInto(out *DeviceConstraint)

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

func (*DeviceConstraint) Descriptor

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

func (*DeviceConstraint) Marshal

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

func (*DeviceConstraint) MarshalTo

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

func (*DeviceConstraint) MarshalToSizedBuffer

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

func (*DeviceConstraint) ProtoMessage

func (*DeviceConstraint) ProtoMessage()

func (*DeviceConstraint) Reset

func (m *DeviceConstraint) Reset()

func (*DeviceConstraint) Size

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

func (*DeviceConstraint) String

func (this *DeviceConstraint) String() string

func (DeviceConstraint) SwaggerDoc

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

func (*DeviceConstraint) Unmarshal

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

func (*DeviceConstraint) XXX_DiscardUnknown

func (m *DeviceConstraint) XXX_DiscardUnknown()

func (*DeviceConstraint) XXX_Marshal

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

func (*DeviceConstraint) XXX_Merge

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

func (*DeviceConstraint) XXX_Size

func (m *DeviceConstraint) XXX_Size() int

func (*DeviceConstraint) XXX_Unmarshal

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

type DeviceRequest

type DeviceRequest struct {
	// Name can be used to reference this request in a pod.spec.containers[].resources.claims
	// entry and in a constraint of the claim.
	//
	// Must be a DNS label.
	//
	// +required
	Name string `json:"name" protobuf:"bytes,1,name=name"`

	// DeviceClassName references a specific DeviceClass, which can define
	// additional configuration and selectors to be inherited by this
	// request.
	//
	// A class is required. Which classes are available depends on the cluster.
	//
	// Administrators may use this to restrict which devices may get
	// requested by only installing classes with selectors for permitted
	// devices. If users are free to request anything without restrictions,
	// then administrators can create an empty DeviceClass for users
	// to reference.
	//
	// +required
	DeviceClassName string `json:"deviceClassName" protobuf:"bytes,2,name=deviceClassName"`

	// Selectors define criteria which must be satisfied by a specific
	// device in order for that device to be considered for this
	// request. All selectors must be satisfied for a device to be
	// considered.
	//
	// +optional
	// +listType=atomic
	Selectors []DeviceSelector `json:"selectors,omitempty" protobuf:"bytes,3,name=selectors"`

	// AllocationMode and its related fields define how devices are allocated
	// to satisfy this request. Supported values are:
	//
	// - ExactCount: This request is for a specific number of devices.
	//   This is the default. The exact number is provided in the
	//   count field.
	//
	// - All: This request is for all of the matching devices in a pool.
	//   Allocation will fail if some devices are already allocated,
	//   unless adminAccess is requested.
	//
	// If AlloctionMode is not specified, the default mode is ExactCount. If
	// the mode is ExactCount and count is not specified, the default count is
	// one. Any other requests must specify this field.
	//
	// More modes may get added in the future. Clients must refuse to handle
	// requests with unknown modes.
	//
	// +optional
	AllocationMode DeviceAllocationMode `json:"allocationMode,omitempty" protobuf:"bytes,4,opt,name=allocationMode"`

	// Count is used only when the count mode is "ExactCount". Must be greater than zero.
	// If AllocationMode is ExactCount and this field is not specified, the default is one.
	//
	// +optional
	// +oneOf=AllocationMode
	Count int64 `json:"count,omitempty" protobuf:"bytes,5,opt,name=count"`

	// AdminAccess indicates that this is a claim for administrative access
	// to the device(s). Claims with AdminAccess are expected to be used for
	// monitoring or other management services for a device.  They ignore
	// all ordinary claims to the device with respect to access modes and
	// any resource allocations.
	//
	// +optional
	// +default=false
	AdminAccess bool `json:"adminAccess,omitempty" protobuf:"bytes,6,opt,name=adminAccess"`
}

DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.

A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.

func (*DeviceRequest) DeepCopy

func (in *DeviceRequest) DeepCopy() *DeviceRequest

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

func (*DeviceRequest) DeepCopyInto

func (in *DeviceRequest) DeepCopyInto(out *DeviceRequest)

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

func (*DeviceRequest) Descriptor

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

func (*DeviceRequest) Marshal

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

func (*DeviceRequest) MarshalTo

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

func (*DeviceRequest) MarshalToSizedBuffer

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

func (*DeviceRequest) ProtoMessage

func (*DeviceRequest) ProtoMessage()

func (*DeviceRequest) Reset

func (m *DeviceRequest) Reset()

func (*DeviceRequest) Size

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

func (*DeviceRequest) String

func (this *DeviceRequest) String() string

func (DeviceRequest) SwaggerDoc

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

func (*DeviceRequest) Unmarshal

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

func (*DeviceRequest) XXX_DiscardUnknown

func (m *DeviceRequest) XXX_DiscardUnknown()

func (*DeviceRequest) XXX_Marshal

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

func (*DeviceRequest) XXX_Merge

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

func (*DeviceRequest) XXX_Size

func (m *DeviceRequest) XXX_Size() int

func (*DeviceRequest) XXX_Unmarshal

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

type DeviceRequestAllocationResult

type DeviceRequestAllocationResult struct {
	// Request is the name of the request in the claim which caused this
	// device to be allocated. Multiple devices may have been allocated
	// per request.
	//
	// +required
	Request string `json:"request" protobuf:"bytes,1,name=request"`

	// Driver specifies the name of the DRA driver whose kubelet
	// plugin should be invoked to process the allocation once the claim is
	// needed on a node.
	//
	// Must be a DNS subdomain and should end with a DNS domain owned by the
	// vendor of the driver.
	//
	// +required
	Driver string `json:"driver" protobuf:"bytes,2,name=driver"`

	// This name together with the driver name and the device name field
	// identify which device was allocated (`<driver name>/<pool name>/<device name>`).
	//
	// Must not be longer than 253 characters and may contain one or more
	// DNS sub-domains separated by slashes.
	//
	// +required
	Pool string `json:"pool" protobuf:"bytes,3,name=pool"`

	// Device references one device instance via its name in the driver's
	// resource pool. It must be a DNS label.
	//
	// +required
	Device string `json:"device" protobuf:"bytes,4,name=device"`
}

DeviceRequestAllocationResult contains the allocation result for one request.

func (*DeviceRequestAllocationResult) DeepCopy

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

func (*DeviceRequestAllocationResult) DeepCopyInto

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

func (*DeviceRequestAllocationResult) Descriptor

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

func (*DeviceRequestAllocationResult) Marshal

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

func (*DeviceRequestAllocationResult) MarshalTo

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

func (*DeviceRequestAllocationResult) MarshalToSizedBuffer

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

func (*DeviceRequestAllocationResult) ProtoMessage

func (*DeviceRequestAllocationResult) ProtoMessage()

func (*DeviceRequestAllocationResult) Reset

func (m *DeviceRequestAllocationResult) Reset()

func (*DeviceRequestAllocationResult) Size

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

func (*DeviceRequestAllocationResult) String

func (this *DeviceRequestAllocationResult) String() string

func (DeviceRequestAllocationResult) SwaggerDoc

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

func (*DeviceRequestAllocationResult) Unmarshal

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

func (*DeviceRequestAllocationResult) XXX_DiscardUnknown

func (m *DeviceRequestAllocationResult) XXX_DiscardUnknown()

func (*DeviceRequestAllocationResult) XXX_Marshal

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

func (*DeviceRequestAllocationResult) XXX_Merge

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

func (*DeviceRequestAllocationResult) XXX_Size

func (m *DeviceRequestAllocationResult) XXX_Size() int

func (*DeviceRequestAllocationResult) XXX_Unmarshal

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

type DeviceSelector

type DeviceSelector struct {
	// CEL contains a CEL expression for selecting a device.
	//
	// +optional
	// +oneOf=SelectorType
	CEL *CELDeviceSelector `json:"cel,omitempty" protobuf:"bytes,1,opt,name=cel"`
}

DeviceSelector must have exactly one field set.

func (*DeviceSelector) DeepCopy

func (in *DeviceSelector) DeepCopy() *DeviceSelector

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

func (*DeviceSelector) DeepCopyInto

func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector)

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

func (*DeviceSelector) Descriptor

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

func (*DeviceSelector) Marshal

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

func (*DeviceSelector) MarshalTo

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

func (*DeviceSelector) MarshalToSizedBuffer

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

func (*DeviceSelector) ProtoMessage

func (*DeviceSelector) ProtoMessage()

func (*DeviceSelector) Reset

func (m *DeviceSelector) Reset()

func (*DeviceSelector) Size

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

func (*DeviceSelector) String

func (this *DeviceSelector) String() string

func (DeviceSelector) SwaggerDoc

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

func (*DeviceSelector) Unmarshal

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

func (*DeviceSelector) XXX_DiscardUnknown

func (m *DeviceSelector) XXX_DiscardUnknown()

func (*DeviceSelector) XXX_Marshal

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

func (*DeviceSelector) XXX_Merge

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

func (*DeviceSelector) XXX_Size

func (m *DeviceSelector) XXX_Size() int

func (*DeviceSelector) XXX_Unmarshal

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

type FullyQualifiedName

type FullyQualifiedName string

FullyQualifiedName is a QualifiedName where the domain is set.

type OpaqueDeviceConfiguration

type OpaqueDeviceConfiguration struct {
	// Driver is used to determine which kubelet plugin needs
	// to be passed these configuration parameters.
	//
	// An admission policy provided by the driver developer could use this
	// to decide whether it needs to validate them.
	//
	// Must be a DNS subdomain and should end with a DNS domain owned by the
	// vendor of the driver.
	//
	// +required
	Driver string `json:"driver" protobuf:"bytes,1,name=driver"`

	// Parameters can contain arbitrary data. It is the responsibility of
	// the driver developer to handle validation and versioning. Typically this
	// includes self-identification and a version ("kind" + "apiVersion" for
	// Kubernetes types), with conversion between different versions.
	//
	// +required
	Parameters runtime.RawExtension `json:"parameters" protobuf:"bytes,2,name=parameters"`
}

OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.

func (*OpaqueDeviceConfiguration) DeepCopy

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

func (*OpaqueDeviceConfiguration) DeepCopyInto

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

func (*OpaqueDeviceConfiguration) Descriptor

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

func (*OpaqueDeviceConfiguration) Marshal

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

func (*OpaqueDeviceConfiguration) MarshalTo

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

func (*OpaqueDeviceConfiguration) MarshalToSizedBuffer

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

func (*OpaqueDeviceConfiguration) ProtoMessage

func (*OpaqueDeviceConfiguration) ProtoMessage()

func (*OpaqueDeviceConfiguration) Reset

func (m *OpaqueDeviceConfiguration) Reset()

func (*OpaqueDeviceConfiguration) Size

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

func (*OpaqueDeviceConfiguration) String

func (this *OpaqueDeviceConfiguration) String() string

func (OpaqueDeviceConfiguration) SwaggerDoc

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

func (*OpaqueDeviceConfiguration) Unmarshal

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

func (*OpaqueDeviceConfiguration) XXX_DiscardUnknown

func (m *OpaqueDeviceConfiguration) XXX_DiscardUnknown()

func (*OpaqueDeviceConfiguration) XXX_Marshal

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

func (*OpaqueDeviceConfiguration) XXX_Merge

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

func (*OpaqueDeviceConfiguration) XXX_Size

func (m *OpaqueDeviceConfiguration) XXX_Size() int

func (*OpaqueDeviceConfiguration) XXX_Unmarshal

func (m *OpaqueDeviceConfiguration) 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 DRAControlPlaneController 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.
	//
	// +optional
	// +listType=atomic
	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 QualifiedName

type QualifiedName string

QualifiedName is the name of a device attribute or capacity.

Attributes and capacities are defined either by the owner of the specific driver (usually the vendor) or by some 3rd party (e.g. the Kubernetes project). Because they are sometimes compared across devices, a given name is expected to mean the same thing and have the same type on all devices.

Names must be either a C identifier (e.g. "theName") or a DNS subdomain followed by a slash ("/") followed by a C identifier (e.g. "dra.example.com/theName"). Names which do not include the domain prefix are assumed to be part of the driver's domain. Attributes or capacities defined by 3rd parties must include the domain prefix.

The maximum length for the DNS subdomain is 63 characters (same as for driver names) and the maximum length of the C identifier is 32.

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 what is being requested and how to configure it.
	// The spec is immutable.
	Spec ResourceClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"`

	// Status describes whether the claim is ready to use and what has been allocated.
	// +optional
	Status ResourceClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.

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".
	// +required
	Resource string `json:"resource" protobuf:"bytes,3,name=resource"`
	// Name is the name of resource being referenced.
	// +required
	Name string `json:"name" protobuf:"bytes,4,name=name"`
	// UID identifies exactly one incarnation of the resource.
	// +required
	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 ResourceClaimSchedulingStatus

type ResourceClaimSchedulingStatus struct {
	// Name matches the pod.spec.resourceClaims[*].Name field.
	//
	// +required
	Name string `json:"name" protobuf:"bytes,1,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.
	//
	// +optional
	// +listType=atomic
	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 {
	// Devices defines how to request devices.
	//
	// +optional
	Devices DeviceClaim `json:"devices" protobuf:"bytes,1,name=devices"`

	// Controller is the name of the DRA driver that is meant
	// to handle allocation of this claim. If empty, allocation is handled
	// by the scheduler while scheduling a pod.
	//
	// Must be a DNS subdomain and should end with a DNS domain owned by the
	// vendor of the driver.
	//
	// This is an alpha field and requires enabling the DRAControlPlaneController
	// feature gate.
	//
	// +optional
	// +featureGate=DRAControlPlaneController
	Controller string `json:"controller,omitempty" protobuf:"bytes,2,opt,name=controller"`
}

ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.

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 {
	// Allocation is set once the claim has been allocated successfully.
	//
	// +optional
	Allocation *AllocationResult `json:"allocation,omitempty" protobuf:"bytes,1,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. A claim that is in
	// use or might be in use because it has been reserved must not get
	// deallocated.
	//
	// In a cluster with multiple scheduler instances, two pods might get
	// scheduled concurrently by different schedulers. When they reference
	// the same ResourceClaim which already has reached its maximum number
	// of consumers, only one pod can be scheduled.
	//
	// Both schedulers try to add their pod to the claim.status.reservedFor
	// field, but only the update that reaches the API server first gets
	// stored. The other one fails with an error and the scheduler
	// which issued it knows that it must put the pod back into the queue,
	// waiting for the ResourceClaim to become usable again.
	//
	// There can be at most 32 such reservations. This may get increased in
	// the future, but not reduced.
	//
	// +optional
	// +listType=map
	// +listMapKey=uid
	// +patchStrategy=merge
	// +patchMergeKey=uid
	ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,2,opt,name=reservedFor" patchStrategy:"merge" patchMergeKey:"uid"`

	// Indicates that a claim is to be deallocated. While this is set,
	// no new consumers may be added to ReservedFor.
	//
	// This is only used if the claim needs to be deallocated by a DRA driver.
	// That driver then must deallocate this claim and reset the field
	// together with clearing the Allocation field.
	//
	// This is an alpha field and requires enabling the DRAControlPlaneController
	// feature gate.
	//
	// +optional
	// +featureGate=DRAControlPlaneController
	DeallocationRequested bool `json:"deallocationRequested,omitempty" protobuf:"bytes,3,opt,name=deallocationRequested"`
}

ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.

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.

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

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 ResourcePool

type ResourcePool struct {
	// Name is used to identify the pool. For node-local devices, this
	// is often the node name, but this is not required.
	//
	// It must not be longer than 253 characters and must consist of one or more DNS sub-domains
	// separated by slashes. This field is immutable.
	//
	// +required
	Name string `json:"name" protobuf:"bytes,1,name=name"`

	// Generation tracks the change in a pool over time. Whenever a driver
	// changes something about one or more of the resources in a pool, it
	// must change the generation in all ResourceSlices which are part of
	// that pool. Consumers of ResourceSlices should only consider
	// resources from the pool with the highest generation number. The
	// generation may be reset by drivers, which should be fine for
	// consumers, assuming that all ResourceSlices in a pool are updated to
	// match or deleted.
	//
	// Combined with ResourceSliceCount, this mechanism enables consumers to
	// detect pools which are comprised of multiple ResourceSlices and are
	// in an incomplete state.
	//
	// +required
	Generation int64 `json:"generation" protobuf:"bytes,2,name=generation"`

	// ResourceSliceCount is the total number of ResourceSlices in the pool at this
	// generation number. Must be greater than zero.
	//
	// Consumers can use this to check whether they have seen all ResourceSlices
	// belonging to the same pool.
	//
	// +required
	ResourceSliceCount int64 `json:"resourceSliceCount" protobuf:"bytes,3,name=resourceSliceCount"`
}

ResourcePool describes the pool that ResourceSlices belong to.

func (*ResourcePool) DeepCopy

func (in *ResourcePool) DeepCopy() *ResourcePool

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

func (*ResourcePool) DeepCopyInto

func (in *ResourcePool) DeepCopyInto(out *ResourcePool)

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

func (*ResourcePool) Descriptor

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

func (*ResourcePool) Marshal

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

func (*ResourcePool) MarshalTo

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

func (*ResourcePool) MarshalToSizedBuffer

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

func (*ResourcePool) ProtoMessage

func (*ResourcePool) ProtoMessage()

func (*ResourcePool) Reset

func (m *ResourcePool) Reset()

func (*ResourcePool) Size

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

func (*ResourcePool) String

func (this *ResourcePool) String() string

func (ResourcePool) SwaggerDoc

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

func (*ResourcePool) Unmarshal

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

func (*ResourcePool) XXX_DiscardUnknown

func (m *ResourcePool) XXX_DiscardUnknown()

func (*ResourcePool) XXX_Marshal

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

func (*ResourcePool) XXX_Merge

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

func (*ResourcePool) XXX_Size

func (m *ResourcePool) XXX_Size() int

func (*ResourcePool) XXX_Unmarshal

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

type ResourceSlice

type ResourceSlice struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Contains the information published by the driver.
	//
	// Changing the spec automatically increments the metadata.generation number.
	Spec ResourceSliceSpec `json:"spec" protobuf:"bytes,2,name=spec"`
}

ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.

At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.

Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.

When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.

For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.

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

func (*ResourceSlice) DeepCopy

func (in *ResourceSlice) DeepCopy() *ResourceSlice

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

func (*ResourceSlice) DeepCopyInto

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

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

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

func (*ResourceSlice) Descriptor

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

func (*ResourceSlice) Marshal

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

func (*ResourceSlice) MarshalTo

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

func (*ResourceSlice) MarshalToSizedBuffer

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

func (*ResourceSlice) ProtoMessage

func (*ResourceSlice) ProtoMessage()

func (*ResourceSlice) Reset

func (m *ResourceSlice) Reset()

func (*ResourceSlice) Size

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

func (*ResourceSlice) String

func (this *ResourceSlice) String() string

func (ResourceSlice) SwaggerDoc

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

func (*ResourceSlice) Unmarshal

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

func (*ResourceSlice) XXX_DiscardUnknown

func (m *ResourceSlice) XXX_DiscardUnknown()

func (*ResourceSlice) XXX_Marshal

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

func (*ResourceSlice) XXX_Merge

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

func (*ResourceSlice) XXX_Size

func (m *ResourceSlice) XXX_Size() int

func (*ResourceSlice) XXX_Unmarshal

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

type ResourceSliceList

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 resource ResourceSlices.
	Items []ResourceSlice `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ResourceSliceList is a collection of ResourceSlices.

func (*ResourceSliceList) DeepCopy

func (in *ResourceSliceList) DeepCopy() *ResourceSliceList

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

func (*ResourceSliceList) DeepCopyInto

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

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

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

func (*ResourceSliceList) Descriptor

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

func (*ResourceSliceList) Marshal

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

func (*ResourceSliceList) MarshalTo

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

func (*ResourceSliceList) MarshalToSizedBuffer

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

func (*ResourceSliceList) ProtoMessage

func (*ResourceSliceList) ProtoMessage()

func (*ResourceSliceList) Reset

func (m *ResourceSliceList) Reset()

func (*ResourceSliceList) Size

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

func (*ResourceSliceList) String

func (this *ResourceSliceList) String() string

func (ResourceSliceList) SwaggerDoc

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

func (*ResourceSliceList) Unmarshal

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

func (*ResourceSliceList) XXX_DiscardUnknown

func (m *ResourceSliceList) XXX_DiscardUnknown()

func (*ResourceSliceList) XXX_Marshal

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

func (*ResourceSliceList) XXX_Merge

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

func (*ResourceSliceList) XXX_Size

func (m *ResourceSliceList) XXX_Size() int

func (*ResourceSliceList) XXX_Unmarshal

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

type ResourceSliceSpec

type ResourceSliceSpec struct {
	// Driver identifies the DRA driver providing the capacity information.
	// A field selector can be used to list only ResourceSlice
	// objects with a certain driver name.
	//
	// Must be a DNS subdomain and should end with a DNS domain owned by the
	// vendor of the driver. This field is immutable.
	//
	// +required
	Driver string `json:"driver" protobuf:"bytes,1,name=driver"`

	// Pool describes the pool that this ResourceSlice belongs to.
	//
	// +required
	Pool ResourcePool `json:"pool" protobuf:"bytes,2,name=pool"`

	// NodeName identifies the node which provides the resources in this pool.
	// A field selector can be used to list only ResourceSlice
	// objects belonging to a certain node.
	//
	// This field can be used to limit access from nodes to ResourceSlices with
	// the same node name. It also indicates to autoscalers that adding
	// new nodes of the same type as some old node might also make new
	// resources available.
	//
	// Exactly one of NodeName, NodeSelector and AllNodes must be set.
	// This field is immutable.
	//
	// +optional
	// +oneOf=NodeSelection
	NodeName string `json:"nodeName,omitempty" protobuf:"bytes,3,opt,name=nodeName"`

	// NodeSelector defines which nodes have access to the resources in the pool,
	// when that pool is not limited to a single node.
	//
	// Must use exactly one term.
	//
	// Exactly one of NodeName, NodeSelector and AllNodes must be set.
	//
	// +optional
	// +oneOf=NodeSelection
	NodeSelector *v1.NodeSelector `json:"nodeSelector,omitempty" protobuf:"bytes,4,opt,name=nodeSelector"`

	// AllNodes indicates that all nodes have access to the resources in the pool.
	//
	// Exactly one of NodeName, NodeSelector and AllNodes must be set.
	//
	// +optional
	// +oneOf=NodeSelection
	AllNodes bool `json:"allNodes,omitempty" protobuf:"bytes,5,opt,name=allNodes"`

	// Devices lists some or all of the devices in this pool.
	//
	// Must not have more than 128 entries.
	//
	// +optional
	// +listType=atomic
	Devices []Device `json:"devices" protobuf:"bytes,6,name=devices"`
}

ResourceSliceSpec contains the information published by the driver in one ResourceSlice.

func (*ResourceSliceSpec) DeepCopy

func (in *ResourceSliceSpec) DeepCopy() *ResourceSliceSpec

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

func (*ResourceSliceSpec) DeepCopyInto

func (in *ResourceSliceSpec) DeepCopyInto(out *ResourceSliceSpec)

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

func (*ResourceSliceSpec) Descriptor

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

func (*ResourceSliceSpec) Marshal

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

func (*ResourceSliceSpec) MarshalTo

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

func (*ResourceSliceSpec) MarshalToSizedBuffer

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

func (*ResourceSliceSpec) ProtoMessage

func (*ResourceSliceSpec) ProtoMessage()

func (*ResourceSliceSpec) Reset

func (m *ResourceSliceSpec) Reset()

func (*ResourceSliceSpec) Size

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

func (*ResourceSliceSpec) String

func (this *ResourceSliceSpec) String() string

func (ResourceSliceSpec) SwaggerDoc

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

func (*ResourceSliceSpec) Unmarshal

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

func (*ResourceSliceSpec) XXX_DiscardUnknown

func (m *ResourceSliceSpec) XXX_DiscardUnknown()

func (*ResourceSliceSpec) XXX_Marshal

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

func (*ResourceSliceSpec) XXX_Merge

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

func (*ResourceSliceSpec) XXX_Size

func (m *ResourceSliceSpec) XXX_Size() int

func (*ResourceSliceSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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