File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
charts/eoapi/templates/pgstacbootstrap Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ metadata:
99 name : pgstac-settings-config-{{ $.Release.Name }}
1010 annotations :
1111 helm.sh/hook : " post-install,post-upgrade"
12- helm.sh/hook-weight : " -6 "
12+ helm.sh/hook-weight : " -7 "
1313 helm.sh/hook-delete-policy : " before-hook-creation,hook-succeeded"
1414data :
1515 pgstac-settings.sql : |
@@ -22,7 +22,7 @@ metadata:
2222 name : initdb-sql-config-{{ $.Release.Name }}
2323 annotations :
2424 helm.sh/hook : " post-install,post-upgrade"
25- helm.sh/hook-weight : " -6 "
25+ helm.sh/hook-weight : " -7 "
2626 helm.sh/hook-delete-policy : " before-hook-creation,hook-succeeded"
2727data :
2828 initdb.sql : |
@@ -36,7 +36,7 @@ metadata:
3636 name : initdb-json-config-{{ $.Release.Name }}
3737 annotations :
3838 helm.sh/hook : " post-install,post-upgrade"
39- helm.sh/hook-weight : " -6 "
39+ helm.sh/hook-weight : " -7 "
4040 helm.sh/hook-delete-policy : " before-hook-creation,hook-succeeded"
4141data :
4242 {{- range $path, $bytes := $.Files.Glob "initdb-data/samples/*.json" -}}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ metadata:
1111 app : pgstac-eoapi-superuser-init-db
1212 annotations :
1313 helm.sh/hook : " post-install,post-upgrade"
14- helm.sh/hook-weight : " -7 "
14+ helm.sh/hook-weight : " -6 "
1515 helm.sh/hook-delete-policy : " before-hook-creation"
1616spec :
1717 template :
3131 # Exit immediately if a command exits with a non-zero status
3232 set -e
3333
34+ # Wait for the database to be ready
35+ echo "Waiting for database to be ready..."
36+ pypgstac pgready
37+
3438 # Run the initial setup with superuser
3539 PGUSER=postgres psql -f /opt/sql/initdb.sql
3640
7781 tolerations :
7882 {{- toYaml . | nindent 8 }}
7983 {{- end }}
80- backoffLimit : 1
84+ backoffLimit : 5
8185{{- end }}
You can’t perform that action at this time.
0 commit comments