From c668b0157e98cd1d5f4b27e99a07b8672921fb1b Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Mon, 1 Dec 2025 15:37:17 +0200 Subject: [PATCH] config-linux: allow empty strings in memory policy nodes field When runtime-tools validator checks mandatory fields, it expects every string field either to be tagged "omitempty" or contain a non-empty string. Linux memory policy modes MPOL_DEFAULT and MPOL_LOCAL must have empty nodes field. This change adds "omitempty" tag to LinuxMemoryPolicy.Nodes in order to pass runtime-tools validation in these modes. Signed-off-by: Antti Kervinen --- specs-go/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/config.go b/specs-go/config.go index 3ef333387..b81130c4a 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -899,7 +899,7 @@ type LinuxMemoryPolicy struct { // Nodes representing the nodemask for the set_mempolicy syscall in comma separated ranges format. // Format: "-,,-,..." - Nodes string `json:"nodes"` + Nodes string `json:"nodes,omitempty"` // Flags for the set_mempolicy syscall. Flags []MemoryPolicyFlagType `json:"flags,omitempty"`