mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-27 20:36:44 -08:00
23 lines
648 B
YAML
23 lines
648 B
YAML
{{- /*
|
|
Copyright 2026 Element Creations Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/ -}}
|
|
|
|
{{- range $key, $value := $.Values.extraObjects }}
|
|
{{- if kindIs "string" $value }}
|
|
---
|
|
{{ tpl $value $ }}
|
|
{{- else if kindIs "slice" $value }}
|
|
{{- range $idx, $innerValue := $value }}
|
|
{{- if not (kindIs "string" $innerValue) }}
|
|
{{ fail (printf "extraObjects[%s][%d] is not a string or an array. It is a %s" $key $idx (typeOf $innerValue)) }}
|
|
{{- end }}
|
|
---
|
|
{{ tpl $innerValue $ }}
|
|
{{- end }}
|
|
{{- else -}}
|
|
{{ fail (printf "extraObjects[%s] is not a string or an array. It is a %s" $key (typeOf $value)) }}
|
|
{{- end }}
|
|
{{- end }}
|