helm-chart/templates/frontend.yaml
perf3ct 5312dc6a34
Some checks failed
continuous-integration/drone/pr Build is failing
change backend to be api
2023-10-04 10:02:37 -07:00

29 lines
664 B
YAML

{{- define "vikunja.frontend.hardcodedValues" -}}
global:
nameOverride: frontend
service:
main:
enabled: true
{{- if not .Values.api.enabled -}}
primary: true
{{- end }}
type: ClusterIP
ports:
http:
enabled: true
{{- if not .Values.api.enabled -}}
primary: true
{{- end }}
port: 80
protocol: HTTP
{{ end }}
{{ if .Values.frontend.enabled }}
{{- $ctx := deepCopy . -}}
{{- $_ := get .Values "frontend" | mergeOverwrite $ctx.Values -}}
{{- $_ = include "vikunja.frontend.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
{{- include "bjw-s.common.loader.all" $ctx }}
{{ end }}