ROSAENG-67141 | fix: skip IAM upgrade mode for HCP managed policies #3597
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 436 lines diff across 5 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.364
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3597"
general
weight: 0.35
michaelryanmcneill
Summary
Skip the IAM Roles/Policies upgrade mode prompt and Classic roles-compat path during
rosa upgrade clusterfor Hosted Control Plane clusters with managed policies. HCP managed policies are maintained by Red Hat/AWS outside the cluster upgrade lifecycle, so customers never need an IAM policy action at upgrade time. Keep a quiet attachment validation so upgrades still fail if managed policies were detached. Explicit--modeis warned and ignored for backward compatibility.Jira
Type of Change
Testing
go test ./cmd/upgrade/cluster/ ./pkg/helper/roles/ -count=1make fmt,make lint,make rosamake coverage-changed-files(changed-lines delta ≥80%)id:62161) still expects validation failurerosa upgrade cluster -c <cluster> --version <ver> -yand confirm no IAM mode prompt / no “compatible with upgrade” / “upgrade isn't needed” noise; with--mode auto, confirm a non-fatal warning that--modeis ignoredBreaking Changes
Checklist
OCM-XXXXX | type: descriptionmake install-hookshas been run[ROSAENG-67141]: https://redhat.atlassian.net/browse/ROSAENG-67141?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Upgrade Experience
Hosted Control Plane clusters using managed policies can schedule upgrades without selecting or validating an IAM upgrade mode. If
--modeis explicitly provided, the command warns that it will be ignored.Before scheduling, the command verifies that required account and operator managed policies are attached and reports an error if validation fails.
Other clusters retain their existing upgrade-mode selection and role-validation behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->