MON-4609 - Add configurationSource selector to ClusterMonitoring API.#2938
MON-4609 - Add configurationSource selector to ClusterMonitoring API.#2938marioferh wants to merge 2 commits into
Conversation
Allow choosing between the cluster-monitoring-config ConfigMap and the ClusterMonitoring CRD as the configuration source, defaulting to CRD. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @marioferh! Some important instructions when contributing to openshift/api: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughAdds an optional Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[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 |
|
@marioferh: The following test failed, say
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. |
|
/test api-review |
|
PR-Agent: could not find a component named |
|
I've reviewed all the changes in this diff. Let me verify my analysis is complete by checking the new field and type against all 7 rules: New
New No issues found. The new
|
| // configurationSource is an optional field that selects whether the Cluster Monitoring Operator | ||
| // reads its configuration from the cluster-monitoring-config ConfigMap or from this ClusterMonitoring CRD. | ||
| // Valid values are "ConfigMap" and "CRD". | ||
| // When set to ConfigMap, the operator uses the cluster-monitoring-config ConfigMap in the | ||
| // openshift-monitoring namespace as the configuration source. | ||
| // When set to CRD, the operator uses this ClusterMonitoring custom resource as the configuration source. | ||
| // When omitted, this means no opinion and the platform is left to choose a reasonable default, | ||
| // which is subject to change over time. | ||
| // The current default value is CRD. | ||
| // +optional | ||
| ConfigurationSource ConfigurationSource `json:"configurationSource,omitempty"` |
There was a problem hiding this comment.
It's been a little while since I've reviewed something on this API - could you remind me who is intended to create this resource initially?
Is it an end-user that creates an instance of this resource or will this follow a similar pattern to other config resources where the platform ships with a default instance of this resource named cluster?
Allow choosing between the cluster-monitoring-config ConfigMap and the ClusterMonitoring CRD as the configuration source, defaulting to CRD.