This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/argocd/argocd-notifications-cm.yaml

31 lines
792 B
YAML
Raw Normal View History

---
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
data:
config.yaml: |
triggers:
- name: on-sync-succeeded
enabled: true
2020-03-31 20:47:16 +00:00
template: rocketchat
- name: on-health-degraded
enabled: true
2020-03-31 20:47:16 +00:00
template: rocketchat
- name: on-sync-failed
enabled: true
2020-03-31 20:47:16 +00:00
template: rocketchat
2020-04-01 19:25:24 +00:00
- name: on-out-of-sync
condition: app.status.sync.status == 'OutOfSync'
enabled: true
template: rocketchat
templates:
- name: rocketchat
webhook:
chat:
method: POST
body: |
{
2020-05-12 18:05:08 +00:00
"text": "Application *{{.app.metadata.name}}* status is *{{.app.status.sync.status}}*. Last commit: {{(call .repo.GetCommitMetadata .app.status.sync.revision).Message}}"
}