From f74441aa58b9b836263e40a7af0052e3175e726f Mon Sep 17 00:00:00 2001 From: Daniel Fang Date: Sun, 12 Nov 2023 01:04:15 +0800 Subject: [PATCH] hotfix: due to dockerhub service fail, change curl image to private registery --- cronjob/Chart.yaml | 2 +- cronjob/templates/_exit_handler_healthcheck_io.tpl | 6 +++--- cronjob/templates/_exit_handler_slack_app.tpl | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cronjob/Chart.yaml b/cronjob/Chart.yaml index c6a273bf..7be6308f 100644 --- a/cronjob/Chart.yaml +++ b/cronjob/Chart.yaml @@ -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" diff --git a/cronjob/templates/_exit_handler_healthcheck_io.tpl b/cronjob/templates/_exit_handler_healthcheck_io.tpl index a7015189..7d223fdf 100644 --- a/cronjob/templates/_exit_handler_healthcheck_io.tpl +++ b/cronjob/templates/_exit_handler_healthcheck_io.tpl @@ -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 -}} \ No newline at end of file +{{- end -}} diff --git a/cronjob/templates/_exit_handler_slack_app.tpl b/cronjob/templates/_exit_handler_slack_app.tpl index 0395a834..df03802c 100644 --- a/cronjob/templates/_exit_handler_slack_app.tpl +++ b/cronjob/templates/_exit_handler_slack_app.tpl @@ -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\": [ @@ -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\": [ @@ -149,4 +149,4 @@ ]}' {{ required "exitNotifications.slackApp.webhookUrl must be provided" $slackApp.webhookUrl }}" ] -{{- end -}} \ No newline at end of file +{{- end -}}