Skip to content

Commit

Permalink
fix postgres-db-init
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan committed Feb 10, 2022
1 parent 929980b commit 9a32563
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions charts/postgres-db-init/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
version: 1.2.11
appVersion: 1.2.11
version: 1.2.12
appVersion: 1.2.12
name: postgres-db-init
description: PostgreSQL DB initialization
dependencies:
Expand Down
28 changes: 14 additions & 14 deletions charts/postgres-db-init/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ spec:
volumeMounts:
- name: postgres-db-init
mountPath: /var/lib/postgres_db_init
{{- with .Values.env }}
env: {{ toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.migrations.enabled }}
containers:
- name: run-migrations
image: {{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag }}
{{- with .Values.migrations.command }}
command: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.migrations.args }}
args: {{ toYaml . | nindent 12 }}
{{- end }}
env:
{{- with .Values.adminDsn }}
- name: NP_ADMIN_DSN
Expand All @@ -54,9 +41,22 @@ spec:
- name: NP_SERVICE_DSN
{{ toYaml . | indent 14 }}
{{- end }}
{{- with .Values.migrations.env }}
{{- with .Values.env }}
{{ toYaml . | indent 12 }}
{{- end }}
{{- if .Values.migrations.enabled }}
containers:
- name: run-migrations
image: {{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag }}
{{- with .Values.migrations.command }}
command: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.migrations.args }}
args: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.migrations.env }}
env: {{ toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml . | nindent 8 }}
Expand Down

0 comments on commit 9a32563

Please sign in to comment.