This repository was archived by the owner on Oct 19, 2024. It is now read-only.
Webhook for Mattermost (no bot accounts available on my Mattermost account) #340
Unanswered
JeanYvesQueignec
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently stuck to send a notification from ArgoCD to a Mattermost Channel I have configured with an incoming webhook (note that I have no possibility to add a bot account in Mattermost)
I have tried to elaborate a ConfigMap to use it as hereunder ( I have tried to align with webhook config proposed in doc - example on Send Slack)
On ticket here #176 I see the URL from webhook following by /api/v4/post ? not working as well from my side....
Do we have to add something in annotations section from the app ?
Is it necessary to add a trigger ? or is it OK for a first step to use this CM ?
Do you have any clue to fix it ?
Regards,
Jean-Yves
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
data:
context: |
mattermostChannelId: Argocd_notification2
argocdUrl: "https://localhost:8080"
service.webhook.mattermost: |
url: ********
headers:
- name: Content-Type
value: application/json
template.send-mattermost: |
webhook:
mattermost:
method: POST
body: |
{
"attachments": [{
"title": "{{.app.metadata.name}}",
"title_link": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}",
"color": "#18be52",
"fields": [{
"title": "Sync Status",
"value": "{{.app.status.sync.status}}",
"short": true
}, {
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"short": true
}]
}]
}
Beta Was this translation helpful? Give feedback.
All reactions