Skip to content

Commit acdec6d

Browse files
committed
fix: differencial backup refactoring related fixes
1 parent fcf6390 commit acdec6d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

charts/opencrvs-services/templates/_postgres-on-deploy-helper.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
- name: postgres-on-deploy
33
command: ["bash", "-c", "/scripts/on-deploy.sh"]
44
image: postgres:17
5+
volumeMounts:
6+
- mountPath: /scripts
7+
name: postgres-on-deploy-script
58
env:
69
- name: POSTGRES_HOST
710
value: {{ .Values.postgres.host }}
@@ -54,9 +57,6 @@
5457
secretKeyRef:
5558
name: {{ .Values.postgres.users_secret }}
5659
key: EVENTS_ANALYTICS_POSTGRES_PASSWORD
57-
volumeMounts:
58-
- mountPath: /scripts
59-
name: postgres-on-deploy-script
6060
{{- end }}
6161
{{- define "postgres-on-deploy.volumes" -}}
6262
- name: postgres-on-deploy-script

charts/opencrvs-services/templates/elasticsearch-reindex-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ spec:
1515
app: elasticsearch-reindex
1616
spec:
1717
containers:
18-
{{- include "postgres-on-deploy.containerSpec" . | nindent 8 }}
18+
{{- include "elasticsearch-reindex.containerSpec" . | nindent 8 }}
1919
restartPolicy: "OnFailure"
2020
volumes:
21-
{{- include "postgres-on-deploy.volumes" . | nindent 8 }}
21+
{{- include "elasticsearch-reindex.volumes" . | nindent 8 }}
2222
{{- end }}

charts/opencrvs-services/templates/postgres-on-deploy-job.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
{{- include "postgres-on-deploy.containerSpec" . | nindent 8 }}
19+
{{- include "render-env-vars" (dict "service_name" "postgres_on_deploy" "Values" .Values) }}
1920
restartPolicy: "OnFailure"
2021
volumes:
2122
{{- include "postgres-on-deploy.volumes" . | nindent 8 }}

0 commit comments

Comments
 (0)