internal/instance: Fix validation of volatile.cpu.nodes

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber 2024-11-18 03:13:55 -05:00
parent ce639bbea2
commit 646d537ce1
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -377,7 +377,7 @@ var InstanceConfigKeysAny = map[string]func(value string) error{
// ---
// type: string
// shortdesc: Instance NUMA node
"volatile.cpu.nodes": validate.Optional(validate.IsValidCPUSet),
"volatile.cpu.nodes": validate.Optional(validate.Or(validate.IsValidCPUSet, validate.IsOneOf("0", "balanced"))),
// gendoc:generate(entity=instance, group=volatile, key=volatile.evacuate.origin)
// The cluster member that the instance lived on before evacuation.