mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
GPU budgets are not pod resources, so ResourceQuota cannot enforce them. Until the pool-wide admission gate is available, the API server needs to check declared class reservations to avoid accepting applications that exceed a tenant's budget. Reusing its inputs and pool arithmetic keeps the eventual switch from changing admission decisions. Tenant quota allocation must account for those reservations because ResourceQuota usage cannot report them. Ordinary-resource accounting must retain GPU-only descendants in the parent's pool, matching the tenant chart and runtime controller. Unsupported keys in the GPU budget domain must not create an unenforced promise when the chart omits them. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
How to test packages local
cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd