Skip to content

Commit 91336aa

Browse files
committed
Formatting
1 parent 0985950 commit 91336aa

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tokio-stream = { version = "0.1", features = ["net"] }
2929
tonic = "0.12"
3030
tonic-build = "0.12"
3131
tonic-reflection = "0.12"
32+
tracing = "0.1.40"
3233

3334
# [patch."https://github.com/stackabletech/operator-rs.git"]
3435
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }

rust/operator-binary/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ serde.workspace = true
2727
snafu.workspace = true
2828
strum.workspace = true
2929
h2.workspace = true
30-
tracing = "0.1.40"
30+
tracing.workspace = true
3131

3232
[build-dependencies]
3333
built.workspace = true

rust/operator-binary/src/listener_controller.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,36 +108,45 @@ pub struct Ctx {
108108
pub enum Error {
109109
#[snafu(display("object has no namespace"))]
110110
NoNs,
111+
111112
#[snafu(display("object has no name"))]
112113
NoName,
114+
113115
#[snafu(display("object has no ListenerClass (.spec.class_name)"))]
114116
NoListenerClass,
117+
115118
#[snafu(display("failed to generate Listener's PersistentVolume selector"))]
116119
ListenerPvSelector {
117120
source: ListenerPersistentVolumeLabelError,
118121
},
122+
119123
#[snafu(display("failed to generate Listener's Pod selector"))]
120124
ListenerPodSelector {
121125
source: ListenerMountedPodLabelError,
122126
},
127+
123128
#[snafu(display("failed to get PersistentVolumes for Listener"))]
124129
GetListenerPvs {
125130
source: stackable_operator::client::Error,
126131
},
132+
127133
#[snafu(display("failed to get {obj}"))]
128134
GetObject {
129135
source: stackable_operator::client::Error,
130136
obj: ObjectRef<DynamicObject>,
131137
},
138+
132139
#[snafu(display("failed to build owner reference to Listener"))]
133140
BuildListenerOwnerRef {
134141
source: stackable_operator::builder::meta::Error,
135142
},
143+
136144
#[snafu(display("failed to apply {svc}"))]
137145
ApplyService {
138146
source: stackable_operator::client::Error,
139147
svc: ObjectRef<Service>,
140148
},
149+
141150
#[snafu(display("failed to apply status for Listener"))]
142151
ApplyStatus {
143152
source: stackable_operator::client::Error,
@@ -430,9 +439,9 @@ async fn node_names_for_nodeport_listener(
430439
if !node_names_missing_from_pv.is_empty() {
431440
tracing::warn!(
432441
?node_names_missing_from_pv,
433-
"some backing Nodes could only be found via legacy Endpoints discovery method, {} {}",
434-
"this may cause discovery config to be unstable",
435-
"(hint: try restarting the Pods backing this Listener)"
442+
"some backing Nodes could only be found via legacy Endpoints discovery method, \
443+
this may cause discovery config to be unstable \
444+
(hint: try restarting the Pods backing this Listener)",
436445
);
437446
}
438447

@@ -475,6 +484,7 @@ pub fn listener_mounted_pod_label(
475484
pub enum ListenerPersistentVolumeLabelError {
476485
#[snafu(display("object has no name"))]
477486
NoName,
487+
478488
#[snafu(display("object has no namespace"))]
479489
NoNamespace,
480490
}

0 commit comments

Comments
 (0)