Skip to content

Commit a1e55c7

Browse files
committed
chore: Remove unused items
1 parent 184f215 commit a1e55c7

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ use stackable_operator::time::Duration;
22

33
pub const DEFAULT_DFS_REPLICATION_FACTOR: u8 = 3;
44

5-
pub const CONTROLLER_NAME: &str = "hdfsclusters.hdfs.stackable.tech";
6-
75
pub const FIELD_MANAGER_SCOPE: &str = "hdfscluster";
8-
pub const FIELD_MANAGER_SCOPE_POD: &str = "pod-service";
96

107
pub const APP_NAME: &str = "hdfs";
118

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::{
22
borrow::Cow,
33
collections::{BTreeMap, HashMap},
4-
fmt::Display,
54
num::TryFromIntError,
65
ops::Deref,
76
};
@@ -1483,25 +1482,6 @@ impl HasStatusCondition for HdfsCluster {
14831482
}
14841483
}
14851484

1486-
// TODO: upstream?
1487-
pub trait LoggingExt {
1488-
type Container;
1489-
fn for_container(&self, container: &Self::Container) -> Cow<ContainerLogConfig>;
1490-
}
1491-
impl<T> LoggingExt for Logging<T>
1492-
where
1493-
T: Ord + Clone + Display,
1494-
{
1495-
type Container = T;
1496-
1497-
fn for_container(&self, container: &Self::Container) -> Cow<ContainerLogConfig> {
1498-
self.containers
1499-
.get(container)
1500-
.map(Cow::Borrowed)
1501-
.unwrap_or_default()
1502-
}
1503-
}
1504-
15051485
#[cfg(test)]
15061486
mod test {
15071487
use stackable_operator::k8s_openapi::{

0 commit comments

Comments
 (0)