diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05d2bd569..21b5d6fb1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: '0' CARGO_PROFILE_DEV_DEBUG: '0' - RUST_TOOLCHAIN_VERSION: "1.68.2" + RUST_TOOLCHAIN_VERSION: "1.71.0" RUSTFLAGS: "-D warnings" RUSTDOCFLAGS: "-D warnings" RUST_LOG: "info" diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eec898a4..cd10a4f90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.46.0] - 2023-08-08 + ### Changed - Bump all dependencies (including kube and k8s-openapi) ([#632]). +- Bump Rust version to 0.71.0 ([#633]). +- Refactor Cargo.toml's to share workspace configuration, such as version and license ([#633]). [#632]: https://github.com/stackabletech/operator-rs/pull/632 +[#633]: https://github.com/stackabletech/operator-rs/pull/633 ## [0.45.1] - 2023-08-01 diff --git a/Cargo.toml b/Cargo.toml index 1c28f8a62..0722a7111 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,19 @@ -[package] +[workspace.package] +version = "0.46.0" authors = ["Stackable GmbH "] -description = "Stackable Operator Framework" -edition = "2021" license = "Apache-2.0" -name = "stackable-operator" -version = "0.45.1" +edition = "2021" repository = "https://github.com/stackabletech/operator-rs" +[package] +name = "stackable-operator" +description = "Stackable Operator Framework" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true + [dependencies] chrono = { version = "0.4.26", default-features = false } clap = { version = "4.3.19", features = ["derive", "cargo", "env"] } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 864d3c411..aa464261d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.68.2" +channel = "1.71.0" diff --git a/src/builder/pod/mod.rs b/src/builder/pod/mod.rs index d54d6b110..cb95ddabf 100644 --- a/src/builder/pod/mod.rs +++ b/src/builder/pod/mod.rs @@ -143,7 +143,7 @@ impl PodBuilder { } pub fn phase(&mut self, phase: &str) -> &mut Self { - let mut status = self.status.get_or_insert_with(PodStatus::default); + let status = self.status.get_or_insert_with(PodStatus::default); status.phase = Some(phase.to_string()); self } diff --git a/src/builder/pod/security.rs b/src/builder/pod/security.rs index 62fa89f45..24896da45 100644 --- a/src/builder/pod/security.rs +++ b/src/builder/pod/security.rs @@ -63,7 +63,7 @@ impl SecurityContextBuilder { } pub fn se_linux_level(&mut self, level: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .se_linux_options .get_or_insert_with(SELinuxOptions::default); @@ -71,7 +71,7 @@ impl SecurityContextBuilder { self } pub fn se_linux_role(&mut self, role: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .se_linux_options .get_or_insert_with(SELinuxOptions::default); @@ -80,7 +80,7 @@ impl SecurityContextBuilder { } pub fn se_linux_type(&mut self, type_: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .se_linux_options .get_or_insert_with(SELinuxOptions::default); @@ -89,7 +89,7 @@ impl SecurityContextBuilder { } pub fn se_linux_user(&mut self, user: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .se_linux_options .get_or_insert_with(SELinuxOptions::default); @@ -98,7 +98,7 @@ impl SecurityContextBuilder { } pub fn seccomp_profile_localhost(&mut self, profile: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .seccomp_profile .get_or_insert_with(SeccompProfile::default); @@ -107,7 +107,7 @@ impl SecurityContextBuilder { } pub fn seccomp_profile_type(&mut self, type_: impl Into) -> &mut Self { - let mut sc = self + let sc = self .security_context .seccomp_profile .get_or_insert_with(SeccompProfile::default); @@ -116,7 +116,7 @@ impl SecurityContextBuilder { } pub fn win_credential_spec(&mut self, spec: impl Into) -> &mut Self { - let mut wo = self + let wo = self .security_context .windows_options .get_or_insert_with(WindowsSecurityContextOptions::default); @@ -125,7 +125,7 @@ impl SecurityContextBuilder { } pub fn win_credential_spec_name(&mut self, name: impl Into) -> &mut Self { - let mut wo = self + let wo = self .security_context .windows_options .get_or_insert_with(WindowsSecurityContextOptions::default); @@ -134,7 +134,7 @@ impl SecurityContextBuilder { } pub fn win_run_as_user_name(&mut self, name: impl Into) -> &mut Self { - let mut wo = self + let wo = self .security_context .windows_options .get_or_insert_with(WindowsSecurityContextOptions::default); diff --git a/stackable-operator-derive/Cargo.toml b/stackable-operator-derive/Cargo.toml index a6a2136d9..e5732d9bd 100644 --- a/stackable-operator-derive/Cargo.toml +++ b/stackable-operator-derive/Cargo.toml @@ -1,11 +1,11 @@ [package] -authors = ["Stackable GmbH "] -description = "Stackable Operator Framework" -edition = "2021" -license = "Apache-2.0" name = "stackable-operator-derive" -version = "0.45.1" -repository = "https://github.com/stackabletech/operator-rs" +description = "Derive macros for the Stackable Operator Framework" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true [lib] proc-macro = true