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

     1  message: |
     2      The sync operation of application {{.app.metadata.name}} has started at {{.app.status.operationState.startedAt}}.
     3      Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true .
     4  email:
     5      subject: "Start syncing application {{.app.metadata.name}}."
     6  slack:
     7      attachments: |
     8          [{
     9            "title": "{{ .app.metadata.name}}",
    10            "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}",
    11            "color": "#0DADEA",
    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      title: "Start syncing application {{.app.metadata.name}}."
    36      facts: |
    37          [{
    38            "name": "Sync Status",
    39            "value": "{{.app.status.sync.status}}"
    40          },
    41          {
    42            "name": "Started at",
    43            "value": "{{.app.status.operationState.startedAt}}"
    44          },
    45          {
    46            "name": "Repository",
    47            "value": "{{.app.spec.source.repoURL}}"
    48          }
    49          {{range $index, $c := .app.status.conditions}}
    50            {{if not $index}},{{end}}
    51            {{if $index}},{{end}}
    52            {
    53              "name": "{{$c.type}}",
    54              "value": "{{$c.message}}"
    55            }
    56          {{end}}
    57          ]
    58      potentialAction: |
    59          [{
    60            "@type":"OpenUri",
    61            "name":"Open Operation",
    62            "targets":[{
    63              "os":"default",
    64              "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true"
    65            }]
    66          },
    67          {
    68            "@type":"OpenUri",
    69            "name":"Open Repository",
    70            "targets":[{
    71              "os":"default",
    72              "uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
    73            }]
    74          }]