Skip to content

Commit

Permalink
Merge pull request #410 from paul-hansen/update-container-options
Browse files Browse the repository at this point in the history
Fixes for UpdateContainerOptions
  • Loading branch information
fussybeaver authored May 12, 2024
2 parents 0f76ff6 + 3abcb8c commit 7daee4f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,11 +977,6 @@ where
#[serde(skip_serializing_if = "Option::is_none")]
pub device_requests: Option<Vec<DeviceRequest>>,

/// Kernel memory limit in bytes.
#[serde(rename = "KernelMemory")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kernel_memory: Option<i64>,

/// Hard limit for kernel TCP buffer memory (in bytes).
#[serde(rename = "KernelMemoryTCP")]
#[serde(skip_serializing_if = "Option::is_none")]
Expand All @@ -1003,9 +998,9 @@ where
pub memory_swappiness: Option<i64>,

/// CPU quota in units of 10<sup>-9</sup> CPUs.
#[serde(rename = "NanoCPUs")]
#[serde(rename = "NanoCpus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub nano_cp_us: Option<i64>,
pub nano_cpus: Option<i64>,

/// Disable OOM Killer for the container.
#[serde(rename = "OomKillDisable")]
Expand Down Expand Up @@ -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<i64>,
pub io_maximum_iops: Option<i64>,

/// Maximum IO in bytes per second for the container system drive (Windows only)
#[serde(rename = "IOMaximumBandwidth")]
Expand Down

0 comments on commit 7daee4f

Please sign in to comment.