If no such annotation exists, the default webhook will be used. If the annotation is found but its value
does not contain a valid URL, the system will search for an environmental variable with the name of the value in the additional_env_vars section of your generated_values.yaml file.
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 )
Introduced the
webhook_override
attribute for ms_teams_sink, enabling the use of annotations from YAML files to dynamically override thewebhook_url
.Issue #1083.
If no such annotation exists, the default webhook will be used. If the annotation is found but its value does not contain a valid URL, the system will search for an environmental variable with the name of the value in the
additional_env_vars
section of yourgenerated_values.yaml
file.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
insrc/robusta/core/sinks/msteams/msteams_webhook_tranformer.py
)