From aa11d465e66ca1770570c7cfaa425232b2c40dc4 Mon Sep 17 00:00:00 2001
From: Adam Saleh <asaleh@redhat.com>
Date: Wed, 10 Nov 2021 10:45:14 +0100
Subject: [PATCH] Switch deployment to recreate to fix bodhi db migrations.

---
 .../bodhi/templates/deploymentconfig.yml       | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml
index 10d5a9ded0..1cc231790c 100644
--- a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml
+++ b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml
@@ -16,7 +16,6 @@ items:
     selector:
       deploymentconfig: bodhi-web
     strategy:
-{% if env == "staging" %}
       activeDeadlineSeconds: 21600
       recreateParams:
       mid:
@@ -35,19 +34,6 @@ items:
       timeoutSeconds: 600
     resources: {}
     type: Recreate
-{% else %}
-      activeDeadlineSeconds: 21600
-      recreateParams:
-        timeoutSeconds: 600
-      resources: {}
-      rollingParams:
-        intervalSeconds: 1
-        maxSurge: 25%
-        maxUnavailable: 25%
-        timeoutSeconds: 600
-        updatePeriodSeconds: 1
-      type: Rolling
-{% endif %}
     template:
       metadata:
         creationTimestamp: null
@@ -62,11 +48,7 @@ items:
         - name: bodhi-web
           image: bodhi-base:latest
           command: ["gunicorn"]
-{% if env == "staging" %}
           args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"]
-{% else %}
-          args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"]
-{% endif %}
           ports:
           - containerPort: 8080
 {% if env == "staging" %}