Skip to content

Commit

Permalink
fixup port madness
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Sep 8, 2023
1 parent 588d576 commit 12be4e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ metadata:
data:
{{- $databaseURL := .Values.database.url }}
{{- if eq .Values.database.external false }}
{{- $databaseURL = (printf "jdbc:postgresql://%s-%s:%d/%s" .Release.Name .Values.postgresql.nameOverride .Values.postgresql.primary.service.ports.postgresql .Values.postgresql.auth.database) }}
{{- $databaseURL = (printf "jdbc:postgresql://%s-%s:%d/%s" .Release.Name .Values.postgresql.nameOverride (int .Values.postgresql.primary.service.ports.postgresql) .Values.postgresql.auth.database) }}
{{- end }}
DATABASE_URL: {{ $databaseURL }}

0 comments on commit 12be4e1

Please sign in to comment.