github.com/argoproj/argo-cd/v2@v2.10.9/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": "Repository",
    25              "value": "{{.app.spec.source.repoURL}}",
    26              "short": true
    27            }
    28            {{range $index, $c := .app.status.conditions}}
    29            {{if not $index}},{{end}}
    30            {{if $index}},{{end}}
    31            {
    32              "title": "{{$c.type}}",
    33              "value": "{{$c.message}}",
    34              "short": true
    35            }
    36            {{end}}
    37            ]
    38          }]
    39  teams:
    40      title: Application {{.app.metadata.name}} sync status is 'Unknown'
    41      facts: |
    42          [{
    43            "name": "Sync Status",
    44            "value": "{{.app.status.sync.status}}"
    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 Application",
    63            "targets":[{
    64              "os":"default",
    65              "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
    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          }]