feat: add support for rocketchat reciever in AlertManagerConfig CRD#7328
feat: add support for rocketchat reciever in AlertManagerConfig CRD#7328simonpasquier merged 48 commits intoprometheus-operator:mainfrom
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 |
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
|
@slashexx could you resolve the comments and rebase? |
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
|
@mviswanathsai done 👍🏻 |
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
|
@simonpasquier the following check fails It doesn't fail locally for some reason. Rest of the PR should be gtg 🚀 |
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
I have run-run the test and its passing. Its flaky on these links we need to look into separate |
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
xin 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.