mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-03 10:37:21 +09:00
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>