From cf21ffb8ed091372a3c1d19b7c8fd99ba17a5a12 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Jun 27 2022 21:09:25 +0000 Subject: mote_v2: change volumeName and fix path for prod --- diff --git a/roles/openshift-apps/mote/templates/mote-dc.yml b/roles/openshift-apps/mote/templates/mote-dc.yml index 9fabdeb..986a929 100644 --- a/roles/openshift-apps/mote/templates/mote-dc.yml +++ b/roles/openshift-apps/mote/templates/mote-dc.yml @@ -18,7 +18,11 @@ spec: name: mote imagePullPolicy: IfNotPresent volumeMounts: +{% if env == 'staging' %} - mountPath: /srv/web/meetbot +{% else %} + - mountPath: /srv +{% endif %} name: meetbot - mountPath: /opt/app/mote/config.py name: mote-config diff --git a/roles/openshift-apps/mote/templates/mote-worker-dc.yml b/roles/openshift-apps/mote/templates/mote-worker-dc.yml index e7b8b62..44c9e67 100644 --- a/roles/openshift-apps/mote/templates/mote-worker-dc.yml +++ b/roles/openshift-apps/mote/templates/mote-worker-dc.yml @@ -28,7 +28,11 @@ spec: name: mote-worker imagePullPolicy: IfNotPresent volumeMounts: +{% if env == 'staging' %} - mountPath: /srv/web/meetbot +{% else %} + - mountPath: /srv +{% endif %} name: meetbot - mountPath: /opt/app/mote/config.py name: mote-config diff --git a/roles/openshift-apps/mote/templates/pvc.yml b/roles/openshift-apps/mote/templates/pvc.yml index 95f0ee6..3f2c257 100644 --- a/roles/openshift-apps/mote/templates/pvc.yml +++ b/roles/openshift-apps/mote/templates/pvc.yml @@ -19,5 +19,5 @@ spec: requests: storage: 5Gi storageClassName: "" - volumeName: meetbot-storage + volumeName: fedora_value_prod {% endif %}