@@ -108,10 +108,14 @@ spec:
108108 {{- if .Values.podgrouper.queueLabelKey }}
109109 queueLabelKey: {{ .Values.podgrouper.queueLabelKey | quote }}
110110 {{- end }}
111- {{- /* GpuSharingMode precedence: an explicit (non-empty) mode wins; otherwise a
112- legacy gpuSharing value is passed through (operator derives the mode); when
113- neither is set, default to NonMemoryEnforced. */ }}
114- {{- if .Values.global.gpuSharingMode }}
111+ {{- /* GpuSharingMode precedence: nvFractions.set forces NvFractions (validate.yaml has
112+ already rejected a conflicting explicit mode, so this only guards against a legacy
113+ gpuSharing value downgrading it); then an explicit (non-empty) mode; then a legacy
114+ gpuSharing value is passed through (operator derives the mode); when none is set,
115+ default to NonMemoryEnforced. */ }}
116+ {{- if .Values.global.nvFractions.set }}
117+ gpuSharingMode: NvFractions
118+ {{- else if .Values.global.gpuSharingMode }}
115119 gpuSharingMode: {{ .Values.global.gpuSharingMode }}
116120 {{- else if not (hasKey .Values.global " gpuSharing" ) }}
117121 gpuSharingMode: NonMemoryEnforced
@@ -260,7 +264,7 @@ spec:
260264 maxUnavailable: {{ .Values.admission.podDisruptionBudget.maxUnavailable }}
261265 {{- end }}
262266 {{- end }}
263- {{- if and (not .Values.global.gpuSharingMode ) (hasKey .Values.global " gpuSharing" ) }}
267+ {{- if and (not .Values.global.nvFractions.set ) ( not .Values.global. gpuSharingMode ) (hasKey .Values.global " gpuSharing" ) }}
264268 gpuSharing: {{ .Values.global.gpuSharing }}
265269 {{- end }}
266270 blockNvidiaVisibleDevices: {{ .Values.global.blockNvidiaVisibleDevices | default false }}
0 commit comments