Example Apps to Demonstrate Argo CD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
783 B

4 years ago
apiVersion: batch/v1
kind: Job
metadata:
generateName: app-slack-notification-
annotations:
4 years ago
argocd.argoproj.io/hook: PostSync
4 years ago
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"
4 years ago
- "{\"text\": \"it works!\"}"
4 years ago
- "$(HOOK_URL)"
restartPolicy: Never
backoffLimit: 2
4 years ago
# k create secret generic slack --from-literal=HOOK_URL=https://hooks.slack.com/services/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 -n default