Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for UpdateContainerOptions #410

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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