Skip to content

Commit

Permalink
#2329 Create db connection to Alembic for the CC team (#2808)
Browse files Browse the repository at this point in the history
* Add domain-cc refs for alembic credentials

* Create a new tpl in the domain-cc helm for housing db credentials
  • Loading branch information
agile-josiah authored Apr 5, 2024
1 parent 8700e14 commit edc470c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/_shared/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ global:
targetPort: 5432
databaseName: vro
schemaName: claims
domainCcSchemaName: domain-cc
16 changes: 16 additions & 0 deletions helm/domain-cc/templates/_alembicdb.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{/*
For Alembic to connect to Postgres Domain-cc DB schema
*/}}
{{- define "domainCc.alembic.envVars" -}}
- name: DOMAIN_CC_USER
valueFrom:
secretKeyRef:
name: domain-cc-db
key: DOMAIN_CC_USER
- name: DOMAIN_CC_PW
valueFrom:
secretKeyRef:
name: domain-cc-db
key: DOMAIN_CC_PW
- name: ALEMBIC_SCHEMA
value: {{ .Values.global.service.db.domainCcSchemaName }}
2 changes: 2 additions & 0 deletions helm/domain-cc/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
{{- include "vro.commonEnvVars" . | nindent 12 }}
{{- include "vro.mqClient.envVars" . | nindent 12 }}
{{- include "vro.redisClient.envVars" . | nindent 12 }}
{{- include "domainCc.alembic.envVars" . | nindent 12 }}
{{- include "vro.postgresUrl" . | nindent 12 }}
resources:
requests:
cpu: 150m
Expand Down

0 comments on commit edc470c

Please sign in to comment.