Skip to main content
API resource reference for AllowanceBucket, part of the Quota service. To create or change one, see Changing resources; to inspect, see Reading resources.
This resource is part of the v1alpha1 API and is subject to change. Fields and behavior may change in future releases.

Identity

Groupquota.miloapis.com
Versionv1alpha1
KindAllowanceBucket
ScopeProject

Overview

An AllowanceBucket aggregates quota capacity and consumption for a single (consumer, resource type) pair. The quota system creates one bucket automatically for each unique combination found in active ResourceGrant resources, then continuously tallies the total granted capacity (limit) against the amount consumed by granted ResourceClaim resources (allocated) to compute what remains (available). You typically do not create buckets by hand — they are system-managed and read-mostly. You use them to see how much quota a consumer has, how much is in use, and how much is left, which drives real-time admission decisions when new ResourceClaim resources are created.

Spec fields

FieldTypeRequiredDescription
spec.consumerRefObjectYesIdentifies the quota consumer this bucket tracks. Must match the consumer on the ResourceGrant resources that contribute to the bucket.
spec.consumerRef.kindstringYesType of consumer resource, e.g. Organization, Project, or User.
spec.consumerRef.namestringYesName of the specific consumer instance, e.g. acme-corp.
spec.consumerRef.apiGroupstringNoAPI group of the consumer resource, e.g. resourcemanager.miloapis.com.
spec.consumerRef.namespacestringNoNamespace of the consumer resource; required for Project-scoped consumers, left empty for Organization-scoped consumers.
spec.resourceTypestringYesThe resource type this bucket aggregates quota for. Must match a registered ResourceRegistration resource type, e.g. resourcemanager.miloapis.com/projects.

Status fields (read-only)

FieldTypeDescription
status.limitintegerTotal quota capacity for this (consumer, resource type), summed from all active contributing ResourceGrant resources.
status.allocatedintegerTotal quota currently consumed by granted ResourceClaim resources.
status.availableintegerRemaining capacity, computed as limit - allocated (never negative); drives admission decisions.
status.claimCountintegerNumber of granted ResourceClaim resources consuming from this bucket.
status.grantCountintegerNumber of active ResourceGrant resources contributing to this bucket’s limit.
status.contributingGrantRefs[]ObjectPer-grant detail (name, amount, lastObservedGeneration) for each ResourceGrant that contributes capacity.
status.lastReconciliationstringTimestamp of the last recalculation; indicates how fresh the aggregated data is.
status.observedGenerationintegerMost recent spec generation the quota system has processed.

Usage

Buckets are normally created automatically, but the spec is small enough to inspect or reproduce directly:
apiVersion: quota.miloapis.com/v1alpha1
kind: AllowanceBucket
metadata:
  name: acme-corp-projects
spec:
  consumerRef:
    apiGroup: resourcemanager.miloapis.com
    kind: Organization
    name: acme-corp
  resourceType: resourcemanager.miloapis.com/projects
datumctl apply -f allowancebucket.yaml --project my-project
datumctl get allowancebuckets --project my-project
datumctl describe allowancebuckets acme-corp-projects --project my-project
Run datumctl explain allowancebuckets --recursive to see the full, live field tree for this resource.
Last modified on July 2, 2026