From b770949fde541a8d561ef7313ad5cfc28c71cc4e Mon Sep 17 00:00:00 2001 From: gitromba Date: Fri, 12 Mar 2021 14:10:46 +0100 Subject: [PATCH] noty --- guestbook/notification.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 guestbook/notification.yaml diff --git a/guestbook/notification.yaml b/guestbook/notification.yaml new file mode 100644 index 0000000..7b3f449 --- /dev/null +++ b/guestbook/notification.yaml @@ -0,0 +1,24 @@ +apiVersion: batch/v1 +kind: Job +metadata: + generateName: app-slack-notification- + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + template: + spec: + containers: + - name: slack-notification + image: curlimages/curl + command: + - "curl" + - "-X" + - "POST" + - "-H" + - "Content-type: application/json" + - "--data" + - "{\"text\": \"nemjuhuuu\"}" + - "https://hooks.slack.com/services/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" + restartPolicy: Never + backoffLimit: 2