github.com/argoproj/argo-cd/v3@v3.2.1/notifications_catalog/templates/app-sync-status-unknown.yaml (about) 1 message: | 2 {{if eq .serviceType "slack"}}:exclamation:{{end}} Application {{.app.metadata.name}} sync is 'Unknown'. 3 Application details: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}. 4 {{if ne .serviceType "slack"}} 5 {{range $c := .app.status.conditions}} 6 * {{$c.message}} 7 {{end}} 8 {{end}} 9 email: 10 subject: Application {{.app.metadata.name}} sync status is 'Unknown' 11 slack: 12 attachments: | 13 [{ 14 "title": "{{ .app.metadata.name}}", 15 "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", 16 "color": "#E96D76", 17 "fields": [ 18 { 19 "title": "Sync Status", 20 "value": "{{.app.status.sync.status}}", 21 "short": true 22 }, 23 { 24 "title": {{- if .app.spec.source }} "Repository" {{- else if .app.spec.sources }} "Repositories" {{- end }}, 25 "value": {{- if .app.spec.source }} ":arrow_heading_up: {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}:arrow_heading_up: {{ $source.repoURL }}{{- end }}" {{- end }}, 26 "short": true 27 } 28 {{range $index, $c := .app.status.conditions}} 29 , 30 { 31 "title": "{{$c.type}}", 32 "value": "{{$c.message}}", 33 "short": true 34 } 35 {{end}} 36 ] 37 }] 38 teams: 39 title: Application {{.app.metadata.name}} sync status is 'Unknown' 40 facts: | 41 [{ 42 "name": "Sync Status", 43 "value": "{{.app.status.sync.status}}" 44 }, 45 { 46 "name": {{- if .app.spec.source }} "Repository" {{- else if .app.spec.sources }} "Repositories" {{- end }}, 47 "value": {{- if .app.spec.source }} "⬆️ {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}⬆️ {{ $source.repoURL }}{{- end }}" {{- end }} 48 } 49 {{range $index, $c := .app.status.conditions}} 50 , 51 { 52 "name": "{{$c.type}}", 53 "value": "{{$c.message}}" 54 } 55 {{end}} 56 ] 57 potentialAction: | 58 [{ 59 "@type":"OpenUri", 60 "name":"Open Application", 61 "targets":[{ 62 "os":"default", 63 "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}" 64 }] 65 }, 66 { 67 "@type":"OpenUri", 68 "name":"Open Repository", 69 "targets":[{ 70 "os":"default", 71 "uri":{{- if .app.spec.source }} "⬆️ {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}⬆️ {{ $source.repoURL }}{{- end }}" {{- end }} 72 }] 73 }]