From 0db4f7e8d87b967476d045bc8d0c690c6137176a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Wed, 26 Apr 2023 17:53:01 +0200 Subject: [PATCH] [release-monitoring] Change the syntax of complex commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Finally, the alembic command works! But only the upgrade one. Thanks @darknao for help with that. Let's try to fix the rest. Signed-off-by: Michal Konečný --- .../release-monitoring/files/deploymentconfig.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml b/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml index a68fef3574..2e2b60ca49 100644 --- a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml +++ b/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml @@ -118,7 +118,11 @@ items: failurePolicy: Retry execNewPod: containerName: release-monitoring-web - command: ["/usr/bin/python3", "-m", "alembic", "-c", "/etc/anitya/alembic.ini", "current", "|", "grep", "'(head)'"] + command: + - /bin/bash + - -c + - | + python3 -m alembic -c /etc/anitya/alembic.ini current | grep '(head)' env: - name: ANITYA_WEB_CONFIG value: /etc/anitya/anitya.toml @@ -206,7 +210,11 @@ items: failurePolicy: Retry execNewPod: containerName: release-monitoring-web - command: ["/usr/bin/python3", "-m", "alembic", "-c", "/etc/anitya/alembic.ini", "current", "|", "grep", "'(head)'"] + command: + - /bin/bash + - -c + - | + python3 -m alembic -c /etc/anitya/alembic.ini current | grep '(head)' env: - name: ANITYA_WEB_CONFIG value: /etc/anitya/anitya.toml