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.
2020-03-31 19:37:18 +00:00
---
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
2020-03-31 19:37:18 +00:00
- name : on -health-degraded
enabled : true
2020-03-31 20:47:16 +00:00
template : rocketchat
2020-03-31 19:37:18 +00:00
- 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
2020-03-31 19:37:18 +00:00
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}}"
2020-03-31 19:37:18 +00:00
}