Skip to content

Commit

Permalink
PM-1832 add env variables for RO postgres user/pass
Browse files Browse the repository at this point in the history
  • Loading branch information
simisimis committed Jul 8, 2024
1 parent ed4c2cd commit cec6c7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions delegation-verify-coordinator/files/entrypoint_initdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ set -x

invoke create-database
invoke init-database
invoke create-ro-user
4 changes: 4 additions & 0 deletions delegation-verify-coordinator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ spec:
value: {{ .postgres.user | quote }}
- name: POSTGRES_PASSWORD
value: {{ .postgres.password | quote }}
- name: POSTGRES_RO_USER
value: {{ .postgres.roUser | quote }}
- name: POSTGRES_RO_PASSWORD
value: {{ .postgres.roPassword | quote }}
{{- end }}
command: ["/bin/entrypoint/entrypoint-initdb.sh"]
volumeMounts:
Expand Down
3 changes: 2 additions & 1 deletion delegation-verify-coordinator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ coordinator:
db: ""
user: ""
password: ""
roUser: ""
roPassword: ""
miniBatchNumber: 2
uptimeDaysForScore: ""
worker:
Expand Down Expand Up @@ -83,4 +85,3 @@ service:
port: 80

resources: {}

0 comments on commit cec6c7a

Please sign in to comment.