From fd761fdd867f848b7dd1564fd38bcb148733a800 Mon Sep 17 00:00:00 2001 From: Laurent Rochette Date: Thu, 10 Aug 2023 21:29:23 +0200 Subject: [PATCH] #637: exit with error when not healthy Signed-off-by: Laurent Rochette --- incubating/argo-cd-sync/argocd_sync.py | 3 ++- incubating/argo-cd-sync/step.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/incubating/argo-cd-sync/argocd_sync.py b/incubating/argo-cd-sync/argocd_sync.py index 916ddd964..71a0c14d6 100644 --- a/incubating/argo-cd-sync/argocd_sync.py +++ b/incubating/argo-cd-sync/argocd_sync.py @@ -70,7 +70,8 @@ def main(): CF_OUTPUT_URL_VAR = CF_STEP_NAME + '_CF_OUTPUT_URL' link_to_app = get_link_to_apps_dashboard() export_variable(CF_OUTPUT_URL_VAR, link_to_app) - if status != "HEALTHY" + if status != "HEALTHY": + logging.debug("Status is not HEALTHY. Exiting with error.") sys.exit(1) ####################################################################### diff --git a/incubating/argo-cd-sync/step.yaml b/incubating/argo-cd-sync/step.yaml index f23f361b4..55b2eb1ff 100644 --- a/incubating/argo-cd-sync/step.yaml +++ b/incubating/argo-cd-sync/step.yaml @@ -111,7 +111,7 @@ spec: }, "IMAGE_TAG": { "type": "string", - "default": "1.2.2", + "default": "1.3.0", "description": "OPTIONAL - To overwrite the tag to use" } }