Skip to content

Commit 4a8f1ef

Browse files
committed
fix tests
1 parent 499816f commit 4a8f1ef

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

Cargo.lock

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

crates/stackable-operator/src/builder/pod/probe.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! ```
1010
//! use stackable_operator::{
1111
//! builder::pod::probe::ProbeBuilder,
12-
//! time::Duration,
12+
//! shared::time::Duration,
1313
//! };
1414
//! # use k8s_openapi::api::core::v1::HTTPGetAction;
1515
//! # use k8s_openapi::apimachinery::pkg::util::intstr::IntOrString;
@@ -36,8 +36,7 @@ use k8s_openapi::{
3636
apimachinery::pkg::util::intstr::IntOrString,
3737
};
3838
use snafu::{ResultExt, Snafu, ensure};
39-
40-
use crate::time::Duration;
39+
use stackable_shared::time::Duration;
4140

4241
#[derive(Debug, Snafu)]
4342
pub enum Error {

crates/stackable-webhook/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ repository.workspace = true
88

99
[dependencies]
1010
stackable-certs = { path = "../stackable-certs", features = ["rustls"] }
11+
stackable-shared = { path = "../stackable-shared" }
1112
stackable-telemetry = { path = "../stackable-telemetry" }
1213

1314
arc-swap.workspace = true

crates/stackable-webhook/src/servers/conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub enum ConversionWebhookError {
5252

5353
#[snafu(display("failed to update CRD {crd_name:?}"))]
5454
UpdateCrd {
55-
source: stackable_operator::kube::Error,
55+
source: kube::Error,
5656
crd_name: String,
5757
},
5858
}

crates/stackable-webhook/src/tls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use hyper_util::rt::{TokioExecutor, TokioIo};
1212
use opentelemetry::trace::{FutureExt, SpanKind};
1313
use opentelemetry_semantic_conventions as semconv;
1414
use snafu::{ResultExt, Snafu};
15-
use stackable_operator::time::Duration;
15+
use stackable_shared::time::Duration;
1616
use tokio::{
1717
net::{TcpListener, TcpStream},
1818
sync::mpsc,

0 commit comments

Comments
 (0)