You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Declare spec.consumption on the example ApplicationDefinitions #6
cozystack/cozystack#5349 adds an optional spec.consumption field to ApplicationDefinition, part of the accepted tenant quotas as reservation limits design. The field declares, as CEL over the application's defaulted values, what one application of the kind reserves from its tenant's quota budget. It can also mark the kind exempt.
Nothing changes here yet: the field is optional and nothing reads it in that PR. The next phase adds an admission gate behind a flag, and that gate refuses orders of any kind that declares neither its consumption nor an exemption. When the gate is switched on, the ApplicationDefinitions in this repository (packages/core/platform/templates/cozyrds.yaml, and the ones scripts/update-appdef.sh generates for minecraft-server and minecraft-plugin) need a consumption block. Without one, those apps can no longer be ordered on a cluster that has the gate enabled.
The example catalog is the reference that out-of-tree authors copy, so it should show a declaration for at least one app. That app should be one with real CPU, memory and storage, such as minecraft-server, rather than just an exemption.
Activity
feat(api, kubernetes, virtual-machine): declare tenant quota reservat…