Open UranusC opened 1 month ago
If it's single-source app, try
teams:
facts: |
[{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
},
{
"name": "Synced at",
"value": "{{.app.status.operationState.finishedAt}}"
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
}
{{end}}
]
potentialAction: |-
[{
"@type":"OpenUri",
"name":"Operation Details",
"targets":[{
"os":"default",
"uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true"
}]
},
{
"@type":"OpenUri",
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
}]
}]
themeColor: '#000080'
title: Application {{.app.metadata.name}} has been successfully synced
Though I've never tested it, but that's from one of the previous versions of the config that I have.
Ah, looks like the format has changed, at least according to the wiki https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/teams/#templates.
Btw, what's your ArgoCD version?
Checklist:
argocd version
.Describe the bug I'm trying to add TEAMS to ArgoCD Notifications, but it isn't sending notification. The application deployment is by using applicationset
I followed the step from: https://argocd-notifications.readthedocs.io/en/stable/services/teams/
Here is my config: argocd-notifications-cm:
To Reproduce
Expected behavior
The Incoming Webhook microsoft app can send notifications.
Logs
I have also tried template from https://github.com/argoproj/argo-cd/blob/master/notifications_catalog/install.yaml Here is the argocd-notification-cm:
The Log is:
Can anyone please help me solve this issue?