Skip to content

Commit 9dc1843

Browse files
committed
main merge
2 parents e6c5571 + fbd2766 commit 9dc1843

File tree

20 files changed

+168
-189
lines changed

20 files changed

+168
-189
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"rust-analyzer.rustfmt.overrideCommand": [
3+
"rustfmt",
4+
"+nightly-2025-01-15",
5+
"--edition",
6+
"2024",
7+
"--"
8+
],
9+
}

deploy/helm/spark-k8s-operator/configs/properties.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

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/operator-binary/src/connect/controller.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use stackable_operator::{
55
cluster_resources::{ClusterResourceApplyStrategy, ClusterResources},
66
commons::rbac::build_rbac_resources,
77
kube::{
8-
core::{error_boundary, DeserializeGuard},
9-
runtime::controller::Action,
108
Resource, ResourceExt,
9+
core::{DeserializeGuard, error_boundary},
10+
runtime::controller::Action,
1111
},
1212
logging::controller::ReconcilerError,
1313
status::condition::{
@@ -18,12 +18,12 @@ use stackable_operator::{
1818
};
1919
use strum::{EnumDiscriminants, IntoStaticStr};
2020

21-
use super::crd::{v1alpha1, CONNECT_CONTROLLER_NAME};
21+
use super::crd::{CONNECT_CONTROLLER_NAME, v1alpha1};
2222
use crate::{
23+
Ctx,
2324
connect::{common, crd::SparkConnectServerStatus, executor, server},
2425
crd::constants::{APP_NAME, OPERATOR_NAME, SPARK_IMAGE_BASE_NAME},
2526
product_logging::{self, resolve_vector_aggregator_address},
26-
Ctx,
2727
};
2828

2929
#[derive(Snafu, Debug, EnumDiscriminants)]

rust/operator-binary/src/connect/crd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
33
use snafu::{ResultExt, Snafu};
44
use stackable_operator::{
55
commons::{
6-
affinity::{affinity_between_role_pods, StackableAffinity, StackableAffinityFragment},
6+
affinity::{StackableAffinity, StackableAffinityFragment, affinity_between_role_pods},
77
cluster_operation::ClusterOperation,
88
product_image_selection::ProductImage,
99
resources::{

rust/operator-binary/src/connect/executor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ use stackable_operator::{
66
self,
77
configmap::ConfigMapBuilder,
88
meta::ObjectMetaBuilder,
9-
pod::{container::ContainerBuilder, volume::VolumeBuilder, PodBuilder},
9+
pod::{PodBuilder, container::ContainerBuilder, volume::VolumeBuilder},
1010
},
1111
commons::{
1212
product_image_selection::ResolvedProductImage,
1313
resources::{CpuLimits, MemoryLimits, Resources},
1414
},
1515
k8s_openapi::{
16-
api::core::v1::{ConfigMap, EnvVar, PodTemplateSpec},
1716
DeepMerge,
17+
api::core::v1::{ConfigMap, EnvVar, PodTemplateSpec},
1818
},
19-
kube::{runtime::reflector::ObjectRef, ResourceExt},
19+
kube::{ResourceExt, runtime::reflector::ObjectRef},
2020
product_logging::framework::calculate_log_volume_size_limit,
2121
role_utils::RoleGroupRef,
2222
};
2323

2424
use super::{
25-
common::{object_name, SparkConnectRole},
26-
crd::{SparkConnectContainer, DUMMY_SPARK_CONNECT_GROUP_NAME},
25+
common::{SparkConnectRole, object_name},
26+
crd::{DUMMY_SPARK_CONNECT_GROUP_NAME, SparkConnectContainer},
2727
};
2828
use crate::{
2929
connect::{common, crd::v1alpha1},

rust/operator-binary/src/connect/server.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ use stackable_operator::{
77
configmap::ConfigMapBuilder,
88
meta::ObjectMetaBuilder,
99
pod::{
10-
container::ContainerBuilder, resources::ResourceRequirementsBuilder,
11-
volume::VolumeBuilder, PodBuilder,
10+
PodBuilder, container::ContainerBuilder, resources::ResourceRequirementsBuilder,
11+
volume::VolumeBuilder,
1212
},
1313
},
1414
commons::product_image_selection::ResolvedProductImage,
1515
k8s_openapi::{
16+
DeepMerge,
1617
api::{
1718
apps::v1::{Deployment, DeploymentSpec},
1819
core::v1::{
@@ -21,20 +22,19 @@ use stackable_operator::{
2122
},
2223
},
2324
apimachinery::pkg::apis::meta::v1::LabelSelector,
24-
DeepMerge,
2525
},
26-
kube::{runtime::reflector::ObjectRef, ResourceExt},
26+
kube::{ResourceExt, runtime::reflector::ObjectRef},
2727
kvp::{Label, Labels},
28-
product_logging::framework::{calculate_log_volume_size_limit, vector_container, LoggingError},
28+
product_logging::framework::{LoggingError, calculate_log_volume_size_limit, vector_container},
2929
role_utils::RoleGroupRef,
3030
};
3131

3232
use crate::{
3333
connect::{
34-
common::{self, object_name, SparkConnectRole},
34+
common::{self, SparkConnectRole, object_name},
3535
crd::{
36-
v1alpha1, SparkConnectContainer, CONNECT_GRPC_PORT, CONNECT_UI_PORT,
37-
DUMMY_SPARK_CONNECT_GROUP_NAME,
36+
CONNECT_GRPC_PORT, CONNECT_UI_PORT, DUMMY_SPARK_CONNECT_GROUP_NAME,
37+
SparkConnectContainer, v1alpha1,
3838
},
3939
},
4040
crd::constants::{

rust/operator-binary/src/crd/affinity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use stackable_operator::{
2-
commons::affinity::{affinity_between_role_pods, StackableAffinityFragment},
2+
commons::affinity::{StackableAffinityFragment, affinity_between_role_pods},
33
k8s_openapi::api::core::v1::PodAntiAffinity,
44
};
55

0 commit comments

Comments
 (0)