feat(common): force NVIDIA_VISIBLE_DEVICES: "void" when no GPU is assigned (#1819)

* feat(common): force  when no GPU is assigned

* try this

* adjust some tests?
This commit is contained in:
Stavros Kois
2022-01-31 19:02:46 +01:00
committed by GitHub
parent 222b32a6f3
commit e73c66cfc4
3 changed files with 37 additions and 33 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.14.2
version: 8.14.3
@@ -56,6 +56,10 @@
- name: S6_READ_ONLY_ROOT
value: "1"
{{- end }}
{{- if not ( .Values.scaleGPU ) }}
- name: NVIDIA_VISIBLE_DEVICES
value: "void"
{{- end }}
{{- range $key, $value := .Values.envTpl }}
- name: {{ $key }}
value: {{ tpl $value $ | quote }}