Skip to content

Commit

Permalink
Add cmservice database option to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
tcjennings committed Jan 8, 2025
1 parent 87a81e8 commit 6ab2515
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/postgres/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
cmservice_password:
description: "Password for the cmservice database."
if: cmservice_db
generate:
type: password
exposurelog_password:
description: "Password for the exposurelog database."
if: exposurelog_db
Expand Down
11 changes: 11 additions & 0 deletions applications/postgres/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ spec:
name: "postgres"
key: "timessquare_password"
{{- end }}
{{- with .Values.cmservice_db }}
- name: "VRO_DB_CMSERVICE_USER"
value: {{ .user | quote }}
- name: "VRO_DB_CMSERVICE_DB"
value: {{ .db | quote }}
- name: "VRO_DB_CMSERVICE_PASSWORD"
valueFrom:
secretKeyRef:
name: "postgres"
key: "cmservice_password"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
ports:
Expand Down
4 changes: 4 additions & 0 deletions applications/postgres/values-usdf-cm-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ gafaelfawr_db:
user: 'gafaelfawr'
db: 'gafaelfawr'

cmservice_db:
user: 'cmservice'
db: 'cmservice'

postgresStorageClass: 'wekafs--sdf-k8s01'

0 comments on commit 6ab2515

Please sign in to comment.