fix(rbac): move TLS ClusterRole from ODH overlay to RHOAI-only overlay #167
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 320 lines diff across 4 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.345
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #167"
general
weight: 0.35
RobuRishabh
Purpose of this PR
PR #156 added the
spark-operator-tls-profileClusterRole (coveringconfig.openshift.io/apiservers) toconfig/overlays/odh/rbac/tls/. The module operator CI runs on Kind using the ODH overlay (platform detection defaults to OpenDataHub when OpenShift APIs are absent). Kubernetes RBAC escalation prevention blocks creating a ClusterRole that grants permissions the deploying SA doesn't already hold, causing everySpark Operator Module CIrun since #156 to fail with:Proposed changes:
rbac/tls/(ClusterRole + ClusterRoleBinding + kustomization) fromconfig/overlays/odh/toconfig/overlays/rhoai/rbac/tlsentry fromconfig/overlays/odh/kustomization.yamlconfig/overlays/rhoai/kustomization.yamlto reference its ownrbac/tlsinstead of../odh/rbac/tlsChange Category
Rationale
The RHOAI overlay is only deployed on OpenShift, where
config.openshift.ioexists and the ClusterRole is meaningful. The ODH overlay is used for both upstream Kind CI and non-RHOAI deployments, where the API group doesn't exist and the escalation check fails.This removes the root cause of the CI regression from #156 and makes the CI workaround in #166 unnecessary.
Fixes: RHOAIENG-83301
Supersedes: #166
Checklist
Additional Notes
Verified via
kustomize build:config.openshift.io(correct — Kind-compatible)config.openshift.io(correct — the TLS ClusterRole rules)<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added permissions that enable the Spark operator to read OpenShift API server configuration.
Applied these permissions to the Spark operator controller and webhook components.
Configuration
* Updated deployment overlays to use the dedicated TLS permissions configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->