Documentation ¶
Index ¶
Constants ¶
View Source
const ( ElasticQuotaControllerName = "eq-controller" CompositeElasticQuotaControllerName = "ceq-controller" ClusterStateNodeControllerName = "clusterstate-node-controller" ClusterStatePodControllerName = "clusterstate-pod-controller" MigPartitionerControllerName = "mig-partitioner-controller" )
Controller names
View Source
const ( // RegexNvidiaMigResource is a regex matching the name of the MIG devices exposed by the NVIDIA device plugin RegexNvidiaMigResource = `nvidia\.com\/mig-\d+g\.\d+gb` RegexNvidiaMigProfile = `\d+g\.\d+gb` RegexNvidiaMigFormatMemory = `\d+gb` )
Common RegEx
View Source
const ( // LabelNvidiaProduct is the name of the label assigned by the NVIDIA GPU Operator that identifies // the model of the NVIDIA GPUs on a certain node LabelNvidiaProduct = "nvidia.com/gpu.product" // LabelNvidiaCount is the name of the label assigned by the NVIDIA GPU Operator that identifies // the number of NVIDIA GPUs on a certain node LabelNvidiaCount = "nvidia.com/gpu.count" )
Labels
View Source
const ( PodPhaseKey = "status.phase" PodNodeNameKey = "spec.nodeName" )
View Source
const ( // DefaultNvidiaGPUResourceMemory is the default memory value (in GigaByte) that is associated to // nvidia.com/gpu resources. The value represents the GPU memory requirement of a single resource. // This value is used when the controller and scheduler configurations do not specify any value for this // setting. DefaultNvidiaGPUResourceMemory = 16 )
View Source
const (
// InternalErrorMsg is the error message shown in logs for internal errors
InternalErrorMsg = "internal error"
)
Error messages
View Source
const (
// NvidiaMigResourcePrefix is the prefix of NVIDIA MIG resources
NvidiaMigResourcePrefix = "nvidia.com/mig-"
)
Prefixes
View Source
const ( // ResourceNvidiaGPU is the name of the GPU resource exposed by the NVIDIA device plugin ResourceNvidiaGPU v1.ResourceName = "nvidia.com/gpu" )
Resource names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapacityInfo ¶
type CapacityInfo string
const ( CapacityInfoOverQuota CapacityInfo = "over-quota" CapacityInfoInQuota CapacityInfo = "in-quota" )
Click to show internal directories.
Click to hide internal directories.