Skip to content

Commit f54bd42

Browse files
authored
Merge pull request #2642 from NVIDIA/helm-validate-device-plugin-config
[helm] validate devicePlugin custom configMap settings
2 parents 557886b + a35e5f1 commit f54bd42

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

deployments/gpu-operator/templates/validations.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
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 devicePlugin.config.create is set to true" }}
11+
{{- end }}
12+
13+
{{- if and (.Values.devicePlugin.config.create) (empty .Values.devicePlugin.config.name) }}
14+
{{ fail "devicePlugin.config.name cannot be empty when devicePlugin.config.create is set to true" }}
15+
{{- end }}

0 commit comments

Comments
 (0)