Skip to content

Commit 8637ecd

Browse files
committed
Using const for default listener class
1 parent ff4e092 commit 8637ecd

File tree

1 file changed

+4
-1
lines changed
  • rust/operator-binary/src/crd

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ pub const METRICS_PORT: u16 = 9084;
6565
pub const LISTENER_VOLUME_NAME: &str = "listener";
6666
pub const LISTENER_VOLUME_DIR: &str = "/stackable/listener";
6767

68+
// Listener defaults
69+
pub const DEFAULT_LISTENER_CLASS: &str = "cluster-internal";
70+
6871
// Certificates and trust stores
6972
pub const SYSTEM_TRUST_STORE: &str = "/etc/pki/java/cacerts";
7073
pub const SYSTEM_TRUST_STORE_PASSWORD: &str = "changeit";
@@ -188,7 +191,7 @@ impl Default for v1alpha1::HiveMetastoreRoleConfig {
188191
}
189192

190193
fn metastore_default_listener_class() -> String {
191-
"cluster-internal".to_string()
194+
DEFAULT_LISTENER_CLASS.to_owned()
192195
}
193196

194197
impl HasStatusCondition for v1alpha1::HiveCluster {

0 commit comments

Comments
 (0)