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