Files
Aleksei Sviridkin 6b4c7ebec3 fix(kubernetes): make node group resources optional when instanceType is set
A node group is sized either by instanceType or by explicit resources, but
the generated values schema required resources on every node group. A node
group with instanceType and no resources, or an empty resources that is
dropped during typed-CR to HelmRelease translation, failed schema validation
with "missing property 'resources'" even though sizing was fully specified.

Mark resources optional in the node group definition and regenerate the
schema, API types, README, and ApplicationDefinition. The chart template
already emits domain.cpu/memory only when resources is present, so a node
group sized purely by instanceType now passes validation and installs.

instanceType and explicit resources are mutually exclusive: KubeVirt rejects
a VirtualMachine that references an instancetype and also sets domain.cpu or
domain.memory. Guard this combination at render time with a clear error
instead of emitting a VM the instancetype admission webhook would reject.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-06-28 03:51:14 +03:00
..