Browse Source

works?

pull/80/head
gitromba 4 years ago
parent
commit
d152b2fb5a
  1. 7
      guestbook/success-notification.yaml

7
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
Loading…
Cancel
Save