fix(kro-clusters): propagate resourcePrefix to spoke EksclusterWithVpc #911
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 380 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.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #911"
general
weight: 0.35
shapirov103
Problem
On a deployment using a custom resource prefix (e.g.
peeks-031), the parentcluster-addonsArgoCD Application stays Degraded because theack_pod_identitiesApplicationSet reportsApplicationValidationError:Root cause
Spoke
EksclusterWithVpcinstances never receivedresourcePrefix, so they fell back to the RGD schema default"peeks". The nestedEksCluster(which theEksclusterWithVpcRGD already forwardsresourcePrefixto) then stamped the spoke ArgoCD cluster secret with:resource_prefix: peekshub_cluster_name: peeks-hub(${resourcePrefix}-hub)Addons flagged
destinationHub: true(e.g.ack_pod_identities) resolve their destination to{{ default .name (index .metadata.annotations "hub_cluster_name") }}=peeks-hub. Under a custom prefix the hub is registered aspeeks-031-hub, sopeeks-hubis not a known cluster → destination invalid → ApplicationSet error →cluster-addonsDegraded.Verified live on
peeks-031-hub:| cluster secret | resource_prefix | hub_cluster_name |
|---|---|---|
| peeks-031-hub | peeks-031 ✅ | null → falls back to
.name= peeks-031-hub ✅ || peeks-031-spoke-dev | peeks ❌ | peeks-hub ❌ |
| peeks-031-spoke-prod | peeks ❌ | peeks-hub ❌ |
The RGDs are not at fault —
rg-eks-vpc.yamlalready threadsresourcePrefix: ${schema.spec.resourcePrefix}into the nestedEksCluster. The gap is purely in the caller layer that never setsEksclusterWithVpc.spec.resourcePrefix.Fix
gitops/bootstrap/clusters-kro.yaml— threadglobal.resourcePrefixfrom the hub cluster secret'sresource_prefixannotation.gitops/abstractions/kro/kro-clusters/templates/clusters.yaml— setspec.resourcePrefixper spoke asper-cluster override | global | default "peeks".Mirrors the spoke repoURL global-inheritance pattern from #894.
Scope / impact
peeks) deployments are unaffected —${resourcePrefix}-hubcoincidentally equals the realpeeks-hub, so no workshop-participant impact.ack-pod-identityaddon itself is Healthy on the hub); this clears the cosmetic parentcluster-addonsDegraded.Validation
helm templateofabstractions/kro/kro-clusters:global.resourcePrefix=peeks-031, no per-cluster value → renderspeeks-031resourcePrefix→ renders default"peeks"Test plan
--resource-prefix(kind-kro-ack); confirm spoke cluster secrets carryresource_prefix=<prefix>andhub_cluster_name=<prefix>-hub.ack_pod_identitiesApplicationSet has noApplicationValidationError;cluster-addonsreaches Healthy.peeksdeployment unchanged.