mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2024-12-15 23:00:39 +05:30
7 lines
370 B
YAML
7 lines
370 B
YAML
|
{{- if .Values.frontend.env }}
|
||
|
{{- $envVar := .Values.frontend.env.BACKEND_HOSTNAME }}
|
||
|
{{ else if .Values.ingress.main.enabled }}
|
||
|
{{- $envVar := index (index .Values.ingress.main.hosts 0) "host" }}
|
||
|
{{- else }}
|
||
|
{{- fail "Frontend container environment is missing a required variable BACKEND_HOSTNAME or main ingress is not enabled." .Values.frontend.env }}
|
||
|
{{- end }}
|