@@ -108,36 +108,45 @@ pub struct Ctx {
108108pub 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(
475484pub 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