From 0e1a60e16151048f7abade3e9733ff196a2b7e4d Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Thu, 10 Aug 2023 09:57:46 +0200 Subject: [PATCH 01/10] feat: Implement Sum for CpuQuantity and MemoryQuantity (#634) * feat: Implement Sum for CpuQuantity and MemoryQuantity * changelog --- CHANGELOG.md | 6 ++++++ src/cpu.rs | 7 +++++++ src/memory.rs | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd10a4f90..1f544dcd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Added + +- Implement `Sum` for `CpuQuantity` and `MemoryQuantity` ([#634]). + +[#634]: https://github.com/stackabletech/operator-rs/pull/634 + ## [0.46.0] - 2023-08-08 ### Changed diff --git a/src/cpu.rs b/src/cpu.rs index 8f7807240..005d32e5b 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -1,4 +1,5 @@ use std::{ + iter::Sum, ops::{Add, AddAssign, Div, Mul, MulAssign}, str::FromStr, }; @@ -151,6 +152,12 @@ impl MulAssign for CpuQuantity { } } +impl Sum for CpuQuantity { + fn sum>(iter: I) -> Self { + iter.fold(CpuQuantity { millis: 0 }, CpuQuantity::add) + } +} + #[cfg(test)] mod test { use super::*; diff --git a/src/memory.rs b/src/memory.rs index 2c7c0733b..851f22935 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -356,7 +356,7 @@ impl Add for MemoryQuantity { } } -impl Sum for MemoryQuantity { +impl Sum for MemoryQuantity { fn sum>(iter: I) -> Self { iter.fold( MemoryQuantity { From 11f8e2f19106664ea1bb8787b44ec49b49d62deb Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 14 Aug 2023 15:45:31 +0200 Subject: [PATCH 02/10] fix: Fixed buggy Div, SubAssign and AddAssign for MemoryQuantity (#636) * fix: Fixed buggy Div, SubAssign and AddAssign for MemoryQuantity when left and right side had different units * changelog --- CHANGELOG.md | 5 +++++ src/memory.rs | 27 ++++++++++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f544dcd8..a7965565f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,12 @@ All notable changes to this project will be documented in this file. - Implement `Sum` for `CpuQuantity` and `MemoryQuantity` ([#634]). +### Fixed + +- Fixed buggy `Div`, `SubAssign` and `AddAssign` for `MemoryQuantity` when left and right side had different units ([#636]). + [#634]: https://github.com/stackabletech/operator-rs/pull/634 +[#636]: https://github.com/stackabletech/operator-rs/pull/636 ## [0.46.0] - 2023-08-08 diff --git a/src/memory.rs b/src/memory.rs index 851f22935..4e597c1ca 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -324,6 +324,7 @@ impl Div for MemoryQuantity { type Output = f32; fn div(self, rhs: MemoryQuantity) -> Self::Output { + let rhs = rhs.scale_to(self.unit); self.value / rhs.value } } @@ -341,6 +342,7 @@ impl Sub for MemoryQuantity { impl SubAssign for MemoryQuantity { fn sub_assign(&mut self, rhs: MemoryQuantity) { + let rhs = rhs.scale_to(self.unit); self.value -= rhs.value; } } @@ -370,6 +372,7 @@ impl Sum for MemoryQuantity { impl AddAssign for MemoryQuantity { fn add_assign(&mut self, rhs: MemoryQuantity) { + let rhs = rhs.scale_to(self.unit); self.value += rhs.value; } } @@ -447,12 +450,13 @@ mod test { use rstest::rstest; #[rstest] - #[case("256Ki", MemoryQuantity { value: 256f32, unit: BinaryMultiple::Kibi })] - #[case("8Mi", MemoryQuantity { value: 8f32, unit: BinaryMultiple::Mebi })] - #[case("1.5Gi", MemoryQuantity { value: 1.5f32, unit: BinaryMultiple::Gibi })] - #[case("0.8Ti", MemoryQuantity { value: 0.8f32, unit: BinaryMultiple::Tebi })] - #[case("3.2Pi", MemoryQuantity { value: 3.2f32, unit: BinaryMultiple::Pebi })] - #[case("0.2Ei", MemoryQuantity { value: 0.2f32, unit: BinaryMultiple::Exbi })] + #[case("256Ki", MemoryQuantity { value: 256.0, unit: BinaryMultiple::Kibi })] + #[case("49041204Ki", MemoryQuantity { value: 49041204.0, unit: BinaryMultiple::Kibi })] + #[case("8Mi", MemoryQuantity { value: 8.0, unit: BinaryMultiple::Mebi })] + #[case("1.5Gi", MemoryQuantity { value: 1.5, unit: BinaryMultiple::Gibi })] + #[case("0.8Ti", MemoryQuantity { value: 0.8, unit: BinaryMultiple::Tebi })] + #[case("3.2Pi", MemoryQuantity { value: 3.2, unit: BinaryMultiple::Pebi })] + #[case("0.2Ei", MemoryQuantity { value: 0.2, unit: BinaryMultiple::Exbi })] fn test_memory_parse(#[case] input: &str, #[case] output: MemoryQuantity) { let got = input.parse::().unwrap(); assert_eq!(got, output); @@ -566,7 +570,16 @@ mod test { let rhs = MemoryQuantity::try_from(Quantity(rhs.to_owned())).unwrap(); let expected = MemoryQuantity::try_from(Quantity(res.to_owned())).unwrap(); let actual = lhs + rhs; - assert_eq!(expected, actual) + assert_eq!(expected, actual); + + let mut actual = MemoryQuantity::from_mebi(0.0); + actual += lhs; + actual += rhs; + assert_eq!(expected, actual); + + actual -= lhs; + actual -= rhs; + assert_eq!(MemoryQuantity::from_mebi(0.0), actual); } #[rstest] From b5b2ec669962ef677899224fd8f9e2c071397040 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 14 Aug 2023 15:58:19 +0200 Subject: [PATCH 03/10] refactor: Test (#637) Leftover of #636 --- CHANGELOG.md | 3 ++- src/memory.rs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7965565f..349f04c22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,11 @@ All notable changes to this project will be documented in this file. ### Fixed -- Fixed buggy `Div`, `SubAssign` and `AddAssign` for `MemoryQuantity` when left and right side had different units ([#636]). +- Fixed buggy `Div`, `SubAssign` and `AddAssign` for `MemoryQuantity` when left and right side had different units ([#636], [#637]). [#634]: https://github.com/stackabletech/operator-rs/pull/634 [#636]: https://github.com/stackabletech/operator-rs/pull/636 +[#637]: https://github.com/stackabletech/operator-rs/pull/637 ## [0.46.0] - 2023-08-08 diff --git a/src/memory.rs b/src/memory.rs index 4e597c1ca..0da9c7f30 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -557,7 +557,11 @@ mod test { let rhs = MemoryQuantity::try_from(Quantity(rhs.to_owned())).unwrap(); let expected = MemoryQuantity::try_from(Quantity(res.to_owned())).unwrap(); let actual = lhs - rhs; - assert_eq!(expected, actual) + assert_eq!(expected, actual); + + let mut actual = lhs; + actual -= rhs; + assert_eq!(expected, actual); } #[rstest] @@ -576,10 +580,6 @@ mod test { actual += lhs; actual += rhs; assert_eq!(expected, actual); - - actual -= lhs; - actual -= rhs; - assert_eq!(MemoryQuantity::from_mebi(0.0), actual); } #[rstest] From f22ac39dc04991d701b566f8f0140700c3fe1771 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Tue, 15 Aug 2023 09:28:08 +0200 Subject: [PATCH 04/10] Switch from openssl to rustls (#635) * Switch openssl to rustls We can do so, because https://github.com/rustls/rustls/issues/184 was resolved * changelog * Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ Cargo.toml | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 349f04c22..c0448a786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,16 @@ All notable changes to this project will be documented in this file. - Implement `Sum` for `CpuQuantity` and `MemoryQuantity` ([#634]). +### Changed + +- Switch from `openssl` to `rustls` ([#635]). + ### Fixed - Fixed buggy `Div`, `SubAssign` and `AddAssign` for `MemoryQuantity` when left and right side had different units ([#636], [#637]). [#634]: https://github.com/stackabletech/operator-rs/pull/634 +[#635]: https://github.com/stackabletech/operator-rs/pull/635 [#636]: https://github.com/stackabletech/operator-rs/pull/636 [#637]: https://github.com/stackabletech/operator-rs/pull/637 diff --git a/Cargo.toml b/Cargo.toml index 0722a7111..12c53d888 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,12 +18,16 @@ repository.workspace = true chrono = { version = "0.4.26", default-features = false } clap = { version = "4.3.19", features = ["derive", "cargo", "env"] } const_format = "0.2.31" +derivative = "2.2.0" either = "1.9.0" futures = "0.3.28" json-patch = "1.0.0" k8s-openapi = { version = "0.19.0", default-features = false, features = ["schemars", "v1_27"] } -kube = { version = "0.85.0", features = ["jsonpatch", "runtime", "derive"] } +# We use rustls instead of openssl for easier portablitly, e.g. so that we can build stackablectl without the need to vendor (build from source) openssl +kube = { version = "0.85.0", default-features = false, features = ["client", "jsonpatch", "runtime", "derive", "rustls-tls"] } lazy_static = "1.4.0" +opentelemetry = { version = "0.20.0", features = ["rt-tokio"] } +opentelemetry-jaeger = { version = "0.19.0", features = ["rt-tokio"] } product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.4.0" } rand = "0.8.5" regex = "1.9.3" @@ -31,17 +35,14 @@ schemars = "0.8.12" serde = { version = "=1.0.171", features = ["derive"] } # We need to pin 1.0.171 as of now, as otherwise Nix builds break because of https://github.com/serde-rs/serde/issues/2538 serde_json = "1.0.104" serde_yaml = "0.9.25" +snafu = "0.7.5" +stackable-operator-derive = { path = "stackable-operator-derive" } strum = { version = "0.25.0", features = ["derive"] } thiserror = "1.0.44" tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] } tracing = "0.1.37" -tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } -derivative = "2.2.0" tracing-opentelemetry = "0.20.0" -opentelemetry = { version = "0.20.0", features = ["rt-tokio"] } -opentelemetry-jaeger = { version = "0.19.0", features = ["rt-tokio"] } -stackable-operator-derive = { path = "stackable-operator-derive" } -snafu = "0.7.5" +tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } [dev-dependencies] rstest = "0.18.1" From 2416f89f2dc52dfb2f43da1f95998567b1069d84 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Tue, 15 Aug 2023 11:30:09 +0200 Subject: [PATCH 05/10] feat: Implement Display for MemoryQuantity (#638) * feat: Implement Display for MemoryQuantity * changelog * Update CHANGELOG.md Co-authored-by: Techassi --------- Co-authored-by: Techassi --- CHANGELOG.md | 2 ++ src/memory.rs | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0448a786..0ec85bbe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. ### Added +- Implement `Display` for `MemoryQuantity` ([#638]). - Implement `Sum` for `CpuQuantity` and `MemoryQuantity` ([#634]). ### Changed @@ -20,6 +21,7 @@ All notable changes to this project will be documented in this file. [#635]: https://github.com/stackabletech/operator-rs/pull/635 [#636]: https://github.com/stackabletech/operator-rs/pull/636 [#637]: https://github.com/stackabletech/operator-rs/pull/637 +[#638]: https://github.com/stackabletech/operator-rs/pull/638 ## [0.46.0] - 2023-08-08 diff --git a/src/memory.rs b/src/memory.rs index 0da9c7f30..b16a6248c 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -414,6 +414,12 @@ impl FromStr for MemoryQuantity { } } +impl Display for MemoryQuantity { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}{}", self.value, self.unit) + } +} + impl TryFrom for MemoryQuantity { type Error = Error; @@ -438,7 +444,7 @@ impl From for Quantity { impl From<&MemoryQuantity> for Quantity { fn from(quantity: &MemoryQuantity) -> Self { - Quantity(format!("{}{}", quantity.value, quantity.unit)) + Quantity(format!("{}", quantity)) } } @@ -462,6 +468,18 @@ mod test { assert_eq!(got, output); } + #[rstest] + #[case("256Ki")] + #[case("1.6Mi")] + #[case("1.2Gi")] + #[case("1.6Gi")] + #[case("1Gi")] + pub fn test_fmt(#[case] q: String) { + let m = MemoryQuantity::try_from(Quantity(q.clone())).unwrap(); + let actual = format!("{m}"); + assert_eq!(q, actual); + } + #[rstest] #[case("256Ki", 1.0, "-Xmx256k")] #[case("256Ki", 0.8, "-Xmx205k")] From f4d757a0dbb742359aa9a8c19ae67f01cf9c13ce Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Wed, 16 Aug 2023 10:01:21 +0200 Subject: [PATCH 06/10] Bump product-config to 0.5.0 (#639) * Bump product-config to 0.5.0 * changelog --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ec85bbe0..60ed8350b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. ### Changed - Switch from `openssl` to `rustls` ([#635]). +- Bump `product-config`` 0.4.0 -> 0.5.0 ([#639]). ### Fixed @@ -22,6 +23,7 @@ All notable changes to this project will be documented in this file. [#636]: https://github.com/stackabletech/operator-rs/pull/636 [#637]: https://github.com/stackabletech/operator-rs/pull/637 [#638]: https://github.com/stackabletech/operator-rs/pull/638 +[#639]: https://github.com/stackabletech/operator-rs/pull/639 ## [0.46.0] - 2023-08-08 diff --git a/Cargo.toml b/Cargo.toml index 12c53d888..668fa7f20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ kube = { version = "0.85.0", default-features = false, features = ["client", "js lazy_static = "1.4.0" opentelemetry = { version = "0.20.0", features = ["rt-tokio"] } opentelemetry-jaeger = { version = "0.19.0", features = ["rt-tokio"] } -product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.4.0" } +product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.5.0" } rand = "0.8.5" regex = "1.9.3" schemars = "0.8.12" From b58f31eb70cd295d882367e13cf60a538ff79b51 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Wed, 16 Aug 2023 10:34:52 +0200 Subject: [PATCH 07/10] Releae 0.47.0 (#640) --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60ed8350b..2233c3e21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.47.0] - 2023-08-16 + ### Added - Implement `Display` for `MemoryQuantity` ([#638]). diff --git a/Cargo.toml b/Cargo.toml index 668fa7f20..882124580 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.46.0" +version = "0.47.0" authors = ["Stackable GmbH "] license = "Apache-2.0" edition = "2021" From 8b4ac8b1ef71d59c648beb44ae14ca185060ef84 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Wed, 16 Aug 2023 14:47:23 +0200 Subject: [PATCH 08/10] Add PodBuilder::termination_grace_period_seconds (#641) * Add PodBuilder::termination_grace_period_seconds * changelog * Add lifecycles --- CHANGELOG.md | 7 +++++ src/builder/pod/container.rs | 54 ++++++++++++++++++++++++++++++++++-- src/builder/pod/mod.rs | 12 ++++++++ 3 files changed, 71 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2233c3e21..b3ad41594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Added + +- Add `PodBuilder::termination_grace_period_seconds` ([#641]). +- Add support for adding `lifecycle`s to `ContainerBuilder` ([#641]). + +[#641]: https://github.com/stackabletech/operator-rs/pull/641 + ## [0.47.0] - 2023-08-16 ### Added diff --git a/src/builder/pod/container.rs b/src/builder/pod/container.rs index f7d7a1d94..0f04ed577 100644 --- a/src/builder/pod/container.rs +++ b/src/builder/pod/container.rs @@ -1,6 +1,7 @@ use k8s_openapi::api::core::v1::{ - ConfigMapKeySelector, Container, ContainerPort, EnvVar, EnvVarSource, ObjectFieldSelector, - Probe, ResourceRequirements, SecretKeySelector, SecurityContext, VolumeMount, + ConfigMapKeySelector, Container, ContainerPort, EnvVar, EnvVarSource, Lifecycle, + LifecycleHandler, ObjectFieldSelector, Probe, ResourceRequirements, SecretKeySelector, + SecurityContext, VolumeMount, }; use std::fmt; @@ -26,6 +27,7 @@ pub struct ContainerBuilder { readiness_probe: Option, liveness_probe: Option, startup_probe: Option, + lifecycle: Option, security_context: Option, } @@ -213,6 +215,23 @@ impl ContainerBuilder { self } + pub fn lifecycle(&mut self, lifecycle: Lifecycle) -> &mut Self { + self.lifecycle = Some(lifecycle); + self + } + + pub fn lifecycle_post_start(&mut self, post_start: LifecycleHandler) -> &mut Self { + self.lifecycle + .get_or_insert(Lifecycle::default()) + .post_start = Some(post_start); + self + } + + pub fn lifecycle_pre_stop(&mut self, pre_stop: LifecycleHandler) -> &mut Self { + self.lifecycle.get_or_insert(Lifecycle::default()).pre_stop = Some(pre_stop); + self + } + pub fn security_context(&mut self, context: SecurityContext) -> &mut Self { self.security_context = Some(context); self @@ -237,6 +256,7 @@ impl ContainerBuilder { readiness_probe: self.readiness_probe.clone(), liveness_probe: self.liveness_probe.clone(), startup_probe: self.startup_probe.clone(), + lifecycle: self.lifecycle.clone(), security_context: self.security_context.clone(), ..Container::default() } @@ -331,6 +351,8 @@ impl fmt::Display for FieldPathEnvVar { #[cfg(test)] mod tests { + use k8s_openapi::api::core::v1::ExecAction; + use super::*; use crate::{ builder::{ @@ -400,6 +422,34 @@ mod tests { assert_eq!(container.resources, Some(resources)); } + #[test] + fn test_container_builder_lifecycle() { + let post_start = LifecycleHandler { + exec: Some(ExecAction { + command: Some(vec!["hello".to_string(), "world".to_string()]), + }), + ..Default::default() + }; + let pre_stop = LifecycleHandler { + exec: Some(ExecAction { + command: Some(vec!["bye".to_string(), "bye".to_string()]), + }), + ..Default::default() + }; + let container = ContainerBuilder::new("testcontainer") + .expect("ContainerBuilder not created") + .lifecycle_post_start(post_start.clone()) + .lifecycle_pre_stop(pre_stop.clone()) + .build(); + assert_eq!( + container.lifecycle, + Some(Lifecycle { + post_start: Some(post_start), + pre_stop: Some(pre_stop) + }) + ); + } + #[test] fn test_container_port_builder() { let port: i32 = 10000; diff --git a/src/builder/pod/mod.rs b/src/builder/pod/mod.rs index cb95ddabf..d366c8220 100644 --- a/src/builder/pod/mod.rs +++ b/src/builder/pod/mod.rs @@ -44,6 +44,7 @@ pub struct PodBuilder { service_account_name: Option, image_pull_secrets: Option>, restart_policy: Option, + termination_grace_period_seconds: Option, } impl PodBuilder { @@ -451,6 +452,14 @@ impl PodBuilder { self } + pub fn termination_grace_period_seconds( + &mut self, + termination_grace_period_seconds: i64, + ) -> &mut Self { + self.termination_grace_period_seconds = Some(termination_grace_period_seconds); + self + } + /// Consumes the Builder and returns a constructed [`Pod`] pub fn build(&self) -> OperatorResult { Ok(Pod { @@ -498,6 +507,7 @@ impl PodBuilder { service_account_name: self.service_account_name.clone(), image_pull_secrets: self.image_pull_secrets.clone(), restart_policy: self.restart_policy.clone(), + termination_grace_period_seconds: self.termination_grace_period_seconds, ..PodSpec::default() }; @@ -627,6 +637,7 @@ mod tests { .with_config_map("configmap") .build(), ) + .termination_grace_period_seconds(42) .build() .unwrap(); @@ -654,6 +665,7 @@ mod tests { .and_then(|volume| volume.config_map.as_ref()?.name.clone())), Some("configmap".to_string()) ); + assert_eq!(pod_spec.termination_grace_period_seconds, Some(42)); } #[rstest] From ad0aed7c4df39dd6b2c4c81a8f6ca184025550cf Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 18 Aug 2023 09:15:23 +0200 Subject: [PATCH 09/10] Release 0.48.0 (#642) --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3ad41594..72703f880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.48.0] - 2023-08-18 + ### Added - Add `PodBuilder::termination_grace_period_seconds` ([#641]). diff --git a/Cargo.toml b/Cargo.toml index 882124580..9ce93d752 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.47.0" +version = "0.48.0" authors = ["Stackable GmbH "] license = "Apache-2.0" edition = "2021" From 89d655f2457fe81d3ae0b991c1e8becb5bb1274a Mon Sep 17 00:00:00 2001 From: Natalie Date: Mon, 21 Aug 2023 15:47:09 +0200 Subject: [PATCH 10/10] Unpin serde (#643) The prebuilt binary has been dropped in 1.0.184. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9ce93d752..c247e62e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ product-config = { git = "https://github.com/stackabletech/product-config.git", rand = "0.8.5" regex = "1.9.3" schemars = "0.8.12" -serde = { version = "=1.0.171", features = ["derive"] } # We need to pin 1.0.171 as of now, as otherwise Nix builds break because of https://github.com/serde-rs/serde/issues/2538 +serde = { version = "1.0.184", features = ["derive"] } serde_json = "1.0.104" serde_yaml = "0.9.25" snafu = "0.7.5"