Skip to content

Commit a83902a

Browse files
roujalunika
authored andcommitted
🚸(helm) improve helm chart
Our Helm chart wasn't suitable for use with Helm alone because jobs remained after deployment. We chose to configure ttlSecondsAfterFinished to clean up jobs after a period of time.
1 parent 080f855 commit a83902a

File tree

6 files changed

+114
-71
lines changed

6 files changed

+114
-71
lines changed

src/helm/env.d/dev/values.impress.yaml.gotmpl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ backend:
6868
- "/bin/sh"
6969
- "-c"
7070
- |
71+
while ! python manage.py check --database default > /dev/null 2>&1
72+
do
73+
echo "Database not ready"
74+
sleep 2
75+
done
76+
77+
echo "Database is ready"
78+
7179
python manage.py migrate --no-input &&
7280
python manage.py create_demo --force
7381
restartPolicy: Never
@@ -84,6 +92,13 @@ backend:
8492
- "/bin/sh"
8593
- "-c"
8694
- |
95+
while ! python manage.py check --database default > /dev/null 2>&1
96+
do
97+
echo "Database not ready"
98+
sleep 2
99+
done
100+
101+
echo "Database is ready"
87102
python manage.py createsuperuser --email [email protected] --password admin
88103
restartPolicy: Never
89104

src/helm/impress/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
22
type: application
33
name: docs
4-
version: 3.3.0
4+
version: 3.4.0-beta.1
55
appVersion: latest

0 commit comments

Comments
 (0)