MON-4031: Add prometheusOperatorConfig API
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.
/assign
@marioferh: This pull request references MON-4031 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.21.0" version, but no target version was set.
In response to this:
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 openshift-eng/jira-lifecycle-plugin repository.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
[!NOTE]
Reviews paused
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
๐ Walkthrough
Walkthrough
Added a new public type PrometheusOperatorConfig in config/v1alpha1 and an optional PrometheusOperatorConfig field on ClusterMonitoringSpec. PrometheusOperatorConfig exposes logLevel, nodeSelector, resources, tolerations, and topologySpreadConstraints. Generated deepcopy, SwaggerDoc, and OpenAPI mappings were added for the new type and wired into ClusterMonitoringSpec. The ClusterMonitoring CRD payloads (CustomNoUpgrade, DevPreviewNoUpgrade, TechPreviewNoUpgrade) were updated to include the prometheusOperatorConfig property with detailed nested schema and validations. MetricsServerConfig also gained a topologySpreadConstraints field and several validation comment punctuations were normalized.
๐ฅ Pre-merge checks | โ 1 | โ 2
โ Failed checks (1 warning, 1 inconclusive)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | โ ๏ธ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
| Description check | โ Inconclusive | No pull request description was provided by the author. Without any descriptive text, the check cannot assess whether the description relates to the changeset. | Provide a pull request description explaining the purpose, motivation, and key details of the PrometheusOperatorConfig API addition. |
โ Passed checks (1 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | โ Passed | The title clearly describes the main change: adding a new prometheusOperatorConfig API, which is directly supported by the file changes showing introduction of PrometheusOperatorConfig type and related schema definitions. |
โ๏ธ Tip: You can configure your own custom pre-merge checks in the settings.
โจ Finishing touches
๐งช Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
[!TIP]
๐งช Unit Test Generation v2 is now available!
We have significantly improved our unit test generation capabilities.
To enable: Add this to your
.coderabbit.yamlconfiguration:reviews: finishing_touches: unit_tests: enabled: trueTry it out by using the
@coderabbitai generate unit testscommand on your code files or under โจ Finishing Touches on the walkthrough!Have feedback? Share your thoughts on our Discord thread!
Comment @coderabbitai help to get the list of available commands and usage tips.
@marioferh When this PR is ready for another round of review, please remove the lifecycle/stale label and ping me for a review.
Thank you!
/remove-lifecycle stale
@marioferh When this PR is ready for another round of review, please remove the
lifecycle/stalelabel and ping me for a review.Thank you!
Done.
About this: https://github.com/openshift/api/pull/2481#discussion_r2391324182
I think current approach is the better one
@CodeRabbit ignore
โ Actions performed
Reviews paused.
Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-hypershift
/test e2e-aws-ovn-hypershift-conformance
/test e2e-aws-ovn-techpreview
/test e2e-aws-serial-1of2
/test e2e-aws-serial-2of2
/test e2e-aws-serial-techpreview-1of2
/test e2e-aws-serial-techpreview-2of2
/test e2e-azure
/test e2e-gcp
/test e2e-upgrade
/test e2e-upgrade-out-of-change
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: everettraven
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [everettraven]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@marioferh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| ci/prow/okd-scos-e2e-aws-ovn | fca22971f58e575bbe765b0c261f0777e4156393 | link | false | /test okd-scos-e2e-aws-ovn |
Full PR test history. Your PR dashboard.
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. I understand the commands that are listed here.
/test e2e-aws-ovn-hypershift
PR-Agent: could not fine a component named e2e-aws-ovn-hypershift in a supported language in this PR.
The pending pipeline tests no longer exist and were sharded some time ago. The sharded versions of the tests are passing so this should be good to go.
/override ci/prow/e2e-aws-serial /override ci/prow/e2e-aws-serial-techpreview
@everettraven: Overrode contexts on behalf of everettraven: ci/prow/e2e-aws-serial, ci/prow/e2e-aws-serial-techpreview
In response to this:
The pending pipeline tests no longer exist and were sharded some time ago. The sharded versions of the tests are passing so this should be good to go.
/override ci/prow/e2e-aws-serial /override ci/prow/e2e-aws-serial-techpreview
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.
The pending pipeline tests no longer exist and were sharded some time ago. The sharded versions of the tests are passing so this should be good to go.
/override ci/prow/e2e-aws-serial /override ci/prow/e2e-aws-serial-techpreview
thanks
/verified by @juzhao
@juzhao: This PR has been marked as verified by @juzhao.
In response to this:
/verified by @juzhao
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 openshift-eng/jira-lifecycle-plugin repository.
/retest-required
Remaining retests: 0 against base HEAD 0acc398c4ed3511a1b311c29283aed8c19071588 and 2 for PR HEAD fe0f7f815d18b880630006cd6dadb56f36e55a0b in total