Skip to content

Commit b029440

Browse files
committed
move listener constants to listener module
1 parent ef07f0c commit b029440

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

rust/operator-binary/src/controller.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ use crate::{
8383
},
8484
crd::{
8585
APP_NAME, BALANCE_PORT, BALANCE_PORT_NAME, Container, HTTPS_PORT, HTTPS_PORT_NAME,
86-
LISTENER_VOLUME_DIR, LISTENER_VOLUME_NAME, METRICS_PORT, METRICS_PORT_NAME, NifiConfig,
87-
NifiConfigFragment, NifiNodeRoleConfig, NifiRole, NifiStatus, PROTOCOL_PORT,
88-
PROTOCOL_PORT_NAME, STACKABLE_LOG_CONFIG_DIR, STACKABLE_LOG_DIR,
89-
authentication::AuthenticationClassResolved, v1alpha1,
86+
METRICS_PORT, METRICS_PORT_NAME, NifiConfig, NifiConfigFragment, NifiNodeRoleConfig,
87+
NifiRole, NifiStatus, PROTOCOL_PORT, PROTOCOL_PORT_NAME, STACKABLE_LOG_CONFIG_DIR,
88+
STACKABLE_LOG_DIR, authentication::AuthenticationClassResolved, v1alpha1,
89+
},
90+
listener::{
91+
LISTENER_VOLUME_DIR, LISTENER_VOLUME_NAME, build_group_listener, build_group_listener_pvc,
92+
group_listener_name,
9093
},
91-
listener::{build_group_listener, build_group_listener_pvc, group_listener_name},
9294
operations::{
9395
graceful_shutdown::add_graceful_shutdown_config,
9496
pdb::add_pdbs,

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ pub const BALANCE_PORT: u16 = 6243;
5454
pub const METRICS_PORT_NAME: &str = "metrics";
5555
pub const METRICS_PORT: u16 = 8081;
5656

57-
pub const LISTENER_VOLUME_NAME: &str = "listener";
58-
pub const LISTENER_VOLUME_DIR: &str = "/stackable/listener";
5957
pub const STACKABLE_LOG_DIR: &str = "/stackable/log";
6058
pub const STACKABLE_LOG_CONFIG_DIR: &str = "/stackable/log_config";
6159

rust/operator-binary/src/listener.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ use stackable_operator::{
1010
kvp::{Labels, ObjectLabels},
1111
};
1212

13-
use crate::crd::{HTTPS_PORT, HTTPS_PORT_NAME, LISTENER_VOLUME_NAME, v1alpha1};
13+
use crate::crd::{HTTPS_PORT, HTTPS_PORT_NAME, v1alpha1};
14+
15+
pub const LISTENER_VOLUME_NAME: &str = "listener";
16+
pub const LISTENER_VOLUME_DIR: &str = "/stackable/listener";
1417

1518
#[derive(Snafu, Debug)]
1619
pub enum Error {

0 commit comments

Comments
 (0)