From 4100f10be76e549b94efb08523c4b3ebcd0be260 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:32:16 +0200 Subject: [PATCH] feat(common): Force nvidia driver capabilities to all when gpu is selected (#2023) --- charts/library/common/Chart.yaml | 2 +- charts/library/common/templates/lib/controller/_container.tpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index e6c236bd8dc..e9a51185bfb 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 9.0.0 +version: 9.0.1 diff --git a/charts/library/common/templates/lib/controller/_container.tpl b/charts/library/common/templates/lib/controller/_container.tpl index 4ab74708306..1b10bec6de9 100644 --- a/charts/library/common/templates/lib/controller/_container.tpl +++ b/charts/library/common/templates/lib/controller/_container.tpl @@ -65,6 +65,9 @@ {{- if not ( .Values.scaleGPU ) }} - name: NVIDIA_VISIBLE_DEVICES value: "void" + {{- else }} + - name: NVIDIA_DRIVER_CAPABILITIES + value: "all" {{- end }} - name: TZ value: {{ .Values.TZ | quote }}