41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: argocd-notifications-cm
|
|
namespace: argocd
|
|
labels:
|
|
app.kubernetes.io/component: notifications-controller
|
|
app.kubernetes.io/instance: argocd
|
|
app.kubernetes.io/managed-by: manual
|
|
app.kubernetes.io/name: argocd-notifications-controller
|
|
app.kubernetes.io/part-of: argocd
|
|
data:
|
|
context: |
|
|
argocdUrl: https://argocd-dev.allarddcs.nl
|
|
|
|
service.email.smtp: |
|
|
host: mail.allarddcs.nl
|
|
port: 587
|
|
from: argocd@allarddcs.nl
|
|
username: argocd@allarddcs.nl
|
|
password: Argocd01@
|
|
starttls: true
|
|
|
|
template.app-sync-failed: |
|
|
email:
|
|
subject: Failed to sync application {{.app.metadata.name}}.
|
|
message: |
|
|
The sync of {{.app.metadata.name}} failed at {{.app.status.operationState.finishedAt}}.
|
|
Error: {{.app.status.operationState.message}}
|
|
More details: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true
|
|
|
|
trigger.on-sync-failed: |
|
|
- description: Application syncing has failed
|
|
send: [app-sync-failed]
|
|
when: app.status.operationState != nil and app.status.operationState.phase in ['Error','Failed']
|
|
|
|
subscriptions: |
|
|
- recipients:
|
|
- admin@allarddcs.nl
|
|
triggers:
|