move logic for determining api url
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
perf3ct 2023-10-11 06:52:59 -07:00
parent 76b209a70c
commit 3ea99647e2
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232

View File

@ -14,6 +14,10 @@ service:
port: 80 port: 80
protocol: HTTP protocol: HTTP
env:
{{- if .Values.api.ingress.main.enabled }}
VIKUNJA_API_URL: "http://{{ index .Values.api.ingress.main.hosts 0 "host" }}{{ index .Values.api.ingress.main.hosts 0 "path" }}"
{{ end }}
{{ end }} {{ end }}