mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 13:59:04 +00:00
bb2432755e
Signed-off-by: Travis Lyons <trly@users.noreply.github.com> Co-authored-by: ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com>
28 lines
998 B
YAML
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" . }}
|