Skip to content

Commit 5fff93b

Browse files
committed
Adressing some feedback
1 parent 8072787 commit 5fff93b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

rust/operator-binary/src/controller.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ pub enum Error {
131131
#[snafu(display("object defines no metastore role"))]
132132
NoMetaStoreRole,
133133

134-
#[snafu(display("failed to calculate global service name"))]
135-
GlobalServiceNameNotFound,
136-
137134
#[snafu(display("failed to calculate service name for role {rolegroup}"))]
138135
RoleGroupServiceNameNotFound {
139136
rolegroup: RoleGroupRef<v1alpha1::HiveCluster>,

rust/operator-binary/src/discovery.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ use crate::{
1616

1717
#[derive(Snafu, Debug)]
1818
pub enum Error {
19-
#[snafu(display("object has no name associated"))]
20-
NoName,
21-
#[snafu(display("object has no namespace associated"))]
22-
NoNamespace,
2319
#[snafu(display("object is missing metadata to build owner reference {hive}"))]
2420
ObjectMissingMetadataForOwnerRef {
2521
source: stackable_operator::builder::meta::Error,
@@ -32,10 +28,10 @@ pub enum Error {
3228
source: stackable_operator::builder::configmap::Error,
3329
obj_ref: ObjectRef<v1alpha1::HiveCluster>,
3430
},
35-
#[snafu(display("could not find port [{port_name}]"))]
31+
#[snafu(display("could not find port [{port_name}] for rolegroup listener {rolegroup}"))]
3632
NoServicePort {
3733
port_name: String,
38-
//obj_ref: ObjectRef<Service>,
34+
rolegroup: String,
3935
},
4036
#[snafu(display("service [{obj_ref}] port [{port_name}] does not have a nodePort "))]
4137
NoNodePort {
@@ -153,7 +149,8 @@ fn build_listener_connection_string(
153149
.get(HIVE_PORT_NAME)
154150
.copied()
155151
.context(NoServicePortSnafu {
156-
port_name: HIVE_PORT_NAME
152+
port_name: HIVE_PORT_NAME,
153+
rolegroup
157154
})?
158155
);
159156
if let Some(chroot) = chroot {

0 commit comments

Comments
 (0)