mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-26 10:48:28 -05:00
21 lines
543 B
YAML
21 lines
543 B
YAML
{{- define "invidious.pghost_inject" -}}
|
|
{{- if empty .Values.config.db.host -}}
|
|
config:
|
|
db:
|
|
host: {{ template "invidious.pghost" . }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{ $_ := mergeOverwrite .Values (include "invidious.pghost_inject" . | fromYaml) -}}
|
|
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "invidious.fullname" . }}
|
|
labels:
|
|
app: {{ template "invidious.name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name }}
|
|
data:
|
|
INVIDIOUS_CONFIG: |
|
|
{{ toYaml .Values.config | indent 4 }}
|