EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 831c082c authored by Stephan's avatar Stephan
Browse files

treat init-db.sh like a template

parent 80aea988
No related branches found
No related tags found
2 merge requests!37Chart,!36Staging to master to prepare 1.0.0 release
......@@ -4,6 +4,12 @@ if python3 manage.py id check "${COLLECTION}"; then
python3 manage.py coveragetype import /rgbnir_definition.json --traceback
{{- if .Values.initDb }}
{{ .Values.initDb | nindent 6 }}
{{- else }}
if [ "${COLLECTION}" == "VHR_IMAGE_2018" ]; then
echo "Initializing collection '${COLLECTION}'."
......@@ -73,6 +79,7 @@ if python3 manage.py id check "${COLLECTION}"; then
--type swift \
--storage-auth auth-cloud-ovh
{{- end }}
else
echo "Using existing database"
......
......@@ -3,4 +3,4 @@ kind: ConfigMap
metadata:
name: {{ include "vs.fullname" . }}-init-db
data:
{{ (.Files.Glob "files/init-db.sh").AsConfig | nindent 2}}
{{ (tpl (.Files.Glob "files/init-db.sh").AsConfig . ) | nindent 2}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment