From d152b2fb5a9adc3aab6fdc65b1092f3178f00a69 Mon Sep 17 00:00:00 2001 From: gitromba Date: Wed, 17 Mar 2021 13:02:23 +0100 Subject: [PATCH] works? --- guestbook/success-notification.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guestbook/success-notification.yaml b/guestbook/success-notification.yaml index 40714bf..2acf365 100644 --- a/guestbook/success-notification.yaml +++ b/guestbook/success-notification.yaml @@ -3,7 +3,7 @@ kind: Job metadata: generateName: app-slack-notification- annotations: - argocd.argoproj.io/hook: SyncFail + argocd.argoproj.io/hook: PostSync argocd.argoproj.io/hook-delete-policy: HookSucceeded spec: template: @@ -21,7 +21,10 @@ spec: - "-H" - "Content-type: application/json" - "--data" - - "{\"text\": \"auuu\"}" + - "{\"text\": \"it works!\"}" - "$(HOOK_URL)" restartPolicy: Never backoffLimit: 2 + + +# k create secret generic slack --from-literal=HOOK_URL=https://hooks.slack.com/services/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 -n default \ No newline at end of file