CARRY: RHAI-23206: Add per-RayCluster PodMonitor controller #260
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 304 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #260"
general
weight: 0.35
abhijeet-dhumal
Why are these changes needed?
Automatically configure Ray metrics collection by creating one owned PodMonitor per eligible RayCluster, including RayJob- and RayService-created clusters.
The controller selects head and worker pods through the named
metricsport, adds identifying labels, and supports workload opt-out, drift correction, and cleanup when disabled. Foreign PodMonitors are preserved, and monitoring failures do not block workloads.Enabled through the OpenShift overlay with minimal RBAC. UWM NetworkPolicy ingress is tracked separately in RHAI-23207.
Related issue number
RHAI-23206
Labels
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [ ] Manual tests
- [ ] This PR is not tested :(
Focused PodMonitor tests, operator lint, and Helm/OpenShift rendering checks passed.
Architecture
Live OpenShift scraping, webhook behavior, and upgrade validation remain unverified.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added optional PodMonitor-based metrics scraping for RayCluster head and worker Pods, including clusters created by RayJobs.
Monitoring is controlled by a feature gate and respects cluster and RayJob opt-outs. When disabled, the operator cleans up monitors it owns.
Monitoring setup and API availability issues do not block RayCluster reconciliation; failures are retried and reported as warning events.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->