27 lines
639 B
YAML
27 lines
639 B
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "common.values.setup" . }}
|
|
|
|
{{/* Render config and secrets for sogo */}}
|
|
{{- include "sogo.config" . }}
|
|
|
|
{{/* Append the general configMap volume to the volumes */}}
|
|
{{- define "sogo.configmapVolume" -}}
|
|
enabled: "true"
|
|
mountPath: "/etc/sogo/sogo.conf"
|
|
readOnly: true
|
|
subPath: sogo.conf
|
|
type: "custom"
|
|
volumeSpec:
|
|
configMap:
|
|
name: sogo-config
|
|
items:
|
|
- key: sogo.conf
|
|
path: sogo.conf
|
|
{{- end -}}
|
|
|
|
{{- $_ := set .Values.persistence "sogo-config" (include "sogo.configmapVolume" . | fromYaml) -}}
|
|
|
|
|
|
{{/* Render the templates */}}
|
|
{{ include "common.all" . }}
|