<#583 Flyte webhooks> Pull request opened by <ping...
# flyte-github
a
#583 Flyte webhooks Pull request opened by pingsutw on <!date^1688579565^{date_short}|2023-07-05T17:52:45Z> TL;DR Add a new webhook processor capable of parsing the workflow event and sending the message to an external service, such as Slack. 1. Flyteadmin sends a workflow event to
SNS
2. SNS push the event to SQS 3. FlyteAdmin webhook processor pulls the event from SQS 4. Parse the event, and then render the payload template ({{ name }} succeeded) 5. Send the event to external service by calling the webhook endpoint Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☐ Code completed ☐ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description webhook config
Copy code
externalEvents:
  enable: true
  type: "aws"
  aws:
    region: "us-west-2"
  eventsPublisher:
    topicName: "arn:aws:sns:us-west-2:590375264460:webhook"
    eventTypes:
      - all
webhooknotifications:
  aws:
    region: "us-west-2"
  webhooks:
    name: slack
    url: <https://hooks.slack.com/services/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>
    payload: "{{ name }} succeeded"
    processor:
      queueName: webhook
      accountId: "590375264460"
Tracking Issue flyteorg/flyte#2317 Follow-up issue NA flyteorg/flyteadmin GitHub Actions: Goreleaser GitHub Actions: Build & Push Flyteadmin Image GitHub Actions: Build & Push Flytescheduler Image GitHub Actions: Bump Version Codecov: 58.32% (-0.42%) compared to 248e947 Codecov: 38.86% of diff hit (target 58.74%) ✅ 8 other checks have passed 8/14 successful checks
#583 Flyte webhooks Pull request ready for review by pingsutw flyteorg/flyteadmin