33 lines
774 B
YAML
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 }} |