Commit Graph
3 Commits
Author SHA1 Message Date
Aleksei Sviridkin 5d381360c6 docs(gpu): define the class admission and licensing contract
The admission webhooks, license copier and budget checks depend on the
same class annotations, names and ownership rules. Keep their contract
next to the shared constants, including where name acknowledgement
ends and capacity scheduling begins.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-28 07:07:54 +03:00
Aleksei Sviridkin 4cb240a500 feat(gpu): share resource-name ownership and capacity rules
The GPU components need consistent answers about catalog-name
ownership, free units, budget keys and tenant entitlement.

An acknowledged name belongs to its object UID even when an older
class changes its request. Only an exact, unique acknowledgement
confirms ownership; creation time selects candidates for unreserved
names, and duplicate acknowledgements stay ambiguous. These snapshot
rules do not fence future status writes or reserve GPU capacity.

Free units come from node allocatable and pod requests. A finite
NoExecute toleration cannot make a node an enduring placement option,
but a matching toleration without an expiry can.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-28 07:07:54 +03:00
Aleksei Sviridkin 7554abf715 feat(api): add the GPUClass catalog to cozystack.io
GPU offers need stable names for tenant budgets and billing while the
host layer can change its device-plugin resource names. Publish the
offer metadata and a UID-scoped acknowledgement of the underlying resource name,
separate from readiness and from GPU capacity.

Keep immutable offer details on the class, require a profile for vGPU,
and retain the CRD on chart uninstall. The shipped-schema tests exercise
create, update and status preparation through the apiserver strategies,
including malformed fields and status isolation.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-28 07:07:54 +03:00