Skip to main content

lib/k8s/resourceClaim

Classes​

ClassDescription
ResourceClaim-

Interfaces​

InterfaceDescription
AllocationResult-
DeviceRequestOne named request within a claim. Exactly one of exactly and firstAvailable is set: firstAvailable lists alternatives the scheduler tries in order.
DeviceRequestAllocationResultOne device the scheduler granted, and the request it was granted for.
DeviceSubRequestOne alternative of a prioritized list, tried in the order the list gives.
ExactDeviceRequestA request for devices of one class.
KubeResourceClaimThis is the base interface for all Kubernetes resources, i.e. it contains fields that all Kubernetes resources have.
NodeSelectorRequirementOne requirement on a node's labels or fields.
NodeSelectorTermOne way a node can qualify. Requirements within a term all have to hold.
ResourceClaimConsumerReferenceWho may use an allocated claim. A back reference, not an owner reference.
ResourceClaimSpec-
ResourceClaimStatus-

Type Aliases​

Type AliasDescription
DeviceAllocationModeHow many devices a request asks for.
ResourceClaimStateThe state of a claim, composed because the API has no phase field: a claim is pending until the scheduler writes an allocation, allocated once it has one, and in use while consumers are reserved for it.

Functions​

FunctionDescription
getRequestedDeviceClassesThe device classes a request can be satisfied by. A request asks for one class directly, or lists alternatives that each name their own.
getResourceClaimStateWhich state a claim's status describes.