Utilize bjw-s's common Helm library. #13

Merged
konrad merged 41 commits from :new-helm-chart into main 2023-11-07 14:47:24 +00:00
1 changed files with 5 additions and 12 deletions
Showing only changes of commit 6cefa2e3d2 - Show all commits

View File

@ -38,18 +38,6 @@ probes:
startup:
enabled: false
{{ if and .Values.frontend.ingress.enabled .Values.api.configMaps.config.enabled}}
configMaps:
# The configuration for Vikunja's api.
# https://vikunja.io/docs/config-options/
config:
enabled: true
data:
config.yml:
service:
# Vikunja needs to know the frontend URL for password reset emails.
frontendUrl: "http://{{ index .Values.frontend.ingress.main.hosts 0 "host" }}{{ index .Values.frontend.ingress.main.hosts 0 "path" }}"
{{ end }}
env:
{{ if .Values.redis.enabled }}
konrad marked this conversation as resolved Outdated

Nitpick, but please use "api" here instead of "backend".

Nitpick, but please use "api" here instead of "backend".

Done:
76b209a70c :)

Done: https://kolaente.dev/vikunja/helm-chart/commit/76b209a70c3b73b8bcaeff153e8c5a56a3901975 :)
@ -58,6 +46,11 @@ env:
{{ if .Values.typesense.enabled }}
VIKUNJA_TYPESENSE_ENABLED: "true"
{{ end }}
{{ if and .Values.frontend.ingress.enabled .Values.api.configMaps.config.enabled}}
# The configuration for Vikunja's api.
# https://vikunja.io/docs/config-options/
VIKUNJA_SERVICE_FRONTENDURL: "http://{{ index .Values.frontend.ingress.main.hosts 0 "host" }}{{ index .Values.frontend.ingress.main.hosts 0 "path" }}"
{{ end }}
# Logic to decide what the api URL should be
{{ if .Values.frontend.ingress.enabled }}