W2FM: upgrade the DB on redeployments
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
25eb4bdba6
commit
1cb613d3bd
1 changed files with 9 additions and 1 deletions
|
@ -12,7 +12,15 @@ spec:
|
||||||
app: webhook2fedmsg
|
app: webhook2fedmsg
|
||||||
deploymentconfig: app
|
deploymentconfig: app
|
||||||
strategy:
|
strategy:
|
||||||
resources: {}
|
type: Recreate
|
||||||
|
recreateParams:
|
||||||
|
mid:
|
||||||
|
execNewPod:
|
||||||
|
command: [/opt/app-root/bin/flask, db, sync]
|
||||||
|
containerName: app
|
||||||
|
volumes:
|
||||||
|
- config
|
||||||
|
failurePolicy: Abort
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue