testdays: move on from db init to db upgrades upon redeploy
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
8dbce648f4
commit
2cee47a2f3
1 changed files with 4 additions and 2 deletions
|
@ -18,8 +18,10 @@ spec:
|
||||||
failurePolicy: Abort
|
failurePolicy: Abort
|
||||||
execNewPod:
|
execNewPod:
|
||||||
containerName: testdays
|
containerName: testdays
|
||||||
command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"]
|
# We only need to init the database the first time, after we just need to check
|
||||||
# command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"]
|
# for DB upgrades
|
||||||
|
# command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"]
|
||||||
|
command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"]
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue