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