mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-23 21:25:44 +09:00
A tenant with hugepages-2Mi or hugepages-1Gi in resourceQuotas got both requests.hugepages-<size> and limits.hugepages-<size> in tenant-quota. A ResourceQuota accepts huge pages only as hugepages-<size> or requests.hugepages-<size>, so the apiserver rejects tenant-quota and the tenant release fails to install or upgrade. Huge pages are not counted in limits.memory either, so without this key a VM whose memory is backed by huge pages runs outside the tenant quota. The limits side is dropped for hugepages-* the same way it already is for storage. sanitize still emits equal requests and limits, which is what a pod spec needs for huge pages, so only the quota rendering changes. Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com> Assisted-by: LLM