-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: add support for rocketchat reciever in AlertManagerConfig CRD #7328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also you need to add test to amcfg_test.go |
It also requires a validation inside globalConfig to ensure alertmanager >= v0.28.0 https://github.com/prometheus/alertmanager/pull/3600/files |
Thanks for pointing out the changes @heliapb ! A little clarification on this part, we need to add a validation for the mutual exclusion (token, tokenFile and tokenID, tokenIDFile) as well right ? Additionally, this includes adding prometheus-operator/pkg/alertmanager/types.go Lines 40 to 43 in b34cb97
|
Hi @slashexx I would say so, you can take a look at the validations done for VictorOpsAPIKey | VictorOpsAPIKeyFile for example, as they follow a similar pattern |
@slashpai would you mind taking a look as well ? |
Hi @slashexx could you please rebase as the e2e test are failing due to an issue resolved. |
Hi @slashexx thanks for the work thus far I think we are close to be done, still as I said before the amcfg tests are missing. |
Thanks for helping so far ! I'll add the test cases back like I did previously, but I thought we cleared that up since the Sanitize function for rocketchat handled the cases pretty well ? prometheus-operator/pkg/alertmanager/amcfg_test.go Lines 4124 to 4127 in 465bcba
|
gentle ping @slashpai @simonpasquier, ptal :) |
Hi @slashexx my bad I guess we already had discuss that but I forgot. Still if you could review the tests as the pipeline is failing.Thanks |
Hi I checked and the failing tests seem not to be related to my RocketChat changes ? RocketChat ones are passing fine |
Hi @slashexx could you tried to rebase again? Just run the tests from the main branch with |
Seemed like an issue a rebase fixed ! |
Co-authored-by: Simon Pasquier <[email protected]>
@slashexx could you resolve the comments and rebase? |
Signed-off-by: slashexx <[email protected]>
@mviswanathsai done 👍🏻 |
Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: slashexx <[email protected]>
Signed-off-by: slashexx <[email protected]>
Signed-off-by: slashexx <[email protected]>
@simonpasquier the following check fails
It doesn't fail locally for some reason. Rest of the PR should be gtg 🚀 |
Signed-off-by: slashexx <[email protected]>
I have run-run the test and its passing. Its flaky on these links we need to look into separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
81475dc
into
prometheus-operator:main
Description
This PR extends alertmanager CRD by adding support for a rocketchat reciever.
Fixes #7320
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an
x
in the box that apply.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
Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.
Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.