Skip to content

Commit c88fbe2

Browse files
authored
Release 0.46.0 and bump Rust version (#633)
* Use workspace member configs * bump rust to 1.71.0 * Release 0.46.0 * changelog * bump rust version * Update description of stackable-operator-derive package
1 parent f632df5 commit c88fbe2

File tree

7 files changed

+35
-23
lines changed

7 files changed

+35
-23
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
CARGO_TERM_COLOR: always
1818
CARGO_INCREMENTAL: '0'
1919
CARGO_PROFILE_DEV_DEBUG: '0'
20-
RUST_TOOLCHAIN_VERSION: "1.68.2"
20+
RUST_TOOLCHAIN_VERSION: "1.71.0"
2121
RUSTFLAGS: "-D warnings"
2222
RUSTDOCFLAGS: "-D warnings"
2323
RUST_LOG: "info"

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [0.46.0] - 2023-08-08
8+
79
### Changed
810

911
- Bump all dependencies (including kube and k8s-openapi) ([#632]).
12+
- Bump Rust version to 0.71.0 ([#633]).
13+
- Refactor Cargo.toml's to share workspace configuration, such as version and license ([#633]).
1014

1115
[#632]: https://github.com/stackabletech/operator-rs/pull/632
16+
[#633]: https://github.com/stackabletech/operator-rs/pull/633
1217

1318
## [0.45.1] - 2023-08-01
1419

Cargo.toml

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
[package]
1+
[workspace.package]
2+
version = "0.46.0"
23
authors = ["Stackable GmbH <info@stackable.de>"]
3-
description = "Stackable Operator Framework"
4-
edition = "2021"
54
license = "Apache-2.0"
6-
name = "stackable-operator"
7-
version = "0.45.1"
5+
edition = "2021"
86
repository = "https://github.com/stackabletech/operator-rs"
97

8+
[package]
9+
name = "stackable-operator"
10+
description = "Stackable Operator Framework"
11+
version.workspace = true
12+
authors.workspace = true
13+
license.workspace = true
14+
edition.workspace = true
15+
repository.workspace = true
16+
1017
[dependencies]
1118
chrono = { version = "0.4.26", default-features = false }
1219
clap = { version = "4.3.19", features = ["derive", "cargo", "env"] }

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.68.2"
2+
channel = "1.71.0"

src/builder/pod/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl PodBuilder {
143143
}
144144

145145
pub fn phase(&mut self, phase: &str) -> &mut Self {
146-
let mut status = self.status.get_or_insert_with(PodStatus::default);
146+
let status = self.status.get_or_insert_with(PodStatus::default);
147147
status.phase = Some(phase.to_string());
148148
self
149149
}

src/builder/pod/security.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ impl SecurityContextBuilder {
6363
}
6464

6565
pub fn se_linux_level(&mut self, level: impl Into<String>) -> &mut Self {
66-
let mut sc = self
66+
let sc = self
6767
.security_context
6868
.se_linux_options
6969
.get_or_insert_with(SELinuxOptions::default);
7070
sc.level = Some(level.into());
7171
self
7272
}
7373
pub fn se_linux_role(&mut self, role: impl Into<String>) -> &mut Self {
74-
let mut sc = self
74+
let sc = self
7575
.security_context
7676
.se_linux_options
7777
.get_or_insert_with(SELinuxOptions::default);
@@ -80,7 +80,7 @@ impl SecurityContextBuilder {
8080
}
8181

8282
pub fn se_linux_type(&mut self, type_: impl Into<String>) -> &mut Self {
83-
let mut sc = self
83+
let sc = self
8484
.security_context
8585
.se_linux_options
8686
.get_or_insert_with(SELinuxOptions::default);
@@ -89,7 +89,7 @@ impl SecurityContextBuilder {
8989
}
9090

9191
pub fn se_linux_user(&mut self, user: impl Into<String>) -> &mut Self {
92-
let mut sc = self
92+
let sc = self
9393
.security_context
9494
.se_linux_options
9595
.get_or_insert_with(SELinuxOptions::default);
@@ -98,7 +98,7 @@ impl SecurityContextBuilder {
9898
}
9999

100100
pub fn seccomp_profile_localhost(&mut self, profile: impl Into<String>) -> &mut Self {
101-
let mut sc = self
101+
let sc = self
102102
.security_context
103103
.seccomp_profile
104104
.get_or_insert_with(SeccompProfile::default);
@@ -107,7 +107,7 @@ impl SecurityContextBuilder {
107107
}
108108

109109
pub fn seccomp_profile_type(&mut self, type_: impl Into<String>) -> &mut Self {
110-
let mut sc = self
110+
let sc = self
111111
.security_context
112112
.seccomp_profile
113113
.get_or_insert_with(SeccompProfile::default);
@@ -116,7 +116,7 @@ impl SecurityContextBuilder {
116116
}
117117

118118
pub fn win_credential_spec(&mut self, spec: impl Into<String>) -> &mut Self {
119-
let mut wo = self
119+
let wo = self
120120
.security_context
121121
.windows_options
122122
.get_or_insert_with(WindowsSecurityContextOptions::default);
@@ -125,7 +125,7 @@ impl SecurityContextBuilder {
125125
}
126126

127127
pub fn win_credential_spec_name(&mut self, name: impl Into<String>) -> &mut Self {
128-
let mut wo = self
128+
let wo = self
129129
.security_context
130130
.windows_options
131131
.get_or_insert_with(WindowsSecurityContextOptions::default);
@@ -134,7 +134,7 @@ impl SecurityContextBuilder {
134134
}
135135

136136
pub fn win_run_as_user_name(&mut self, name: impl Into<String>) -> &mut Self {
137-
let mut wo = self
137+
let wo = self
138138
.security_context
139139
.windows_options
140140
.get_or_insert_with(WindowsSecurityContextOptions::default);

stackable-operator-derive/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
authors = ["Stackable GmbH <info@stackable.de>"]
3-
description = "Stackable Operator Framework"
4-
edition = "2021"
5-
license = "Apache-2.0"
62
name = "stackable-operator-derive"
7-
version = "0.45.1"
8-
repository = "https://github.com/stackabletech/operator-rs"
3+
description = "Derive macros for the Stackable Operator Framework"
4+
version.workspace = true
5+
authors.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
8+
repository.workspace = true
99

1010
[lib]
1111
proc-macro = true

0 commit comments

Comments
 (0)