mirror of
https://github.com/truenas/charts.git
synced 2026-04-24 02:20:15 +08:00
* initial commit * add templates and ui * typo * typo * update metadata * fix types * add uid for files * update metadata * bump common
11 lines
387 B
Smarty
11 lines
387 B
Smarty
{{- define "upb.validation" -}}
|
|
|
|
{{- $validTypes := (list "motion" "person" "vehicle" "ring") -}}
|
|
{{- range $type := .Values.upbConfig.detectionTypes -}}
|
|
{{- if not (mustHas $type $validTypes) -}}
|
|
{{- fail (printf "Unifi Protect Backup - Expected Detection type to be one of [%s], but got [%s]" (join ", " $validTypes) $type) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|