MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / setRuntimeClassName

Function setRuntimeClassName

controllers/object_controls.go:2755–2761  ·  view source on GitHub ↗
(podSpec *corev1.PodSpec, config *gpuv1.ClusterPolicySpec, runtime gpuv1.Runtime)

Source from the content-addressed store, hash-verified

2753}
2754
2755func setRuntimeClassName(podSpec *corev1.PodSpec, config *gpuv1.ClusterPolicySpec, runtime gpuv1.Runtime) {
2756 if !config.CDI.IsEnabled() && runtime == gpuv1.CRIO || config.CDI.IsNRIPluginEnabled() {
2757 return
2758 }
2759 runtimeClassName := getRuntimeClassName(config)
2760 podSpec.RuntimeClassName = &runtimeClassName
2761}
2762
2763func setContainerProbe(container *corev1.Container, probe *gpuv1.ContainerProbeSpec, probeType ContainerProbe) {
2764 var containerProbe *corev1.Probe

Callers 7

TransformDevicePluginFunction · 0.85
TransformDCGMExporterFunction · 0.85
TransformDCGMFunction · 0.85
TransformMIGManagerFunction · 0.85
TransformValidatorFunction · 0.85

Calls 3

getRuntimeClassNameFunction · 0.85
IsNRIPluginEnabledMethod · 0.80
IsEnabledMethod · 0.45

Tested by

no test coverage detected