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

Function getRuntimeClassName

controllers/object_controls.go:2748–2753  ·  view source on GitHub ↗
(config *gpuv1.ClusterPolicySpec)

Source from the content-addressed store, hash-verified

2746}
2747
2748func getRuntimeClassName(config *gpuv1.ClusterPolicySpec) string {
2749 if config.Operator.RuntimeClass != "" {
2750 return config.Operator.RuntimeClass
2751 }
2752 return DefaultRuntimeClass
2753}
2754
2755func setRuntimeClassName(podSpec *corev1.PodSpec, config *gpuv1.ClusterPolicySpec, runtime gpuv1.Runtime) {
2756 if !config.CDI.IsEnabled() && runtime == gpuv1.CRIO || config.CDI.IsNRIPluginEnabled() {

Callers 5

transformForRuntimeFunction · 0.85
setRuntimeClassNameFunction · 0.85
transformRuntimeClassFunction · 0.85
clearRuntimeClassesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected