From 646d537ce119ac1b7ae87791c54e669575f512d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 18 Nov 2024 03:13:55 -0500 Subject: [PATCH] internal/instance: Fix validation of volatile.cpu.nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- internal/instance/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/instance/config.go b/internal/instance/config.go index 4d3ad7b06ea..0a5140f9f96 100644 --- a/internal/instance/config.go +++ b/internal/instance/config.go @@ -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.