Files
cozystack/api
Mattia Eleuteri fa7c94507a feat(api): carry a consumption declaration on ApplicationDefinition
Tenant quotas are to be enforced against what an application declares
rather than against the pods it renders, and the apiserver must hold no
per-kind knowledge of how to compute that, so that a kind shipped from
an out-of-tree catalog can take part. The declaration therefore lives
on the kind's definition, next to the schema it is evaluated against.

The evaluator's Declaration becomes an alias of the API type, so a
definition is compiled exactly as it was read, with no conversion that
could drift from it. The CRD refuses an exempt declaration that still
carries expressions and a non-exempt one that names no resource, so an
omission cannot pass for a zero reservation.

Nothing reads the field yet.

Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
2026-11-23 08:03:50 +01:00
..