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

---
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
data:
config.yaml: |
triggers:
- name: on-sync-succeeded
enabled: true
template: rocketchat
- name: on-health-degraded
enabled: true
template: rocketchat
- name: on-sync-failed
enabled: true
template: rocketchat
- name: on-out-of-sync
condition: app.status.sync.status == 'OutOfSync'
enabled: true
template: rocketchat
templates:
- name: rocketchat
webhook:
chat:
method: POST
body: |
{
"text": "Application *{{.app.metadata.name}}* status is *{{.app.status.sync.status}}*. Last commit: {{(call .repo.GetCommitMetadata .app.status.sync.revision).Message}}"
}