fukuops/k8s/charts/immich/templates/configmap.yaml

22 lines
806 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "immich.fullname" . }}
labels:
{{- include "immich.labels" . | nindent 4 }}
data:
TZ: {{ .Values.immich.general.tz | quote }}
IMMICH_PORT: {{ .Values.immich.service.port | quote }}
IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%s-machine-learning:3003" (include "immich.fullname" .) | quote }}
{{- range $key, $value := .Values.immich.db }}
{{- if and (ne $key "password") $value }}
{{ $keyName := printf "DB_%s" (upper $key) }}
{{ $keyName }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.immich.redis }}
{{- if and (ne $key "password") (ne $key "username") $value }}
{{ $keyName := printf "REDIS_%s" (upper $key) }}
{{ $keyName }}: {{ $value | quote }}
{{- end }}
{{- end }}