Files
truecharts/charts/develop/nextcloud/templates/_configmap.tpl
T
Kjeld Schouten-Lebbing a85391d0ae Misc fixes (#647)
2021-07-02 23:59:17 +02:00

23 lines
487 B
Smarty

{{/* Define the configmap */}}
{{- define "nextcloud.configmap" -}}
{{- $hosts := "" }}
{{- if .Values.ingress.main.enabled }}
{{ range $index, $host := .Values.ingress.main.hosts }}
{{- if $index }}
{{ $hosts = ( printf "%v %v" $hosts $host ) }}
{{- else }}
{{ $hosts = ( printf "%s" $host ) }}
{{- end }}
{{ end }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloudconfig
data:
NEXTCLOUD_TRUSTED_DOMAINS: {{ $hosts | quote }}
{{- end -}}