No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 90.8%
  • Dockerfile 6.8%
  • Makefile 2.4%
Find a file
Terry Cain 617202b003
Some checks failed
CI / Linting (push) Failing after 21s
CI / Release (push) Has been skipped
Update README.md
2021-04-07 23:15:50 +01:00
.github/workflows Tweaked package name 2020-12-02 13:10:11 +00:00
fluxcd_teams_bot Added auth token support 2020-12-02 14:26:54 +00:00
.mypy.ini Cleaned up project 2020-12-01 13:35:09 +00:00
Dockerfile Tweaked package name 2020-12-02 13:10:11 +00:00
LICENSE Started github actions 2020-12-02 12:46:45 +00:00
Makefile Cleaned up project 2020-12-01 13:35:09 +00:00
Pipfile Cleaned up project 2020-12-01 13:35:09 +00:00
Pipfile.lock Bump urllib3 from 1.26.3 to 1.26.4 2021-04-06 18:25:08 +00:00
README.md Update README.md 2021-04-07 23:15:50 +01:00

FluxCD Teams Webhook

Project archived, should use Flux 2 which has purpose built notifications

CI

Simple Python web server which Flux v1 can send events to. Will send updates to an MS Teams webhook URL for any errors when applying GitOps manifests and when deployments are updated when new images are found.

docker pull ghcr.io/binkhq/fluxcd-teams-webhook:latest

Setup

Run the Flux Teams webhook container somewhere Flux can call, in theory you could have flux deploy the webhook container via GitOps.

The container has the following environment variables

Name Description Default
LOG_LEVEL Python logging level, can be one of DEBUG, INFO, WARNING, ERROR and CRITICAL INFO
LISTEN_ADDR Web server listening address 0.0.0.0
LISTEN_PORT Web server listening port 8080
GIT_REPO_PREFIX URL prefix used to generate links to the Git repo in Teams messages https://github.com/fluxcd/flux-get-started/blob/master/
TEAMS_WEBHOOK_URL MS Teams webhook URL
FLUX_TOKEN Flux auth token. Is optional

Update the Flux container manifest to add the following args:

- --connect=ws://flux-teams-webhook-url
- --token=abc123abc123abc123abc123

The webhook url scheme should be ws if running the flux teams bot normally or wss if being fronted by SSL. The token argument is optional, and if provided add the token environment variable to the flux teams webhook container.