Skip to content

Commit 241573c

Browse files
committed
refactor: rename kafka_controller.rs -> controller.rs
1 parent 3eb78e2 commit 241573c

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

File renamed without changes.

rust/operator-binary/src/discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use stackable_operator::{
1010
};
1111

1212
use crate::{
13+
controller::KAFKA_CONTROLLER_NAME,
1314
crd::{role::KafkaRole, security::KafkaTlsSecurity, v1alpha1},
14-
kafka_controller::KAFKA_CONTROLLER_NAME,
1515
utils::build_recommended_labels,
1616
};
1717

rust/operator-binary/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ use stackable_operator::{
3535
};
3636

3737
use crate::{
38+
controller::KAFKA_FULL_CONTROLLER_NAME,
3839
crd::{KafkaCluster, KafkaClusterVersion, OPERATOR_NAME, v1alpha1},
39-
kafka_controller::KAFKA_FULL_CONTROLLER_NAME,
4040
webhooks::conversion::create_webhook_server,
4141
};
4242

4343
mod config;
44+
mod controller;
4445
mod crd;
4546
mod discovery;
46-
mod kafka_controller;
4747
mod kerberos;
4848
mod operations;
4949
mod product_logging;
@@ -183,9 +183,9 @@ async fn main() -> anyhow::Result<()> {
183183
)
184184
.graceful_shutdown_on(sigterm_watcher.handle())
185185
.run(
186-
kafka_controller::reconcile_kafka,
187-
kafka_controller::error_policy,
188-
Arc::new(kafka_controller::Ctx {
186+
controller::reconcile_kafka,
187+
controller::error_policy,
188+
Arc::new(controller::Ctx {
189189
client: client.clone(),
190190
operator_environment,
191191
product_config,

rust/operator-binary/src/operations/pdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use stackable_operator::{
55
};
66

77
use crate::{
8+
controller::KAFKA_CONTROLLER_NAME,
89
crd::{APP_NAME, OPERATOR_NAME, role::KafkaRole, v1alpha1},
9-
kafka_controller::KAFKA_CONTROLLER_NAME,
1010
};
1111

1212
#[derive(Snafu, Debug)]

rust/operator-binary/src/resource/configmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use stackable_operator::{
1414
};
1515

1616
use crate::{
17+
controller::KAFKA_CONTROLLER_NAME,
1718
crd::{
1819
JVM_SECURITY_PROPERTIES_FILE, KafkaPodDescriptor, MetadataManager,
1920
STACKABLE_LISTENER_BOOTSTRAP_DIR, STACKABLE_LISTENER_BROKER_DIR,
@@ -26,7 +27,6 @@ use crate::{
2627
security::KafkaTlsSecurity,
2728
v1alpha1,
2829
},
29-
kafka_controller::KAFKA_CONTROLLER_NAME,
3030
operations::graceful_shutdown::graceful_shutdown_config_properties,
3131
product_logging::extend_role_group_config_map,
3232
utils::build_recommended_labels,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use stackable_operator::{
55
};
66

77
use crate::{
8+
controller::KAFKA_CONTROLLER_NAME,
89
crd::{role::broker::BrokerConfig, security::KafkaTlsSecurity, v1alpha1},
9-
kafka_controller::KAFKA_CONTROLLER_NAME,
1010
utils::build_recommended_labels,
1111
};
1212

rust/operator-binary/src/resource/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use stackable_operator::{
88
};
99

1010
use crate::{
11+
controller::KAFKA_CONTROLLER_NAME,
1112
crd::{APP_NAME, METRICS_PORT, METRICS_PORT_NAME, security::KafkaTlsSecurity, v1alpha1},
12-
kafka_controller::KAFKA_CONTROLLER_NAME,
1313
utils::build_recommended_labels,
1414
};
1515

rust/operator-binary/src/resource/statefulset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ use crate::{
4848
command::{broker_kafka_container_commands, controller_kafka_container_command},
4949
node_id_hasher::node_id_hash32_offset,
5050
},
51+
controller::KAFKA_CONTROLLER_NAME,
5152
crd::{
5253
self, APP_NAME, KAFKA_HEAP_OPTS, LISTENER_BOOTSTRAP_VOLUME_NAME,
5354
LISTENER_BROKER_VOLUME_NAME, LOG_DIRS_VOLUME_NAME, METRICS_PORT, METRICS_PORT_NAME,
@@ -60,7 +61,6 @@ use crate::{
6061
security::KafkaTlsSecurity,
6162
v1alpha1,
6263
},
63-
kafka_controller::KAFKA_CONTROLLER_NAME,
6464
kerberos::add_kerberos_pod_config,
6565
operations::graceful_shutdown::add_graceful_shutdown_config,
6666
product_logging::{

0 commit comments

Comments
 (0)