libreoffice-online/kubernetes/helm/collabora-online/templates/configmap.yaml
Rash419 488194c974 fix: helm chart error validating data: unknown object type nil in ConfigMap.data.server_name
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia1723829088ae28b45551aca7d2c6f0c32ec0010
2023-01-13 14:15:39 +05:30

24 lines
766 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "collabora-online.fullname" . }}
annotations:
confighash: config-{{ .Values.collabora | toYaml | sha256sum | trunc 32 }}
labels:
{{- include "collabora-online.labels" . | nindent 4 }}
data:
{{- if .Values.collabora.extra_params }}
extra_params: {{ .Values.collabora.extra_params }}
{{- end }}
{{- if .Values.collabora.server_name }}
server_name: {{ .Values.collabora.server_name }}
{{- end }}
{{- range $k,$v := .Values.collabora.aliasgroups }}
{{- $alias := $v.host }}
{{- if $v.aliases }}
{{- $alias := printf "%s,%s" $alias (join "," $v.aliases) }}
aliasgroup{{ add $k 1 }}: {{ $alias }}
{{- else }}
aliasgroup{{ add $k 1 }}: {{ $alias }}
{{- end }}
{{- end }}