MON-4032: Add PrometheusOperatorAdmissionWebhookConfig to ClusterMonitoringSpec#2716
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @danielmellado! Some important instructions when contributing to openshift/api: |
📝 WalkthroughWalkthroughThis pull request introduces a new optional field 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Review Summary by QodoAdd PrometheusOperatorAdmissionWebhookConfig to ClusterMonitoringSpec
WalkthroughsDescription• Added PrometheusOperatorAdmissionWebhookConfig struct to ClusterMonitoringSpec with support for compute resource requests/limits and pod topology spread constraints • Defined new configuration type with Resources and TopologySpreadConstraints fields, including comprehensive kubebuilder validation markers • Generated all required Go code artifacts: OpenAPI schemas, Swagger documentation, and deepcopy methods • Updated all CRD manifests (DevPreviewNoUpgrade, CustomNoUpgrade, TechPreviewNoUpgrade, and featuregated variants) across both config and payload directories with the new admission webhook configuration schema • Added 10 comprehensive validation test cases covering valid configurations, edge cases, and error scenarios for the new admission webhook config Diagramflowchart LR
A["ClusterMonitoringSpec"] -->|"adds field"| B["PrometheusOperatorAdmissionWebhookConfig"]
B -->|"contains"| C["Resources"]
B -->|"contains"| D["TopologySpreadConstraints"]
E["types_cluster_monitoring.go"] -->|"defines"| B
F["Generated Code"] -->|"includes"| G["OpenAPI Schema"]
F -->|"includes"| H["Swagger Docs"]
F -->|"includes"| I["DeepCopy Methods"]
J["CRD Manifests"] -->|"updated with"| B
K["Test Cases"] -->|"validates"| B
File Changes1. openapi/generated_openapi/zz_generated.openapi.go
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…toringSpec Add configuration options for the Prometheus Operator admission webhook component in config/v1alpha1. The new PrometheusOperatorAdmissionWebhookConfig struct supports: - resources: compute resource requests and limits - topologySpreadConstraints: pod distribution across topology domains Signed-off-by: Daniel Mellado <dmellado@fedoraproject.org>
e88103a to
6a78f8c
Compare
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Code Review by Qodo
1. PrometheusOperatorAdmissionWebhookConfig missing FeatureGate
|
|
@danielmellado: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/cc @marioferh |
|
@danielmellado: This pull request references MON-4032 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 story to target the "4.22.0" version, but no target version was set. DetailsIn 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. |
Add configuration options for the Prometheus Operator admission webhook
component in config/v1alpha1.
The new PrometheusOperatorAdmissionWebhookConfig struct supports:
Signed-off-by: Daniel Mellado dmellado@fedoraproject.org