From 4be5ff27dead7a7d70a91d9ee66e0e00371cdd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Wed, 9 Jan 2019 09:28:27 +0100 Subject: [PATCH] anitya/release-monitoring: change deployment strategy to recreate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Konečný --- .../release-monitoring/files/deploymentconfig.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml b/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml index 37a7f78334..b64e570ce2 100644 --- a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml +++ b/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml @@ -15,6 +15,13 @@ items: activeDeadlineSeconds: 21600 recreateParams: timeoutSeconds: 600 + pre: + failurePolicy: Abort + execNewPod: + containerName: release-monitoring-web + command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ] + volumes: + - config-volume resources: {} rollingParams: intervalSeconds: 1 @@ -29,7 +36,7 @@ items: command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ] volumes: - config-volume - type: Rolling + type: Recreate template: metadata: creationTimestamp: null