Skip to content

Commit eaa59a7

Browse files
committed
small refactorings
1 parent edc9505 commit eaa59a7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type Result<T, E = Error> = std::result::Result<T, E>;
1919
pub mod versioned {
2020
/// The DruidConnection resource can be used to automatically deploy a Druid datasource in Superset.
2121
/// Learn more about it in the [Superset operator usage guide](DOCS_BASE_URL_PLACEHOLDER/superset/usage-guide/connecting-druid).
22-
#[derive(Clone, CustomResource, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
2322
#[versioned(k8s(
2423
group = "superset.stackable.tech",
2524
plural = "druidconnections",
@@ -31,6 +30,7 @@ pub mod versioned {
3130
schemars = "stackable_operator::schemars"
3231
)
3332
))]
33+
#[derive(Clone, CustomResource, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
3434
#[serde(rename_all = "camelCase")]
3535
pub struct DruidConnectionSpec {
3636
/// The Superset to connect.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ pub mod versioned {
102102
/// A Superset cluster stacklet. This resource is managed by the Stackable operator for Apache Superset.
103103
/// Find more information on how to use it and the resources that the operator generates in the
104104
/// [operator documentation](DOCS_BASE_URL_PLACEHOLDER/superset/).
105-
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
106105
#[versioned(k8s(
107106
group = "superset.stackable.tech",
108107
plural = "supersetclusters",
@@ -115,6 +114,7 @@ pub mod versioned {
115114
schemars = "stackable_operator::schemars"
116115
)
117116
))]
117+
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
118118
#[serde(rename_all = "camelCase")]
119119
pub struct SupersetClusterSpec {
120120
// no doc - docs in the struct.

rust/operator-binary/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::sync::Arc;
22

33
use clap::{crate_description, crate_version, Parser};
4-
use crd::druidconnection::DruidConnection;
54
use futures::{pin_mut, StreamExt};
65
use stackable_operator::{
76
cli::{Command, ProductOperatorRun},
@@ -26,7 +25,10 @@ use stackable_operator::{
2625
};
2726

2827
use crate::{
29-
crd::{druidconnection, v1alpha1, SupersetCluster, APP_NAME},
28+
crd::{
29+
druidconnection::{self, DruidConnection},
30+
v1alpha1, SupersetCluster, APP_NAME,
31+
},
3032
druid_connection_controller::DRUID_CONNECTION_FULL_CONTROLLER_NAME,
3133
superset_controller::SUPERSET_FULL_CONTROLLER_NAME,
3234
};

0 commit comments

Comments
 (0)