Skip to content

Commit 9118837

Browse files
Register ProjectQuota multicluster router in main (#831)
PR #827 split the ProjectQuota CRD into per-AZ CRDs and added a ProjectQuotaResourceRouter in pkg/multicluster/routers.go, but this router was never registered in the ResourceRouters map in cmd/manager/main.go. This is the same class of bug that affected FlavorGroupCapacity (fixed in PR #828) where the router implementation existed but was not wired into the manager entrypoint. Without this registration, ProjectQuota CRDs are not routed to the correct per-AZ clusters in multi-cluster deployments, meaning quota data would not be synced properly. This commit adds the ProjectQuota GVK and its corresponding ProjectQuotaResourceRouter to the ResourceRouters map, following the exact same pattern used by all other registered routers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: cortex-ai-agents[bot] <279748396+cortex-ai-agents[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 24773a4 commit 9118837

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/manager/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ func main() {
344344
historyGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "History"}
345345
committedResourceGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "CommittedResource"}
346346
flavorGroupCapacityGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "FlavorGroupCapacity"}
347+
projectQuotaGVK := schema.GroupVersionKind{Group: "cortex.cloud", Version: "v1alpha1", Kind: "ProjectQuota"}
347348
multiclusterClient := &multicluster.Client{
348349
HomeCluster: homeCluster,
349350
HomeRestConfig: restConfig,
@@ -354,6 +355,7 @@ func main() {
354355
historyGVK: multicluster.HistoryResourceRouter{},
355356
committedResourceGVK: multicluster.CommittedResourceRouter{},
356357
flavorGroupCapacityGVK: multicluster.FlavorGroupCapacityResourceRouter{},
358+
projectQuotaGVK: multicluster.ProjectQuotaResourceRouter{},
357359
},
358360
}
359361
multiclusterClientConfig := conf.GetConfigOrDie[multicluster.ClientConfig]()

0 commit comments

Comments
 (0)