Skip to content

Commit 586700e

Browse files
committed
chore: Merge remote-tracking branch 'origin/main' into feat/stackable-telemetry
2 parents 439ede5 + 28afe81 commit 586700e

File tree

16 files changed

+120
-126
lines changed

16 files changed

+120
-126
lines changed

.github/PULL_REQUEST_TEMPLATE/pre-release-rust-deps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bump Rust Dependencies for Stackable Release XX.(X)X
1+
# Bump Rust Dependencies for Stackable Release YY.M.X
22

33
<!--
44
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-operator-rust-deps.md'
@@ -32,7 +32,7 @@ Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>
3232
3333
```[tasklist]
3434
### Bump Rust Dependencies
35-
- [ ] Bump `stackable-operator` and friends.
36-
- [ ] Bump `product-version`.
37-
- [ ] Bump all other dependencies.
35+
- [ ] Bump `stackable-operator` and friends
36+
- [ ] Bump `product-config`
37+
- [ ] Bump all other dependencies
3838
```

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ env:
2626
CARGO_TERM_COLOR: always
2727
CARGO_INCREMENTAL: '0'
2828
CARGO_PROFILE_DEV_DEBUG: '0'
29-
RUST_TOOLCHAIN_VERSION: "1.84.1"
29+
RUST_TOOLCHAIN_VERSION: "1.85.0"
30+
RUST_NIGHTLY_TOOLCHAIN_VERSION: "nightly-2025-01-15"
3031
PYTHON_VERSION: "3.12"
3132
RUSTFLAGS: "-D warnings"
3233
RUSTDOCFLAGS: "-D warnings"
@@ -136,9 +137,11 @@ jobs:
136137
submodules: recursive
137138
- uses: dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
138139
with:
139-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
140+
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
140141
components: rustfmt
141-
- run: cargo fmt --all -- --check
142+
- env:
143+
RUST_TOOLCHAIN_VERSION: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
144+
run: cargo "+$RUST_TOOLCHAIN_VERSION" fmt --all -- --check
142145

143146
run_clippy:
144147
name: Run Clippy

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rust-analyzer.rustfmt.overrideCommand": [
3+
"rustfmt",
4+
"+nightly-2025-01-15",
5+
"--"
6+
],
7+
}

deny.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ ignore = [
2929
#
3030
# TODO: Remove after https://github.com/kube-rs/kube/pull/1652 is merged
3131
"RUSTSEC-2024-0384",
32-
33-
# https://rustsec.org/advisories/RUSTSEC-2025-0012
34-
# "backoff" is unmainted.
35-
#
36-
# Upstream (kube) has switched to backon in 0.99.0, and an upgrade is scheduled on our end. In the meantime,
37-
# this is a very low-severity problem.
38-
#
39-
# TODO: Remove after upgrading to kube 0.99.
40-
"RUSTSEC-2025-0012",
4132
]
4233

4334
[bans]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# DO NOT EDIT, this file is generated by operator-templating
22
[toolchain]
3-
channel = "1.84.1"
3+
channel = "1.85.0"

rust/olm-deployer/src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use anyhow::{anyhow, Context};
2-
use stackable_operator::kube::{api::DynamicObject, ResourceExt};
1+
use anyhow::{Context, anyhow};
2+
use stackable_operator::kube::{ResourceExt, api::DynamicObject};
33

44
pub fn container<'a>(
55
target: &'a mut DynamicObject,

rust/olm-deployer/src/env/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use stackable_operator::{
22
k8s_openapi::api::{apps::v1::Deployment, core::v1::EnvVar},
33
kube::{
4-
api::{DynamicObject, GroupVersionKind},
54
ResourceExt,
5+
api::{DynamicObject, GroupVersionKind},
66
},
77
};
88

rust/olm-deployer/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ mod owner;
1717
mod resources;
1818
mod tolerations;
1919

20-
use anyhow::{anyhow, bail, Context, Result};
21-
use clap::{crate_description, crate_version, Parser};
20+
use anyhow::{Context, Result, anyhow, bail};
21+
use clap::{Parser, crate_description, crate_version};
2222
use stackable_operator::{
2323
cli::Command,
2424
client,

rust/olm-deployer/src/owner/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use stackable_operator::{
55
apimachinery::pkg::apis::meta::v1::OwnerReference,
66
},
77
kube::{
8+
Resource,
89
api::{DynamicObject, ResourceExt},
910
discovery::Scope,
10-
Resource,
1111
},
1212
};
1313

rust/olm-deployer/src/resources/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use stackable_operator::{
22
k8s_openapi::api::{apps::v1::Deployment, core::v1::ResourceRequirements},
33
kube::{
4-
api::{DynamicObject, GroupVersionKind},
54
ResourceExt,
5+
api::{DynamicObject, GroupVersionKind},
66
},
77
};
88

0 commit comments

Comments
 (0)