Skip to content

Commit 91854d4

Browse files
committed
don't render nvidiadriver CR if driver is disabled
Signed-off-by: Rahul Sharma <[email protected]>
1 parent e592550 commit 91854d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deployments/gpu-operator/templates/nvidiadriver.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.driver.enabled }}
12
{{- if and .Values.driver.nvidiaDriverCRD.enabled .Values.driver.nvidiaDriverCRD.deployDefaultCR }}
23
apiVersion: nvidia.com/v1alpha1
34
kind: NVIDIADriver
@@ -124,3 +125,4 @@ spec:
124125
{{- end }}
125126
{{- end }}
126127
{{- end }}
128+
{{- end }}

0 commit comments

Comments
 (0)