robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Added support for webhook_url dynamic overriding using annotations (issue 1083)

Open itisallgood opened this issue 1 year ago • 1 comments

Introduced the webhook_override attribute for ms_teams_sink, enabling the use of annotations from YAML files to dynamically override the webhook_url.

Issue #1083.

sinksConfig:
- ms_teams_sink:
    name: main_ms_teams_sink
    webhook_url: teams-incoming-webhook 
    webhook_override: "annotations.msteams"

Reason for using annotations instead of labels:

Annotations are used instead of labels because URLs can't be passed to labels (see comment for MsTeamsWebhookUrlTransformer in src/robusta/core/sinks/msteams/msteams_webhook_tranformer.py )

itisallgood avatar Jun 29 '24 23:06 itisallgood

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 29 '24 23:06 CLAassistant