Files
catalog/develop/nextcloud/1.0.8/templates/_configmap.tpl
TrueCharts-Bot 26020e6069 Commit new App releases for TrueCharts
Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
2021-07-03 07:56:06 +00: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 -}}