Files
cozystack/packages
Marian Koreniuk 1211095693 fix(kubernetes-nodes): refuse a partial resources spec on every pool
The resources.cpu/resources.memory pair check ran only when an
instanceType was set, while the field description promised a render-time
error for a partial spec on any pool. Without an instancetype a cpu-only
pool renders a VM with no memory, which KubeVirt refuses when the Machine
is created, and a memory-only pool silently sizes the guest at one vCPU.

Run the check on every kubevirt pool; the proxmox branch already requires
both. A kubevirt pool with neither an instanceType nor both resources now
fails at render with a message naming both, the way vm-instance does; no
such pool ever passed admission, so nothing that runs is affected.

A float64 core count of one million or more printed in exponent form,
which the CRD's integer field cannot take. Print it as an integer; every
smaller whole number prints the same bytes, so no template name moves.

Closes #4546

Signed-off-by: Marian Koreniuk <moriarti@cp.if.ua>
Assisted-by: LLM
2026-10-19 23:29:09 +02:00
..