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

Implement event dispatching webhook #409

Merged
merged 3 commits into from
Jan 16, 2020
Merged

Implement event dispatching webhook #409

merged 3 commits into from
Jan 16, 2020

Conversation

stefanprodan
Copy link
Member

This PR adds a a new webhook type named event. When an event webhook is present in the canary spec, Flagger will dispatch all events to that URL or URLs. This allows Flagger users to implement a webhook receiver that posts events to Slack, MS Teams or any other platform.

The event receiver should expose a URL that accepts HTTP POST with the following JSON body:

{
  "name": "string (canary name)",
  "namespace": "string (canary namespace)",
  "phase": "string (canary phase)",
  "metadata": {
    "eventMessage": "string (canary event message)",
    "eventType": "string (canary event type)",
    "timestamp": "string (unix timestamp ms)"
  }
}

The receiver can create alerts based on the received phase (possible values: Initialized, Waiting, Progressing, Promoting, Finalising, Succeeded or Failed).

Fix: #393
Fix: #242
Fix: #128

@stefanprodan stefanprodan merged commit 6eaf421 into master Jan 16, 2020
@stefanprodan stefanprodan deleted the event-webhook branch January 16, 2020 09:02
@stefanprodan stefanprodan mentioned this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant