lib/k8s/resourceClaim
Classes
| Class | Description |
|---|---|
| ResourceClaim | - |
Interfaces
| Interface | Description |
|---|---|
| AllocationResult | - |
| DeviceRequest | One named request within a claim. Exactly one of exactly and firstAvailable is set: firstAvailable lists alternatives the scheduler tries in order. |
| DeviceRequestAllocationResult | One device the scheduler granted, and the request it was granted for. |
| DeviceSubRequest | One alternative of a prioritized list, tried in the order the list gives. |
| ExactDeviceRequest | A request for devices of one class. |
| KubeResourceClaim | This is the base interface for all Kubernetes resources, i.e. it contains fields that all Kubernetes resources have. |
| NodeSelectorRequirement | One requirement on a node's labels or fields. |
| NodeSelectorTerm | One way a node can qualify. Requirements within a term all have to hold. |
| ResourceClaimConsumerReference | Who may use an allocated claim. A back reference, not an owner reference. |
| ResourceClaimSpec | - |
| ResourceClaimStatus | - |
Type Aliases
| Type Alias | Description |
|---|---|
| DeviceAllocationMode | How many devices a request asks for. |
| ResourceClaimState | The 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
| Function | Description |
|---|---|
| getRequestedDeviceClasses | The device classes a request can be satisfied by. A request asks for one class directly, or lists alternatives that each name their own. |
| getResourceClaimState | Which state a claim's status describes. |