api icon indicating copy to clipboard operation
api copied to clipboard

Monitoring API: Add AlertmanagerMainConfig

Open marioferh opened this issue 10 months ago • 5 comments

Every component will be in a separated PR in order to improve review process

First PR: https://github.com/openshift/api/pull/1929 Related: Enhancements Proposal https://github.com/openshift/enhancements/pull/1627

marioferh avatar Jan 15 '25 14:01 marioferh

Hello @marioferh! Some important instructions when contributing to openshift/api: API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

openshift-ci[bot] avatar Jan 15 '25 14:01 openshift-ci[bot]

/hold

marioferh avatar Jan 15 '25 15:01 marioferh

Continue tomorrow with last comments

marioferh avatar May 13 '25 15:05 marioferh

https://github.com/openshift/api/pull/2148#discussion_r2109502952 fixed

marioferh avatar Jun 02 '25 16:06 marioferh

@marioferh Just to clarify, what actor(s) would be creating this resource? Are we creating it on behalf of users or will users be creating it at some point?

everettraven avatar Jun 03 '25 13:06 everettraven

/retest-required

marioferh avatar Jul 01 '25 16:07 marioferh

Also, we should probably squash the commits prior to merging.

everettraven avatar Jul 02 '25 20:07 everettraven

@JoelSpeed I'll leave it up to you, but I noticed that there aren't any tests added for the new fields and validations - is that something we require for v1alpha1 APIs?

Yes, I would generally expect to see some testing of CEL validations to check that they are doing what we want, and prevent us breaking that behaviour in the future

JoelSpeed avatar Jul 03 '25 09:07 JoelSpeed

@JoelSpeed I'll leave it up to you, but I noticed that there aren't any tests added for the new fields and validations - is that something we require for v1alpha1 APIs?

Yes, I would generally expect to see some testing of CEL validations to check that they are doing what we want, and prevent us breaking that behaviour in the future

do you have any example¿

marioferh avatar Jul 03 '25 10:07 marioferh

Tests are documented in https://github.com/openshift/api/tree/master/tests

An example would be to add a file alongside the other tests with your FG name and then add some additional cases specific to your use case, https://github.com/openshift/api/blob/b76bb2c289448e8e57028b6337c1702a23fd8ff6/config/v1/tests/infrastructures.config.openshift.io/DualReplica.yaml#L18-L79

JoelSpeed avatar Jul 03 '25 12:07 JoelSpeed

Tests are documented in https://github.com/openshift/api/tree/master/tests

An example would be to add a file alongside the other tests with your FG name and then add some additional cases specific to your use case,

https://github.com/openshift/api/blob/b76bb2c289448e8e57028b6337c1702a23fd8ff6/config/v1/tests/infrastructures.config.openshift.io/DualReplica.yaml#L18-L79

I mean about CEL validation, which ones should I check? everyone? only containerResources ones?

marioferh avatar Jul 07 '25 11:07 marioferh

Isn't there only 1 rule on top of the container resources ones? Generally I'd expect tests for each so that we can see if stuff that previously worked stops working as make updates

JoelSpeed avatar Jul 07 '25 12:07 JoelSpeed

/retest-required

marioferh avatar Jul 10 '25 07:07 marioferh

rebase fix

marioferh avatar Jul 10 '25 09:07 marioferh

/retest-required

marioferh avatar Jul 11 '25 16:07 marioferh

I think this LGTM if we can squash the commits

JoelSpeed avatar Jul 11 '25 16:07 JoelSpeed

/unhold

marioferh avatar Jul 11 '25 16:07 marioferh

/lgtm

JoelSpeed avatar Jul 11 '25 16:07 JoelSpeed

/retest-required

Remaining retests: 0 against base HEAD 674ad74beffcbdf6aa7a577bf23a269c24f92fe8 and 2 for PR HEAD 211ce8489133265bd7a8b4b79d8bb7a7a7f06ebd in total

openshift-ci-robot avatar Jul 11 '25 16:07 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 674ad74beffcbdf6aa7a577bf23a269c24f92fe8 and 2 for PR HEAD 211ce8489133265bd7a8b4b79d8bb7a7a7f06ebd in total

openshift-ci-robot avatar Jul 11 '25 18:07 openshift-ci-robot

/retest-required

marioferh avatar Jul 14 '25 07:07 marioferh

/retest-required

marioferh avatar Jul 14 '25 12:07 marioferh

/retest-required

marioferh avatar Jul 14 '25 13:07 marioferh

/override ci/prow/verify-crd-schema

Only incorrectly identified newly required fields (they have optional parents)

JoelSpeed avatar Jul 14 '25 14:07 JoelSpeed

/lgtm

JoelSpeed avatar Jul 14 '25 14:07 JoelSpeed

@JoelSpeed: Overrode contexts on behalf of JoelSpeed: ci/prow/verify-crd-schema

In response to this:

/override ci/prow/verify-crd-schema

Only incorrectly identified newly required fields (they have optional parents)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

openshift-ci[bot] avatar Jul 14 '25 14:07 openshift-ci[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed, marioferh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Jul 14 '25 14:07 openshift-ci[bot]

/retest-required

Remaining retests: 0 against base HEAD 674ad74beffcbdf6aa7a577bf23a269c24f92fe8 and 2 for PR HEAD bcc4fc1de12c78c50e574444d2879c56d9a85c89 in total

openshift-ci-robot avatar Jul 14 '25 15:07 openshift-ci-robot

/retest-required

marioferh avatar Jul 14 '25 16:07 marioferh

/retest-required

Remaining retests: 0 against base HEAD 674ad74beffcbdf6aa7a577bf23a269c24f92fe8 and 2 for PR HEAD bcc4fc1de12c78c50e574444d2879c56d9a85c89 in total

openshift-ci-robot avatar Jul 14 '25 19:07 openshift-ci-robot