Skip to content

Commit

Permalink
Merge pull request #252 from MinaFoundation/PM-1951-kyc-add-rds-support
Browse files Browse the repository at this point in the history
PM 1951 kyc add rds support
  • Loading branch information
kaozenn authored Sep 2, 2024
2 parents a05b061 + 2c339c0 commit c41a974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions kyc-management-app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,3 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{- define "postgresUri" -}}
postgres://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password}}@{{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}:{{- .Values.postgresql.primary.service.ports.postgresql -}}/{{.Values.postgresql.auth.database}}
{{- end }}
4 changes: 2 additions & 2 deletions kyc-management-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
env:
- name: DATABASE_URL
{{- if .Values.postgresql.enabled }}
value: {{ include "postgresUri" . | quote }}
value: postgres://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password}}@{{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}:{{- .Values.postgresql.primary.service.ports.postgresql -}}/{{.Values.postgresql.auth.database}}
{{- else }}
value: {{ .Values.postgresUri | quote }}
{{- end }}
Expand All @@ -66,7 +66,7 @@ spec:
env:
- name: DATABASE_URL
{{- if .Values.postgresql.enabled }}
value: {{ include "postgresUri" . | quote }}
value: postgres://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password}}@{{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}:{{- .Values.postgresql.primary.service.ports.postgresql -}}/{{.Values.postgresql.auth.database}}
{{- else }}
value: {{ .Values.postgresUri | quote }}
{{- end }}
Expand Down

0 comments on commit c41a974

Please sign in to comment.