feat: report ready HCP resource IDs in CapacityReport #6603
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 · 270 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 #6603"
general
weight: 0.35
geoberle
Summary
Add
ReadyResourceIDsandNotReadyResourceIDsto the mgmt-agentCapacityReportCRD so schedulers can identify which HCPs already contributed to reported Usage/Requests numbers, avoiding double-counting when reserving resources for pending placements.No separate counters — counts are derived from
len()of each list, making the data self-consistent by construction.Resource IDs are read from the HCP namespace annotation (
azure.microsoft.com/hcp-cluster-azure-resource-id), not from the HostedCluster CR — no additional informer needed. HCPs whose namespace is missing or lacks the annotation are silently skipped from both lists.Breaking change
HostedControlPlaneCountis renamed toHostedControlPlanesand itsready/notReadyint32 counters are replaced with resource ID lists. The CRD is still unused, so this has no impact.Test plan
TestCollectHostedControlPlanes— 7 tabular cases covering ready/not-ready/missing-annotation/missing-namespace scenariosTestBuildReport/TestRetainStatusWithCondition— golden fixtures updatedmake update-codegen) produces zero diffgo vet/go build/make lintclean