diff --git a/Cargo.lock b/Cargo.lock index a48aaac21..3a21d80e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -393,7 +393,7 @@ dependencies = [ "hmac", "jwt", "monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "mungos", "periphery_client", "serde", @@ -587,7 +587,7 @@ name = "db_client" version = "0.1.0" dependencies = [ "anyhow", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "mungos", ] @@ -1354,7 +1354,7 @@ version = "0.1.2" dependencies = [ "anyhow", "futures-util", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "reqwest", "serde", "serde_derive", @@ -1374,7 +1374,7 @@ dependencies = [ "bollard", "futures", "futures-util", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "rand", "run_command", "serde", @@ -1395,7 +1395,7 @@ dependencies = [ "bollard", "futures", "futures-util", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "rand", "run_command", "serde", @@ -1418,7 +1418,7 @@ dependencies = [ "envy", "futures-util", "monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "run_command", "serde", "serde_derive", @@ -1433,6 +1433,8 @@ dependencies = [ [[package]] name = "monitor_types" version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c83cf1154e1d415c78bc275c6fad9f039ada4cb4a62c9734d39283c6408ccc1a" dependencies = [ "anyhow", "bollard", @@ -1449,9 +1451,7 @@ dependencies = [ [[package]] name = "monitor_types" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c83cf1154e1d415c78bc275c6fad9f039ada4cb4a62c9734d39283c6408ccc1a" +version = "0.1.3" dependencies = [ "anyhow", "bollard", @@ -1715,7 +1715,7 @@ dependencies = [ "anyhow", "futures-util", "monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "monitor_types 0.1.2", "reqwest", "serde", "serde_json", diff --git a/lib/types/Cargo.toml b/lib/types/Cargo.toml index cdc5705ec..5d1163956 100644 --- a/lib/types/Cargo.toml +++ b/lib/types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "monitor_types" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = ["MoghTech"] description = "types for the mogh tech monitor" diff --git a/lib/types/src/deployment.rs b/lib/types/src/deployment.rs index d3b65144d..f69a4f94b 100644 --- a/lib/types/src/deployment.rs +++ b/lib/types/src/deployment.rs @@ -97,18 +97,22 @@ pub struct DockerRunArgs { #[diff(attr(#[serde(skip_serializing_if = "Option::is_none")]))] pub image: String, + #[serde(default)] #[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))] pub ports: Vec, + #[serde(default)] #[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))] pub volumes: Vec, + #[serde(default)] #[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))] pub environment: Vec, #[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))] pub network: Option, + #[serde(default)] #[diff(attr(#[serde(skip_serializing_if = "restart_mode_diff_no_change")]))] pub restart: RestartMode, @@ -118,6 +122,10 @@ pub struct DockerRunArgs { #[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))] pub container_user: Option, + #[serde(default)] + #[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))] + pub extra_args: Vec, + #[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))] pub docker_account: Option, // the username of the dockerhub account }