From 07f7d17db59b8b8cd1bdb2fd83dacb88db47c231 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Thu, 13 Apr 2023 23:16:04 -0700 Subject: [PATCH] config: Make the pipe_size field optional Add the serde default attribute to the field so that parsing can continue if this field is not present. The agent assumes a default value for this, so it is not required by the user to provide a value here. Signed-off-by: Archana Shinde --- src/libs/kata-types/src/config/agent.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/kata-types/src/config/agent.rs b/src/libs/kata-types/src/config/agent.rs index 98ec142f4e..f30ab9a238 100644 --- a/src/libs/kata-types/src/config/agent.rs +++ b/src/libs/kata-types/src/config/agent.rs @@ -80,6 +80,7 @@ pub struct Agent { pub kernel_modules: Vec, /// container pipe size + #[serde(default)] pub container_pipe_size: u32, }