Skip to content

Commit

Permalink
Correctly build postgres endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Jan 3, 2024
1 parent 90dc078 commit 501efdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/kubernetes/charts/orders/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ app.kubernetes.io/component: postgresql

{{- define "orders.postgresql.endpoint" -}}
{{- if not (empty .Values.postgresql.endpoint.host) -}}
jdbc:postgresql://{{- .Values.postgresql.endpoint.host -}}:{{- .Values.postgresql.port -}}/{{ .Values.postgresql.database }}
jdbc:postgresql://{{- .Values.postgresql.endpoint.host -}}:{{- .Values.postgresql.endpoint.port -}}/{{ .Values.postgresql.database }}
{{- else -}}
jdbc:postgresql://{{ include "orders.postgresql.fullname" . }}:{{ .Values.postgresql.service.port }}/{{ .Values.postgresql.database }}
{{- end -}}
Expand Down

0 comments on commit 501efdb

Please sign in to comment.