helm-chart/templates/backend.yaml
perf3ct f45e1eca70
All checks were successful
continuous-integration/drone/pr Build is passing
cool
2023-09-28 18:55:27 -07:00

33 lines
774 B
YAML

{{- define "vikunja.backend.hardcodedValues" -}}
global:
nameOverride: backend
service:
main:
enabled: true
primary: true
type: ClusterIP
ports:
http:
enabled: true
primary: true
port: 3456
protocol: HTTP
env:
{{ if .Values.typesense.enabled }}
VIKUNJA_TYPESENSE_ENABLED: {{ .Values.typesense.apiKey }}
VIKUNJA_TYPESENSE_URL: {{ .Values.typesense.host }}
VIKUNJA_TYPESENSE_APIKEY: {{ .Values.typesense.apiKey }}
{{ end }}
{{ end }}
{{ if .Values.backend.enabled }}
{{- $ctx := deepCopy . -}}
{{- $_ := get .Values "backend" | mergeOverwrite $ctx.Values -}}
{{- $_ = include "vikunja.backend.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
{{- include "bjw-s.common.loader.all" $ctx }}
{{ end }}