mirror of
https://github.com/truecharts/catalog.git
synced 2026-07-17 15:10:22 +08:00
23 lines
487 B
Smarty
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 -}}
|