Skip to content

Commit c6388b3

Browse files
committed
chore: Bump stackable-operator and use re-exports
1 parent 4956fbd commit c6388b3

File tree

12 files changed

+421
-1390
lines changed

12 files changed

+421
-1390
lines changed

Cargo.lock

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

Cargo.nix

Lines changed: 126 additions & 805 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/opa-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.6.0" }
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
axum = "0.8"

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/bundle-builder/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ publish = false
1313
[dependencies]
1414
stackable-opa-regorule-library = { path = "../regorule-library" }
1515
stackable-operator.workspace = true
16-
stackable-telemetry.workspace = true
1716

1817
axum.workspace = true
1918
clap.workspace = true

rust/bundle-builder/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::{
22
collections::{BTreeMap, BTreeSet},
33
num::TryFromIntError,
4-
ops::Deref as _,
54
sync::{Arc, Mutex},
65
};
76

@@ -15,7 +14,6 @@ use futures::{
1514
};
1615
use snafu::{ResultExt, Snafu};
1716
use stackable_operator::{
18-
cli::RollingPeriod,
1917
k8s_openapi::api::core::v1::ConfigMap,
2018
kube::{
2119
api::ObjectMeta,
@@ -24,8 +22,11 @@ use stackable_operator::{
2422
watcher,
2523
},
2624
},
25+
telemetry::{
26+
Tracing,
27+
tracing::{RollingPeriod, settings::Settings},
28+
},
2729
};
28-
use stackable_telemetry::{Tracing, tracing::settings::Settings};
2930
use tokio::net::TcpListener;
3031
use tracing::level_filters::LevelFilter;
3132

@@ -74,7 +75,7 @@ enum StartupError {
7475

7576
#[snafu(display("failed to initialize stackable-telemetry"))]
7677
TracingInit {
77-
source: stackable_telemetry::tracing::Error,
78+
source: stackable_operator::telemetry::tracing::Error,
7879
},
7980
}
8081

@@ -103,7 +104,6 @@ async fn main() -> Result<(), StartupError> {
103104
.telemetry_arguments
104105
.rolling_logs_period
105106
.unwrap_or(RollingPeriod::Never)
106-
.deref()
107107
.clone();
108108

109109
Settings::builder()

rust/operator-binary/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ publish = false
1111
[dependencies]
1212
product-config.workspace = true
1313
stackable-operator.workspace = true
14-
stackable-telemetry.workspace = true
15-
stackable-versioned.workspace = true
1614

1715
anyhow.workspace = true
1816
clap.workspace = true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use stackable_operator::{
2727
status::condition::{ClusterCondition, HasStatusCondition},
2828
time::Duration,
2929
utils::cluster_info::KubernetesClusterInfo,
30+
versioned::versioned,
3031
};
31-
use stackable_versioned::versioned;
3232
use strum::{Display, EnumIter, EnumString};
3333

3434
pub mod user_info_fetcher;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use stackable_operator::{
55
commons::{networking::HostName, tls_verification::TlsClientDetails},
66
schemars::{self, JsonSchema},
77
time::Duration,
8+
versioned::versioned,
89
};
9-
use stackable_versioned::versioned;
1010

1111
#[versioned(version(name = "v1alpha1"))]
1212
pub mod versioned {

rust/operator-binary/src/main.rs

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

33
use clap::Parser;
44
use futures::StreamExt;
55
use product_config::ProductConfigManager;
66
use stackable_opa_operator::crd::{OPERATOR_NAME, OpaCluster, v1alpha1};
77
use stackable_operator::{
88
YamlSchema,
9-
cli::{Command, ProductOperatorRun, RollingPeriod},
9+
cli::{Command, ProductOperatorRun},
1010
client::{self, Client},
1111
k8s_openapi::api::{
1212
apps::v1::DaemonSet,
@@ -24,8 +24,11 @@ use stackable_operator::{
2424
logging::controller::report_controller_reconciled,
2525
namespace::WatchNamespace,
2626
shared::yaml::SerializeOptions,
27+
telemetry::{
28+
Tracing,
29+
tracing::{RollingPeriod, settings::Settings},
30+
},
2731
};
28-
use stackable_telemetry::{Tracing, tracing::settings::Settings};
2932
use tracing::level_filters::LevelFilter;
3033

3134
use crate::controller::OPA_FULL_CONTROLLER_NAME;
@@ -92,7 +95,6 @@ async fn main() -> anyhow::Result<()> {
9295
let rotation_period = telemetry_arguments
9396
.rolling_logs_period
9497
.unwrap_or(RollingPeriod::Never)
95-
.deref()
9698
.clone();
9799

98100
Settings::builder()

0 commit comments

Comments
 (0)