github.com/argoproj/argo-cd/v2@v2.10.9/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": "Repository",
    19              "value": "{{.app.spec.source.repoURL}}",
    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            {{if not $index}},{{end}}
    29            {{if $index}},{{end}}
    30            {
    31              "title": "{{$c.type}}",
    32              "value": "{{$c.message}}",
    33              "short": true
    34            }
    35            {{end}}
    36            ]
    37          }]
    38  teams:
    39      themeColor: "#000080"
    40      title: New version of an application {{.app.metadata.name}} is up and running.
    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          {
    51            "name": "Revision",
    52            "value": "{{.app.status.sync.revision}}"
    53          }
    54          {{range $index, $c := .app.status.conditions}}
    55            {{if not $index}},{{end}}
    56            {{if $index}},{{end}}
    57            {
    58              "name": "{{$c.type}}",
    59              "value": "{{$c.message}}"
    60            }
    61          {{end}}
    62          ]
    63      potentialAction: |
    64          [{
    65            "@type":"OpenUri",
    66            "name":"Operation Application",
    67            "targets":[{
    68              "os":"default",
    69              "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
    70            }]
    71          },
    72          {
    73            "@type":"OpenUri",
    74            "name":"Open Repository",
    75            "targets":[{
    76              "os":"default",
    77              "uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
    78            }]
    79          }]