Skip to content

Commit

Permalink
#637: exit with error when not healthy
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Rochette <[email protected]>
  • Loading branch information
lrochette committed Aug 10, 2023
1 parent 1fad663 commit fd761fd
Show file tree
Hide file tree
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
Expand Up @@ -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)

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

0 comments on commit fd761fd

Please sign in to comment.