[Helm] Support configurable ServiceMonitor apiVersion for Azure Managed Prometheus #5349
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.48) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 18 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.176
Sensitive Paths
sensitive_paths
0.048
win5923
jabbera
<!-- Thank you for your contribution! -->
<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->
Why are these changes needed?
Azure Managed Prometheus (Azure Monitor managed service for Prometheus) does not use the
monitoring.coreos.com/v1CRDs. It usesazmonitoring.coreos.com/v1forServiceMonitor/PodMonitorresources (migration guide). Thekuberay-operatorchart hardcodesmonitoring.coreos.com/v1, so its ServiceMonitor can't be used on AKS with Azure Managed Prometheus.This PR adds a
metrics.serviceMonitor.apiVersionvalue, defaulting tomonitoring.coreos.com/v1, so existing behavior is unchanged. For Azure Managed Prometheus:Changes:
templates/servicemonitor.yaml: theapiVersionis now configurable.values.yaml/README.md: added and documentedmetrics.serviceMonitor.apiVersion.tests/servicemonitor_test.yaml: added a unit test for the override.Related issue number
Closes #5348
Labels
<!-- Please add the appropriate labels to this PR. -->
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [ ] Manual tests
- [ ] This PR is not tested :(
helm unittest -f 'tests/*.yaml' helm-chart/kuberay-operator: passed (9 suites, 83 tests).Authored by GitHub Copilot, but solves a real issue I have.