Skip to content

Commit 441fe1d

Browse files
committed
renamed constant
1 parent f59bda6 commit 441fe1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rust/operator-binary/src/controller/build/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub mod resource;
2727

2828
// Placeholder role-group name used for the recommended labels of the role-level `Listener`
2929
// (which is not tied to a single role group).
30-
stackable_operator::constant!(pub(crate) PLACEHOLDER_LISTENER_ROLE_GROUP: RoleGroupName = "none");
30+
stackable_operator::constant!(pub(crate) NONE_ROLE_GROUP_NAME: RoleGroupName = "none");
3131

3232
// Product version used for the recommended labels of PVC templates, which cannot be modified after
3333
// deployment. A constant `none` keeps those labels stable across version upgrades.

rust/operator-binary/src/controller/build/resource/listener.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use stackable_operator::{crd::listener, v2::types::kubernetes::ListenerClassName};
22

33
use crate::{
4-
controller::{ValidatedCluster, build::PLACEHOLDER_LISTENER_ROLE_GROUP},
4+
controller::{ValidatedCluster, build::NONE_ROLE_GROUP_NAME},
55
crd::{APP_PORT, APP_PORT_NAME, SupersetRole},
66
};
77

@@ -16,7 +16,7 @@ pub fn build_group_listener(
1616
// The group listener is a role-level object, so the constant `none` placeholder role-group is
1717
// used for the recommended labels.
1818
let metadata = validated
19-
.object_meta(listener_group_name, role, &PLACEHOLDER_LISTENER_ROLE_GROUP)
19+
.object_meta(listener_group_name, role, &NONE_ROLE_GROUP_NAME)
2020
.build();
2121

2222
let spec = listener::v1alpha1::ListenerSpec {

0 commit comments

Comments
 (0)