Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mattemost posts API reference isn't available to use. #840

Open
agepalmist opened this issue May 29, 2024 · 0 comments
Open

Mattemost posts API reference isn't available to use. #840

agepalmist opened this issue May 29, 2024 · 0 comments

Comments

@agepalmist
Copy link

agepalmist commented May 29, 2024

Problematic:
Currently, there is a chance to use Slack provider to inject Flux alerts to a Mattermost channel via a webhook.
But if I want to use Mattermost API to send notifications with a Mattermost bot, like
https://my_mattermost_uri/api/v4/posts it's impossible to do because of a small difference in request bodies Slack and Mattermost.
Slack has the channel field to refer a message to a channel (https://api.slack.com/methods/chat.postMessage)
and Mattermost has the channel_id field for this (https://api.mattermost.com/#tag/posts).

That would be useful to add channel_id to Flux Provide to handle Mattermost posts API reference also.

apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
  name: mattermost
  namespace: default
spec:
  type: slack
  #channel: general
  #address: https://slack.com/api/chat.postMessage
  channel_id: xxxxxxxxxxxxxxxxxxxxxxxxxx
  address: https://my_mattermost_uri/api/v4/posts
  secretRef:
    name: mattermost-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant