Skip to content

Commit 89466ef

Browse files
committed
fix: remove unused pub methods
1 parent 833e1d4 commit 89466ef

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • rust/operator-binary/src/crd

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,6 @@ impl HasStatusCondition for v1alpha1::HdfsCluster {
273273
}
274274

275275
impl v1alpha1::HdfsCluster {
276-
/// Return the namespace of the cluster or an error in case it is not set.
277-
pub fn namespace_or_error(&self) -> Result<String, Error> {
278-
self.namespace().context(NoNamespaceSnafu)
279-
}
280-
281276
/// Kubernetes labels to attach to Pods within a role group.
282277
///
283278
/// The same labels are also used as selectors for Services and StatefulSets.
@@ -648,10 +643,6 @@ impl v1alpha1::HdfsCluster {
648643
.map(|k| k.tls_secret_class.as_str())
649644
}
650645

651-
pub fn has_authorization_enabled(&self) -> bool {
652-
self.spec.cluster_config.authorization.is_some()
653-
}
654-
655646
pub fn num_datanodes(&self) -> u16 {
656647
self.spec
657648
.data_nodes

0 commit comments

Comments
 (0)