github.com/argoproj/argo-cd/v2@v2.10.9/notifications_catalog/templates/app-sync-failed.yaml (about) 1 message: | 2 {{if eq .serviceType "slack"}}:exclamation:{{end}} The sync operation of application {{.app.metadata.name}} has failed at {{.app.status.operationState.finishedAt}} with the following error: {{.app.status.operationState.message}} 3 Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true . 4 email: 5 subject: Failed to sync application {{.app.metadata.name}}. 6 slack: 7 attachments: | 8 [{ 9 "title": "{{ .app.metadata.name}}", 10 "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", 11 "color": "#E96D76", 12 "fields": [ 13 { 14 "title": "Sync Status", 15 "value": "{{.app.status.sync.status}}", 16 "short": true 17 }, 18 { 19 "title": "Repository", 20 "value": "{{.app.spec.source.repoURL}}", 21 "short": true 22 } 23 {{range $index, $c := .app.status.conditions}} 24 {{if not $index}},{{end}} 25 {{if $index}},{{end}} 26 { 27 "title": "{{$c.type}}", 28 "value": "{{$c.message}}", 29 "short": true 30 } 31 {{end}} 32 ] 33 }] 34 teams: 35 themeColor: "#FF0000" 36 title: Failed to sync application {{.app.metadata.name}}. 37 facts: | 38 [{ 39 "name": "Sync Status", 40 "value": "{{.app.status.sync.status}}" 41 }, 42 { 43 "name": "Failed at", 44 "value": "{{.app.status.operationState.finishedAt}}" 45 }, 46 { 47 "name": "Repository", 48 "value": "{{.app.spec.source.repoURL}}" 49 } 50 {{range $index, $c := .app.status.conditions}} 51 {{if not $index}},{{end}} 52 {{if $index}},{{end}} 53 { 54 "name": "{{$c.type}}", 55 "value": "{{$c.message}}" 56 } 57 {{end}} 58 ] 59 potentialAction: | 60 [{ 61 "@type":"OpenUri", 62 "name":"Open Operation", 63 "targets":[{ 64 "os":"default", 65 "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true" 66 }] 67 }, 68 { 69 "@type":"OpenUri", 70 "name":"Open Repository", 71 "targets":[{ 72 "os":"default", 73 "uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}" 74 }] 75 }]