W2FM: upgrade the DB on redeployments

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-07-23 16:57:07 +02:00
parent 25eb4bdba6
commit 1cb613d3bd
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -12,7 +12,15 @@ spec:
app: webhook2fedmsg
deploymentconfig: app
strategy:
resources: {}
type: Recreate
recreateParams:
mid:
execNewPod:
command: [/opt/app-root/bin/flask, db, sync]
containerName: app
volumes:
- config
failurePolicy: Abort
template:
metadata:
labels: