File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
helm-chart/eoapi/templates Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1313 app : {{ include "eoapi.pgstacHostName" . | nindent 14 }}
1414 spec :
1515 restartPolicy : Never
16+ initContainers :
17+ - name : wait-for-db
18+ image : busybox
19+ command : ['sh', '-c', 'until nc -z eoapi-pgbouncer 5432; do echo waiting for db; sleep 2; done;']
1620 containers :
1721 - name : pgstacbootstrap
1822 image : {{ .Values.pgstacBootstrap.image.name }}:{{ .Values.pgstacBootstrap.image.tag }}
Original file line number Diff line number Diff line change 2929 labels :
3030 app : {{ $serviceName }}-{{ $.Release.Name }}
3131 spec :
32+ {{- if eq $serviceName "stac" }}
33+ initContainers :
34+ - name : wait-for-pgstacbootstrap
35+ image : bitnami/kubectl:latest
36+ command :
37+ - /bin/sh
38+ - -c
39+ - |
40+ echo "Waiting for pgstacbootstrap job to complete..."
41+ while ! kubectl -n eoapi wait --for=condition=complete job/pgstacbootstrap --timeout=5s; do
42+ echo "pgstacbootstrap job not completed yet. Checking again in 5 seconds..."
43+ sleep 5
44+ done
45+ echo "pgstacbootstrap job completed successfully"
46+ {{- end }}
3247 containers :
3348 - image : {{ index $v "image" "name" }}:{{ index $v "image" "tag" }}
3449 name : {{ $serviceName }}
You can’t perform that action at this time.
0 commit comments