api: add post_updates_to_thread to VMAlertmanagerConfig Slack receiver - #2580
Draft
sebastien-glon-cko wants to merge 2 commits into
Draft
Conversation
Exposes the upcoming alertmanager slack_configs option post_updates_to_thread (prometheus/alertmanager#5540), which posts subsequent notifications for an alert group as replies in the thread of the initial Slack message. Follows the same pattern as update_message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe Your Changes
Adds the upcoming alertmanager
slack_configsoptionpost_updates_to_threadto theVMAlertmanagerConfigSlack receiver, following the exact same pattern asupdate_message:api/operator/v1beta1: new optionalpost_updates_to_thread(*bool) field onSlackConfig, plus regenerated deepcopy, CRDs anddocs/api.md.factory/vmalertmanager/config.go: render the key into the generated alertmanager configuration only when set.When enabled, alertmanager posts subsequent notifications for an alert group (resolved, repeats) as replies in the thread of the initial Slack message instead of new channel messages; combined with
update_message, the initial message is updated in place and a reply is also posted to its thread.Note: this depends on the upstream alertmanager feature prometheus/alertmanager#5540 (targeting v0.35.0), which is still under review — marking this PR as draft until it lands. Opening it early so the operator side is ready, as was done for
update_message.Checklist
go test ./internal/controller/operator/factory/vmalertmanager/...and api module tests pass)make docs)🤖 Generated with Claude Code