constant

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ElasticQuotaControllerName          = "elasticquota-controller"
	CompositeElasticQuotaControllerName = "composite-elasticquota-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 todo
	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"
)

Jump to

Keyboard shortcuts

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