Skip to content

Declare spec.consumption on the example ApplicationDefinitions #6

Open

Description

@mattia-eleuteri

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions