From fa1206868503d0503841d470700970eb72b08455 Mon Sep 17 00:00:00 2001 From: gitromba Date: Wed, 17 Mar 2021 12:54:36 +0100 Subject: [PATCH] a --- guestbook/success-notification.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 guestbook/success-notification.yaml diff --git a/guestbook/success-notification.yaml b/guestbook/success-notification.yaml new file mode 100644 index 0000000..40714bf --- /dev/null +++ b/guestbook/success-notification.yaml @@ -0,0 +1,27 @@ +apiVersion: batch/v1 +kind: Job +metadata: + generateName: app-slack-notification- + annotations: + argocd.argoproj.io/hook: SyncFail + argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + template: + spec: + containers: + - name: slack-notification + image: curlimages/curl + envFrom: + - secretRef: + name: slack + command: + - "curl" + - "-X" + - "POST" + - "-H" + - "Content-type: application/json" + - "--data" + - "{\"text\": \"auuu\"}" + - "$(HOOK_URL)" + restartPolicy: Never + backoffLimit: 2