Skip to content

Feat: Add CR for Mattermost Receiver in Alertmanager#8176

Open
nutmos wants to merge 83 commits intoprometheus-operator:mainfrom
nutmos:feat/am-mattermost
Open

Feat: Add CR for Mattermost Receiver in Alertmanager#8176
nutmos wants to merge 83 commits intoprometheus-operator:mainfrom
nutmos:feat/am-mattermost

Conversation

@nutmos
Copy link
Contributor

@nutmos nutmos commented Dec 13, 2025

Description

Alertmanager 0.30.0 supports Mattermost receiver. This PR adds the CR for the integration to this feature in Alertmanager.

Closes: #8164

Type of change

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Unit Testing

Changelog entry

- Add CR to support Mattermost Integration in Alertmanager

@nutmos nutmos requested a review from a team as a code owner December 13, 2025 11:41
@nutmos nutmos requested a review from simonpasquier December 28, 2025 13:05
@nutmos
Copy link
Contributor Author

nutmos commented Dec 28, 2025

@simonpasquier Could you please review?

)

// MattermostPriorityConfig configures the parameters related to the priority of the message.
// +kubebuilder:validation:XValidation:rule="!((self.priority != 'Important' && self.priority != 'Urgent') && self.requestedAck == true)",message="requestedAck can only be set to true when priority is Urgent or Important"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same remark here, while the validation would have been nice, the value can be a Go template string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonpasquier Sorry I don't really get that. Could you please elaborate more or explain what is the expected validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonpasquier Hi, I'm happy to fix this. Could you mention exactly what is the expected way to implement?

nutmos added 5 commits January 6, 2026 13:55
to fix merge conflict and reflect new changes
to match the new method ValidateURLPtr
fix the wrong golden file name
to prevent linter to check bool values
@nutmos nutmos requested a review from simonpasquier January 6, 2026 23:57
nutmos added 2 commits January 7, 2026 19:41
to resolve merge conflict
to fix merge conflict
@nutmos
Copy link
Contributor Author

nutmos commented Jan 14, 2026

@simonpasquier Any chance to review this pls?

@nutmos
Copy link
Contributor Author

nutmos commented Feb 6, 2026

@simonpasquier @heliapb Could you please give any suggestion?

@nutmos
Copy link
Contributor Author

nutmos commented Feb 24, 2026

@heliapb @simonpasquier Hi, any suggestions here?

to ensure the value of template url will not have any issue
to simplify after changing the variable type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support for Alertmanager Mattermost integration

3 participants