mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
VMs, disks, Kubernetes control planes and worker pools are where the virtualization overhead that breaks pod-unit quota accounting lives, so they are the first kinds to state their reservation in the terms a tenant buys: guest cores and memory by instance-type class, declared disk sizes, and the load balancers a spec publishes. Each declaration follows its chart's own precedence rather than one rule for all: a VM is sized by resources only when cpu, sockets and memory are all set, a worker pool when cpu and memory are non-zero, and a control-plane component fills its preset per key. A worker pool reserves maxReplicas because the cluster-autoscaler grows it without writing the pool, and reserves nothing on Proxmox, whose workers run on the external hypervisor. GPUs are not declared: their quota key is the device name, which a fixed key cannot express. The test evaluates the shipped declarations against the shipped instance types and preset table, including the failures that must stay errors rather than smaller figures. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>