charts/charts/stable/miniflux/templates/common.yaml
Travis Lyons bb2432755e
Added miniflux chart (#690)
Signed-off-by: Travis Lyons <trly@users.noreply.github.com>

Co-authored-by: ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com>
2021-03-20 11:05:30 -04:00

28 lines
998 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Append the configMap to the additionalVolumes */}}
{{- define "miniflux.config.volume" -}}
name: config
secret:
secretName: {{ template "common.names.fullname" . }}-config
{{- end -}}
{{- $volume := include "miniflux.config.volume" . | fromYaml -}}
{{- $additionalVolumes := append .Values.additionalVolumes $volume }}
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
{{/* Append the config secret volume to the additionalVolumeMounts */}}
{{- define "miniflux.config.volumeMount" -}}
name: config
mountPath: /etc/miniflux.conf
subPath: miniflux.conf
{{- end -}}
{{- $volumeMount := include "miniflux.config.volumeMount" . | fromYaml -}}
{{- $additionalVolumeMounts := append .Values.additionalVolumeMounts $volumeMount }}
{{- $_ := set .Values "additionalVolumeMounts" (deepCopy $additionalVolumeMounts) -}}
{{/* Render the templates */}}
{{ include "common.all" . }}