fix(spark-operator-module): select ODH/RHOAI overlay from injected pl… #168
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 269 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.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #168"
general
weight: 0.35
RobuRishabh
Purpose of this PR
Spark Operator on RHOAI Self-Managed crash-loops because the module controller probes OLM to decide ODH vs RHOAI, gets
forbiddenoncatalogsources, and silently falls back to the ODH overlay. The TLS ClusterRole (spark-operator-tls-profile) lives only in the RHOAI overlay, so it is never applied. Controller and webhook then fail to watchapiservers.config.openshift.ioand never become Ready.Proposed changes:
cluster.DetectPlatform/ OLM. Pickconfig/overlays/odhvsconfig/overlays/rhoaifromODH_MODULE_OPERATOR_PLATFORM_TYPE(fallback:ODH_PLATFORM_TYPE). Namespace fromAPPLICATIONS_NAMESPACEonly.bind/escalateonspark-operator-tls-profileso the module can apply the RHOAI TLS ClusterRoleBinding.Change Category
Rationale
opendatahub-operatoralready injectsODH_MODULE_OPERATOR_PLATFORM_TYPEandAPPLICATIONS_NAMESPACEinto module Deployments (injectModuleEnv). KServe uses that and a single OpenShift overlay. Spark was re-detecting platform, reading the wrong env name (ODH_PLATFORM_TYPE), and defaulting to ODH on any error. No overlay merge: RHOAI still gets the RHOAI overlay (including TLS RBAC).Checklist
Additional Notes
Verified locally:
After merge, bump the sparkoperator SHA in
opendatahub-operator(build/manifests-config.yaml/manifests-config.yaml) so RHOAI 3.6 picks up the new module RBAC and binary. No logic change is required inopendatahub-operatorfor this fix.