Files
cozystack/packages/library
Yan Bondarenko 38a32445f7 fix(cozy-lib): render tenant hugepages quota only as requests
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
2026-11-03 21:21:18 +01:00
..