Documentation
¶
Index ¶
- Constants
- func AddDirectEnvVarsConfigMapSource(container *v1.Container, directEnvVarsMapName string)
- func AddEnvVarToContainer(container *v1.Container, envVar v1.EnvVar)
- func AddVisibleDevicesEnvVars(container *v1.Container, sharedGpuConfigMapName string)
- func GetConfigMapName(pod *v1.Pod, container *v1.Container) (string, error)
- func GetConfigVolumeName(configMapName string) string
- func GetDirectEnvVarConfigMapName(pod *v1.Pod, container *v1.Container) (string, error)
- func IsSharedGPUAllocation(bindRequest *v1alpha2.BindRequest) bool
- func SetConfigMapVolume(pod *v1.Pod, configMapName string)
- func SetNumOfGPUDevices(ctx context.Context, kubeClient client.Client, pod *v1.Pod, ...) error
- func SetNvidiaVisibleDevices(ctx context.Context, kubeClient client.Client, pod *v1.Pod, ...) error
- func UpdateConfigMapEnvironmentVariable(ctx context.Context, kubeclient client.Client, task *v1.Pod, ...) error
Constants ¶
View Source
const ( NvidiaVisibleDevices = "NVIDIA_VISIBLE_DEVICES" RunaiVisibleDevices = "RUNAI-VISIBLE-DEVICES" RunaiNumOfGpus = "RUNAI_NUM_OF_GPUS" ReceivedTypeFraction = "Fraction" ReceivedTypeRegular = "Regular" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigMapName ¶
func GetConfigVolumeName ¶
func IsSharedGPUAllocation ¶
func IsSharedGPUAllocation(bindRequest *v1alpha2.BindRequest) bool
func SetConfigMapVolume ¶
func SetConfigMapVolume(pod *v1.Pod, configMapName string)
func SetNumOfGPUDevices ¶ added in v0.4.4
func SetNvidiaVisibleDevices ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.