github.com/argoproj/argo-cd/v2@v2.10.9/notifications_catalog/templates/app-sync-succeeded.yaml (about)

     1  message: |
     2      {{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}.
     3      Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true .
     4  email:
     5      subject: Application {{.app.metadata.name}} has been successfully synced.
     6  slack:
     7      attachments: |
     8          [{
     9            "title": "{{ .app.metadata.name}}",
    10            "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}",
    11            "color": "#18be52",
    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: "#000080"
    36      title: Application {{.app.metadata.name}} has been successfully synced
    37      facts: |
    38          [{
    39            "name": "Sync Status",
    40            "value": "{{.app.status.sync.status}}"
    41          },
    42          {
    43            "name": "Synced 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":"Operation Details",
    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          }]