From eeb61466f09a3c228ec985703b63797cbcd27142 Mon Sep 17 00:00:00 2001 From: Ajax-1 <85230126+Ajax-1@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:40:03 -0500 Subject: [PATCH] Honor explicit nlsEnabled=false in NVIDIADriver helm template The 'default' function treats false as empty, so setting driver.licensingConfig.nlsEnabled=false always rendered true. Use hasKey so true is only applied when the value is not set. Signed-off-by: Ajax-1 <85230126+Ajax-1@users.noreply.github.com> --- deployments/gpu-operator/templates/nvidiadriver.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/gpu-operator/templates/nvidiadriver.yaml b/deployments/gpu-operator/templates/nvidiadriver.yaml index 262d551dbe..d2d98f2c7b 100644 --- a/deployments/gpu-operator/templates/nvidiadriver.yaml +++ b/deployments/gpu-operator/templates/nvidiadriver.yaml @@ -73,11 +73,11 @@ spec: {{- if .Values.driver.licensingConfig.secretName }} licensingConfig: secretName: {{ .Values.driver.licensingConfig.secretName }} - nlsEnabled: {{ .Values.driver.licensingConfig.nlsEnabled | default true }} + nlsEnabled: {{ if hasKey .Values.driver.licensingConfig "nlsEnabled" }}{{ .Values.driver.licensingConfig.nlsEnabled }}{{ else }}true{{ end }} {{- else if .Values.driver.licensingConfig.configMapName }} licensingConfig: name: {{ .Values.driver.licensingConfig.configMapName }} - nlsEnabled: {{ .Values.driver.licensingConfig.nlsEnabled | default true }} + nlsEnabled: {{ if hasKey .Values.driver.licensingConfig "nlsEnabled" }}{{ .Values.driver.licensingConfig.nlsEnabled }}{{ else }}true{{ end }} {{- end }} {{- if .Values.driver.virtualTopology.config }} virtualTopologyConfig: