refactor(api): remove ActualHostedCluster from ServiceProviderCluster #7485
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 252 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.331
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7485"
general
weight: 0.35
machi1990
Summary
Removes the
ActualHostedClusterfield fromServiceProviderClusterStatusand all of its usages, now that the admission plugin consults the dedicatedImageContentSourcesfield added in #7484.Tracking
No Jira tracking ticket — this is an incremental API change requested directly by the ARO-HCP team. A tracking issue can be linked if one is required.
Changes (removal commit
c6f94bff9)ActualHostedCluster v1beta1.HostedClusterfromServiceProviderClusterStatus(internal/api/coreapi/types_serviceprovider_cluster.go); regenerate deepcopy.backend/pkg/controllers/cluster/hostedcluster/actual_hosted_cluster_controller.go): stop populatingActualHostedCluster; populate onlyImageContentSources; write-suppression adjusted.internal/admission/admit_cluster.go): drop theActualHostedClusterfallback inadmitClusterV5DataPlaneMirror— a nilImageContentSourcesnow fails closed (unavailable), and a non-nil value is checked viaImageContentSourcesHaveSource.HostedClusterHasImageContentSourcehelper (keptImageContentSourcesHaveSource).docs/cosmos-data-flow.md,internal/admission/CLAUDE.md).Note: the controller type/file/metrics names deliberately retain the "ActualHostedCluster" identity to preserve controller and metrics continuity; only the API field and its usages are removed. (10 files, +79/−217.)
Validation
make deepcopy+make verify-deepcopy: cleanmake lint: 0 issuesmake verify: passinternal(48 packages) andbackend(56 packages) pass---
AI-generated. Review for accuracy.*
@deads2k requested from Slack