Skip to content

Commit

Permalink
chore: Apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi committed Feb 4, 2025
1 parent 2255935 commit 866a2cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions rust/operator-binary/src/csi_server/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ use stackable_operator::{
};
use tonic::{Request, Response, Status};

use crate::utils::error::error_full_message;

use super::{tonic_unimplemented, ListenerSelector, ListenerVolumeContext};
use crate::utils::error::error_full_message;

pub struct ListenerOperatorController {
pub client: stackable_operator::client::Client,
Expand Down
6 changes: 3 additions & 3 deletions rust/operator-binary/src/csi_server/node.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::{fmt::Debug, path::PathBuf};

use csi_grpc::{self as csi, v1::Topology};
use serde::{de::IntoDeserializer, Deserialize};
use snafu::{OptionExt, ResultExt, Snafu};
Expand All @@ -13,9 +15,9 @@ use stackable_operator::{
runtime::reflector::ObjectRef,
},
};
use std::{fmt::Debug, path::PathBuf};
use tonic::{Request, Response, Status};

use super::{tonic_unimplemented, ListenerSelector, ListenerVolumeContext};
use crate::{
listener_controller::{
listener_mounted_pod_label, listener_persistent_volume_label, ListenerMountedPodLabelError,
Expand All @@ -24,8 +26,6 @@ use crate::{
utils::{address::node_primary_addresses, error::error_full_message},
};

use super::{tonic_unimplemented, ListenerSelector, ListenerVolumeContext};

const FIELD_MANAGER_SCOPE: &str = "volume";

pub const NODE_TOPOLOGY_LABEL_HOSTNAME: &str = "listeners.stackable.tech/hostname";
Expand Down
5 changes: 2 additions & 3 deletions rust/operator-binary/src/listener_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use futures::{
StreamExt,
};
use snafu::{OptionExt, ResultExt, Snafu};
#[cfg(doc)]
use stackable_operator::k8s_openapi::api::core::v1::Pod;
use stackable_operator::{
builder::meta::ObjectMetaBuilder,
cluster_resources::{ClusterResourceApplyStrategy, ClusterResources},
Expand Down Expand Up @@ -44,9 +46,6 @@ use crate::{
APP_NAME, OPERATOR_KEY,
};

#[cfg(doc)]
use stackable_operator::k8s_openapi::api::core::v1::Pod;

const OPERATOR_NAME: &str = "listeners.stackable.tech";
const CONTROLLER_NAME: &str = "listener";
pub const FULL_CONTROLLER_NAME: &str = concatcp!(CONTROLLER_NAME, '.', OPERATOR_NAME);
Expand Down

0 comments on commit 866a2cc

Please sign in to comment.