MCO-2334: Implement AWS bootimage updates on CAPI #6447
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 410 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.360
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #6447"
general
weight: 0.35
yuqi-zhang
- What I did
This PR implements boot image updates for CAPI MachineSets and MachineDeployments on AWS, building on the status population work in #6469.
MAPI MachineSets migrated to CAPI authority are skipped by the MAPI reconciler and handled through the CAPI path instead. CAPI informers are dynamically wired on AWS when
ManagedBootImagesAWSCAPIis enabled, with a bounded cache sync timeout to avoid blocking MAPI/CPMS workers. AWS reconciliation resolves the target AMI (standard, marketplace, ROSA) and patches the referenced AWSMachineTemplate via server-side apply.Skew enforcement in
syncAllnow aggregates skipped/errored counts across MAPI, CPMS, and CAPI resources before recording the cluster boot image version. Degraded condition reporting includes CAPI sync errors. RBAC was updated for CAPI resources inopenshift-cluster-api. A design doc is included covering the architecture, enrollment model, and enforcement semantics.- How to verify it
New unit tests cover the CAPI reconciliation paths. Existing MAPI/CPMS bootimage e2e tests should be retested for regressions.
Testing CAPI update path:
Testing the CAPI/MAPI migration path:
spec.authoritativeAPIfield in the MAPI MachineSet toClusterAPI; this will begin the conversion process of creation of a CAPI MachineSet based on the MAPI MachineSet. The process is complete when thestatus.authoritativeAPIstates ClusterAPI.The bootimage skew enforcement version fields should be updated accordingly(including AWS marketplace cases) in both scenarios.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Boot image updates now support AWS-backed Cluster API MachineSets and MachineDeployments, including their infrastructure templates.
During Machine API migration, reconciliation respects which API manages each machine resource.
Marketplace image version tracking includes supported Cluster API resources.
Improvements
Degraded status aggregates synchronization errors across supported machine resources.
Boot image version tracking considers versions across MAPI and CAPI resources.
AWS AMI updates use consistent resolution for standard, Marketplace, and ROSA images.
Documentation
Added a design document covering boot image reconciliation for Cluster API resources.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->