-
Notifications
You must be signed in to change notification settings - Fork 16
/
common.yaml
34 lines (30 loc) · 1.06 KB
/
common.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{/* Append the hardcoded settings */}}
{{- define "miniflux.harcodedValues" }}
env:
RUN_MIGRATIONS: "1"
{{- with .Values.ingress.main }}
{{- if .enabled }}
BASE_URL: http{{ if .tls }}s{{ end }}://{{ (first .hosts).host }}/
{{- end -}}
{{- end }}
{{- with .Values.postgresql }}
{{- if .enabled }}
DATABASE_PASSWORD:
secretKeyRef:
name: {{ $.Release.Name }}-postgresql
key: {{ if not .auth.password }}postgres-{{ end }}password
DATABASE_URL: postgres://{{ default "postgres" .auth.username }}:$(DATABASE_PASSWORD)@{{ $.Release.Name }}-postgresql/{{ .auth.database }}?sslmode=disable
{{- end }}
{{- end }}
probes:
liveness:
custom: true
spec:
httpGet:
path: /healthcheck
port: {{ .Values.service.main.ports.http.port }}
{{- end -}}
{{- $_ := merge .Values (include "miniflux.harcodedValues" . | fromYaml) -}}
{{- $_ := merge .Values (include "miniflux.metrics.defaultValues" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}