Skip to content

Commit

Permalink
Merge pull request #142 from shoplineapp/chore/fix-curl-fail
Browse files Browse the repository at this point in the history
chore: retry
  • Loading branch information
neal-sl authored Jan 8, 2024
2 parents 43e3433 + dc3a9fa commit c6e0eaa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cronjob/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
description: Helm chart with simple cronjob template
name: cronjob
version: 0.7.3
version: 0.7.4
appVersion: 1.0.0
tillerVersion: ">=2.14.3"
4 changes: 2 additions & 2 deletions cronjob/templates/_exit_handler_healthcheck_io.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
image: 332947256684.dkr.ecr.ap-southeast-1.amazonaws.com/curlimages/curl:8.4.0
command: [ "sh", "-c" ]
args:
- curl https://hc-ping.com/{{ required "exitNotifications.healthcheckIo.uuid must be provided" $healthcheckIo.uuid }}
- curl https://hc-ping.com./{{ required "exitNotifications.healthcheckIo.uuid must be provided" $healthcheckIo.uuid }} --tlsv1.2 --retry 3 --retry-all-errors --fail
- name: notice-healthcheck-io-failed
container:
image: 332947256684.dkr.ecr.ap-southeast-1.amazonaws.com/curlimages/curl:8.4.0
command: [ "sh", "-c" ]
args:
- curl https://hc-ping.com/{{ required "exitNotifications.healthcheckIo.uuid must be provided" $healthcheckIo.uuid }}/fail
- curl https://hc-ping.com./{{ required "exitNotifications.healthcheckIo.uuid must be provided" $healthcheckIo.uuid }}/fail --tlsv1.2 --retry 3 --retry-all-errors --fail
{{- end -}}
4 changes: 2 additions & 2 deletions cronjob/templates/_exit_handler_slack_app.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
image: 332947256684.dkr.ecr.ap-southeast-1.amazonaws.com/curlimages/curl:8.4.0
command: [sh, -c]
args: [
"curl -X POST -H 'Content-type: application/json' --data '{\"attachments\": [
"curl -X POST --tlsv1.2 --retry 3 --retry-all-errors --fail -H 'Content-type: application/json' --data '{\"attachments\": [
{
\"fallback\": \"Workflow Succeeded - {{ "{{" }}workflow.name{{ "}}" }}\",
\"color\": \"#18be52\",
Expand Down Expand Up @@ -79,7 +79,7 @@
image: 332947256684.dkr.ecr.ap-southeast-1.amazonaws.com/curlimages/curl:8.4.0
command: [sh, -c]
args: [
"curl -X POST -H 'Content-type: application/json' --data '{\"attachments\": [
"curl -X POST --tlsv1.2 --retry 3 --retry-all-errors --fail -H 'Content-type: application/json' --data '{\"attachments\": [
{
\"fallback\": \"Workflow Failed - {{ "{{" }}workflow.name{{ "}}" }}\",
\"color\": \"#E01E5A\",
Expand Down
1 change: 1 addition & 0 deletions cronjob/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit c6e0eaa

Please sign in to comment.