Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#637: exit with error when not healthy
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Rochette <laurent.rochette@codefresh.io>
lrochette committed Aug 10, 2023
1 parent 1fad663 commit fd761fd
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion incubating/argo-cd-sync/argocd_sync.py
Original file line number Diff line number Diff line change
@@ -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)

#######################################################################
2 changes: 1 addition & 1 deletion incubating/argo-cd-sync/step.yaml
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit fd761fd

Please sign in to comment.