Skip to content

Commit df018e1

Browse files
committed
chore: Bump stackable-operator and use re-exports
1 parent 06ef4a8 commit df018e1

File tree

9 files changed

+81
-60
lines changed

9 files changed

+81
-60
lines changed

Cargo.lock

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 48 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ repository = "https://github.com/stackabletech/zookeeper-operator"
1111

1212
[workspace.dependencies]
1313
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.7.0" }
14-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.90.0" }
15-
stackable-telemetry = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-telemetry-0.4.0" }
16-
stackable-versioned = { git = "https://github.com/stackabletech/operator-rs.git", features = ["k8s"], tag = "stackable-versioned-0.7.1" }
14+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.91.1" }
1715

1816
anyhow = "1.0"
1917
built = { version = "0.7", features = ["chrono", "git2"] }

crate-hashes.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/operator-binary/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ build = "build.rs"
1212
[dependencies]
1313
product-config.workspace = true
1414
stackable-operator.workspace = true
15-
stackable-telemetry.workspace = true
16-
stackable-versioned.workspace = true
1715

1816
anyhow.workspace = true
1917
clap.workspace = true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use stackable_operator::{
44
client::Client,
55
commons::authentication::{AuthenticationClass, AuthenticationClassProvider},
66
schemars::{self, JsonSchema},
7+
versioned::versioned,
78
};
8-
use stackable_versioned::versioned;
99

1010
use crate::crd::ObjectRef;
1111

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use stackable_operator::{
3030
status::condition::{ClusterCondition, HasStatusCondition},
3131
time::Duration,
3232
utils::cluster_info::KubernetesClusterInfo,
33+
versioned::versioned,
3334
};
34-
use stackable_versioned::versioned;
3535
use strum::{Display, EnumIter, EnumString, IntoEnumIterator};
3636

3737
use crate::crd::affinity::get_affinity;

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use serde::{Deserialize, Serialize};
2-
use stackable_operator::schemars::{self, JsonSchema};
3-
use stackable_versioned::versioned;
2+
use stackable_operator::{
3+
schemars::{self, JsonSchema},
4+
versioned::versioned,
5+
};
46

57
const TLS_DEFAULT_SECRET_CLASS: &str = "tls";
68

rust/operator-binary/src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use std::{ops::Deref as _, sync::Arc};
1+
use std::sync::Arc;
22

33
use clap::Parser;
44
use crd::{APP_NAME, OPERATOR_NAME, ZookeeperCluster, ZookeeperZnode, v1alpha1};
55
use futures::{StreamExt, pin_mut};
66
use stackable_operator::{
77
YamlSchema,
8-
cli::{Command, ProductOperatorRun, RollingPeriod},
8+
cli::{Command, ProductOperatorRun},
99
k8s_openapi::api::{
1010
apps::v1::StatefulSet,
1111
core::v1::{ConfigMap, Endpoints, Service},
@@ -22,8 +22,11 @@ use stackable_operator::{
2222
},
2323
logging::controller::report_controller_reconciled,
2424
shared::yaml::SerializeOptions,
25+
telemetry::{
26+
Tracing,
27+
tracing::{RollingPeriod, settings::Settings},
28+
},
2529
};
26-
use stackable_telemetry::{Tracing, tracing::settings::Settings};
2730
use tracing::level_filters::LevelFilter;
2831

2932
use crate::{zk_controller::ZK_FULL_CONTROLLER_NAME, znode_controller::ZNODE_FULL_CONTROLLER_NAME};
@@ -83,7 +86,6 @@ async fn main() -> anyhow::Result<()> {
8386
let rotation_period = telemetry_arguments
8487
.rolling_logs_period
8588
.unwrap_or(RollingPeriod::Never)
86-
.deref()
8789
.clone();
8890

8991
Settings::builder()

0 commit comments

Comments
 (0)