Files
cozystack/internal/controller
Aleksei Sviridkin 2d8af2bfe8 feat(api): check GPU budgets when a VM or a worker pool is written
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>
2026-11-28 07:18:08 +03:00
..