Skip to content

Commit 3824b07

Browse files
Add environment variables to wait-for-db init container
1 parent 2cb1dbe commit 3824b07

File tree

1 file changed

+4
-0
lines changed
  • helm-chart/eoapi/templates/pgstacboostrap

1 file changed

+4
-0
lines changed

helm-chart/eoapi/templates/pgstacboostrap/job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ spec:
2424
{{ else }}
2525
['sh', '-c', 'until nc -z $POSTGRES_HOST 5432; do echo waiting for db; sleep 10; done;']
2626
{{ end }}
27+
env:
28+
{{- with .Values.pgstacBootstrap.settings.envVars }}
29+
{{- toYaml . | nindent 12 }}
30+
{{- end }}
2731
containers:
2832
- name: pgstacbootstrap
2933
image: {{ .Values.pgstacBootstrap.image.name }}:{{ .Values.pgstacBootstrap.image.tag }}

0 commit comments

Comments
 (0)