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.

28 lines
628 B

4 years ago
apiVersion: batch/v1
kind: Job
metadata:
generateName: app-slack-notification-
annotations:
argocd.argoproj.io/hook: SyncFail
4 years ago
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
template:
spec:
containers:
- name: slack-notification
image: curlimages/curl
envFrom:
- secretRef:
name: slack
4 years ago
command:
- "curl"
- "-X"
- "POST"
- "-H"
- "Content-type: application/json"
- "--data"
- "{\"text\": \"auuu\"}"
- "$(HOOK_URL)"
4 years ago
restartPolicy: Never
backoffLimit: 2