Skip to content

Commit 80ac4c4

Browse files
committed
[helm] validate devicePlugin custom configMap settings
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent 557886b commit 80ac4c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

deployments/gpu-operator/templates/validations.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
{{- if and (eq .Values.cdi.nriPluginEnabled true) (eq .Values.toolkit.enabled false) }}
66
{{ fail "the NRI Plugin cannot be enabled when the Container Toolkit is disabled" }}
77
{{- end }}
8+
9+
{{- if and (.Values.devicePlugin.config.create) (empty .Values.devicePlugin.config.data) }}
10+
{{ fail "devicePlugin.config.data cannot be empty when device.Plugin.config.create is set to true" }}
11+
{{- end }}

0 commit comments

Comments
 (0)