Commit 13c79c51 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

add validation for new values

parent cbf47d34
......@@ -18,6 +18,7 @@ Compile all warnings into a single message, and call fail.
{{- $messages := append $messages (include "shibboleth-sp.validateValues.frontend.apache.sitesConfig" .) -}}
{{- $messages := append $messages (include "shibboleth-sp.validateValues.frontend.apache.sitesConfigMap" .) -}}
{{- $messages := append $messages (include "shibboleth-sp.validateValues.frontend.apache.missingValues" .) -}}
{{- $messages := append $messages (include "shibboleth-sp.validateValues.tests.missingValues" .) -}}
{{- $messages := without $messages "" -}}
{{- $message := join "\n" $messages -}}
......@@ -292,3 +293,20 @@ Compile all warnings into a single message, and call fail.
{{- end -}}
{{- end -}}
{{/******************
*** CHART TESTS ***
*******************/}}
{{- define "shibboleth-sp.validateValues.tests.missingValues" -}}
{{- if .Values.tests.enabled }}
{{- if not (or .Values.tests.image.repository .Values.tests.image.tag) }}
tests.enabled
tests.image.repository
tests.image.tag
Missing: `repository` and `tag` must be specified if `enabled` is set to true.
{{- end -}}
{{- end -}}
{{- end -}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment