From 3abcb8cd44a2c5a51ce39c421ad490d5131777d0 Mon Sep 17 00:00:00 2001 From: Paul Hansen Date: Sun, 12 May 2024 10:06:09 -0500 Subject: [PATCH] Fixes for UpdateContainerOptions --- src/container.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/container.rs b/src/container.rs index f625a16f..667e86be 100644 --- a/src/container.rs +++ b/src/container.rs @@ -977,11 +977,6 @@ where #[serde(skip_serializing_if = "Option::is_none")] pub device_requests: Option>, - /// Kernel memory limit in bytes. - #[serde(rename = "KernelMemory")] - #[serde(skip_serializing_if = "Option::is_none")] - pub kernel_memory: Option, - /// Hard limit for kernel TCP buffer memory (in bytes). #[serde(rename = "KernelMemoryTCP")] #[serde(skip_serializing_if = "Option::is_none")] @@ -1003,9 +998,9 @@ where pub memory_swappiness: Option, /// CPU quota in units of 10-9 CPUs. - #[serde(rename = "NanoCPUs")] + #[serde(rename = "NanoCpus")] #[serde(skip_serializing_if = "Option::is_none")] - pub nano_cp_us: Option, + pub nano_cpus: Option, /// Disable OOM Killer for the container. #[serde(rename = "OomKillDisable")] @@ -1040,7 +1035,7 @@ where /// Maximum IOps for the container system drive (Windows only) #[serde(rename = "IOMaximumIOps")] #[serde(skip_serializing_if = "Option::is_none")] - pub io_maximum_i_ops: Option, + pub io_maximum_iops: Option, /// Maximum IO in bytes per second for the container system drive (Windows only) #[serde(rename = "IOMaximumBandwidth")]