# Functions
AllocatedFromAllocatable returns AllocatedGpu with relevant fields copied from AllocatableGpu.
DefaultGpuClaimParametersSpec returns new object with hardcoded default values.
DefaultGpuClassParametersSpec returns new object with hardcoded default values.
Returns a blank GpuAllocationState object ready to retrieve the record from API or creates a new one.
# Constants
Either GPU or VF to be allocated.
K8s API group name.
K8s API group version.
Status indicating that CRD entry cannot be used by controller.
Status indicating that CRD entry can be used by controller.
K8s API Kind string for GpuClaimParameters.
K8s API Kind string for GpuClassParameters.
PLain HW GPU to be allocated.
Monitor allocation type.
Value for UID field of device, used for VFs that are not yet provisioned.
Unsupported device type.
SR-IOV Virtual Function to be allocated.
# Structs
Main GpuAllocationState object structure - used to track allocatable devices, allocated devices per ResourceClaim.UID, prepared devices per ResourceClaim.UID.
Config to help getting entry of GpuAllocationState.
# Type aliases
AllocatableGpu represents an allocatable Gpu on a node.
Resources that were allocated for the claim by controller.
Map of resources allocated per claim UID.
AllocatedGpu represents an allocated Gpu on a node.
AllocatedGpus represents a list of allocated devices on a node.
DeviceSelector allows one to match on a specific type of Device as part of the class.
GpuAllocationStateSpec is the spec for the GpuAllocationState CRD.
Main GpuClaimParameters object for storing resource request specification.
List of GpuClaimParameters.
Spec field of GpuClaimParameters.
Main GpuClassParameters object for storing resource request specification.
List of GpuClassParameters.
Spec field of GpuClassParameters.
Resources prepared for the claim by kubelet-plugin.
Resources prepared for the claim by kubelet-plugin.
TaintedDevices is map of tainted devices on a node.
TaintedGpu represents a tainted Gpu on a node.