From 4d769650cce8acf6a774f8d001ad69044146856a Mon Sep 17 00:00:00 2001 From: gitromba Date: Thu, 18 Mar 2021 09:56:25 +0100 Subject: [PATCH] --allow-empty --- guestbook/fail-notification.yaml | 27 --------------------------- guestbook/success-notification.yaml | 27 --------------------------- 2 files changed, 54 deletions(-) delete mode 100644 guestbook/fail-notification.yaml delete mode 100644 guestbook/success-notification.yaml diff --git a/guestbook/fail-notification.yaml b/guestbook/fail-notification.yaml deleted file mode 100644 index 40714bf..0000000 --- a/guestbook/fail-notification.yaml +++ /dev/null @@ -1,27 +0,0 @@ -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 diff --git a/guestbook/success-notification.yaml b/guestbook/success-notification.yaml deleted file mode 100644 index f09cafa..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\": \"it works!\"}" - - "$(HOOK_URL)" - restartPolicy: Never - backoffLimit: 2 \ No newline at end of file