diff --git a/helm/warehouse13/templates/_helpers.tpl b/helm/warehouse13/templates/_helpers.tpl index 9845dad..463a70b 100644 --- a/helm/warehouse13/templates/_helpers.tpl +++ b/helm/warehouse13/templates/_helpers.tpl @@ -63,8 +63,8 @@ Create the name of the service account to use PostgreSQL connection string */}} {{- define "warehouse13.postgresUrl" -}} -{{- if .Values.api.env.databaseUrl }} -{{- .Values.api.env.databaseUrl }} +{{- if .Values.app.env.databaseUrl }} +{{- .Values.app.env.databaseUrl }} {{- else }} {{- printf "postgresql://%s:%s@warehouse13-postgres:%d/%s" .Values.postgres.auth.username .Values.postgres.auth.password (.Values.postgres.service.port | int) .Values.postgres.auth.database }} {{- end }}