change
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
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: |
|
||||
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:
|
||||
- email:admin@allarddcs.nl
|
||||
triggers:
|
||||
- on-sync-failed
|
||||
Reference in New Issue
Block a user