move logic for determining api url
continuous-integration/drone/pr Build is passing Details

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
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ service:
port: 80
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 }}