Skip to content

Commit

Permalink
Merge pull request #135 from shoplineapp/chore/update-curl-images
Browse files Browse the repository at this point in the history
cronjob: use curl from private registry instead of docker.io
  • Loading branch information
abelite-fang authored Nov 11, 2023
2 parents 42b7294 + f74441a commit c162178
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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.0
version: 0.7.1
appVersion: 0.0.1
tillerVersion: ">=2.14.3"
6 changes: 3 additions & 3 deletions cronjob/templates/_exit_handler_healthcheck_io.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{{- $healthcheckIo := .Values.exitNotifications.healthcheckIo | default dict -}}
- name: notice-healthcheck-io-succeeded # For cronjob health check, as the schedule may different therefore each cronjob will have different uuid
container:
image: curlimages/curl
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 }}
- name: notice-healthcheck-io-failed
container:
image: curlimages/curl
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
{{- end -}}
{{- end -}}
6 changes: 3 additions & 3 deletions cronjob/templates/_exit_handler_slack_app.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $slackApp := .Values.exitNotifications.slackApp | default dict -}}
- name: notice-slack-app-succeeded
container:
image: curlimages/curl
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\": [
Expand Down Expand Up @@ -72,7 +72,7 @@
]
- name: notice-slack-app-failed
container:
image: curlimages/curl
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\": [
Expand Down Expand Up @@ -149,4 +149,4 @@
]}'
{{ required "exitNotifications.slackApp.webhookUrl must be provided" $slackApp.webhookUrl }}"
]
{{- end -}}
{{- end -}}

0 comments on commit c162178

Please sign in to comment.