From ab5754f5733535f44a799192055bd3559314f1b8 Mon Sep 17 00:00:00 2001 From: gitromba Date: Fri, 12 Mar 2021 14:52:30 +0100 Subject: [PATCH] cd: fail deploy noty only --- guestbook/success-notification.yaml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 guestbook/success-notification.yaml diff --git a/guestbook/success-notification.yaml b/guestbook/success-notification.yaml deleted file mode 100644 index 33f0d0e..0000000 --- a/guestbook/success-notification.yaml +++ /dev/null @@ -1,27 +0,0 @@ -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 - envFrom: - - secretRef: - name: slack - command: - - "curl" - - "-X" - - "POST" - - "-H" - - "Content-type: application/json" - - "--data" - - "{\"text\": \"juhuu\"}" - - "$(HOOK_URL)" - restartPolicy: Never - backoffLimit: 2