Files
cozystack/pkg
Aleksei Sviridkin 93e04af76d feat(api): keep GPU budget keys out of the tenant quota gate
A gpu.cozystack.io/<class> or gpu.cozystack.io/total key caps the
whole subtree of the tenant that declares it and is enforced when a
GPUDevice is ordered. The tenant chart does not render these keys into
the namespace ResourceQuota, so a tenant declaring only GPU keys gets
no quota objects and draws from its parent's pool like a tenant that
declares nothing.

The declaration gate read the same values verbatim. It would carve a
child's GPU key out of its parent's and siblings' as if it were a pod
resource, and it treated a GPU-only tenant as bounded, leaving that
tenant's usage out of its parent's pool. Drop the GPU keys where the
declared quotas are parsed, so the child, the parent, the siblings
and the pool membership all see the same keys the chart renders.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-10-20 17:10:10 +03:00
..