github.com/argoproj/argo-cd/v3@v3.2.1/notifications_catalog/templates/app-deployed.yaml (about) 1 message: | 2 {{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} is now running new version of deployments manifests. 3 email: 4 subject: New version of an application {{.app.metadata.name}} is up and running. 5 slack: 6 attachments: | 7 [{ 8 "title": "{{ .app.metadata.name}}", 9 "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", 10 "color": "#18be52", 11 "fields": [ 12 { 13 "title": "Sync Status", 14 "value": "{{.app.status.sync.status}}", 15 "short": true 16 }, 17 { 18 "title": {{- if .app.spec.source }} "Repository" {{- else if .app.spec.sources }} "Repositories" {{- end }}, 19 "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 }}, 20 "short": true 21 }, 22 { 23 "title": "Revision", 24 "value": "{{.app.status.sync.revision}}", 25 "short": true 26 } 27 {{range $index, $c := .app.status.conditions}} 28 , 29 { 30 "title": "{{$c.type}}", 31 "value": "{{$c.message}}", 32 "short": true 33 } 34 {{end}} 35 ] 36 }] 37 teams: 38 themeColor: "#000080" 39 title: New version of an application {{.app.metadata.name}} is up and running. 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 { 50 "name": "Revision", 51 "value": "{{.app.status.sync.revision}}" 52 } 53 {{range $index, $c := .app.status.conditions}} 54 , 55 { 56 "name": "{{$c.type}}", 57 "value": "{{$c.message}}" 58 } 59 {{end}} 60 ] 61 potentialAction: | 62 [{ 63 "@type":"OpenUri", 64 "name":"Operation Application", 65 "targets":[{ 66 "os":"default", 67 "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}" 68 }] 69 }, 70 { 71 "@type":"OpenUri", 72 "name":"Open Repository", 73 "targets":[{ 74 "os":"default", 75 "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 }} 76 }] 77 }]