@@ -60,8 +60,10 @@ pub const STACKABLE_CONFIG_DIR: &str = "/stackable/config";
6060pub const STACKABLE_KERBEROS_DIR : & str = "/stackable/kerberos" ;
6161pub const STACKABLE_KERBEROS_KRB5_PATH : & str = "/stackable/kerberos/krb5.conf" ;
6262
63- pub type BrokerRole = Role < BrokerConfigFragment , KafkaConfigOverrides , GenericRoleConfig , JavaCommonConfig > ;
64- pub type ControllerRole = Role < ControllerConfigFragment , KafkaConfigOverrides , GenericRoleConfig , JavaCommonConfig > ;
63+ pub type BrokerRole =
64+ Role < BrokerConfigFragment , KafkaConfigOverrides , GenericRoleConfig , JavaCommonConfig > ;
65+ pub type ControllerRole =
66+ Role < ControllerConfigFragment , KafkaConfigOverrides , GenericRoleConfig , JavaCommonConfig > ;
6567
6668#[ derive( Clone , Debug , Default , Deserialize , JsonSchema , PartialEq , Serialize ) ]
6769#[ serde( rename_all = "camelCase" ) ]
@@ -361,17 +363,13 @@ impl v1alpha1::KafkaCluster {
361363 }
362364 }
363365
364- pub fn broker_role (
365- & self ,
366- ) -> Result < & BrokerRole , Error > {
366+ pub fn broker_role ( & self ) -> Result < & BrokerRole , Error > {
367367 self . spec . brokers . as_ref ( ) . context ( MissingRoleSnafu {
368368 role : KafkaRole :: Broker . to_string ( ) ,
369369 } )
370370 }
371371
372- pub fn controller_role (
373- & self ,
374- ) -> Result < & ControllerRole , Error > {
372+ pub fn controller_role ( & self ) -> Result < & ControllerRole , Error > {
375373 self . spec . controllers . as_ref ( ) . context ( MissingRoleSnafu {
376374 role : KafkaRole :: Controller . to_string ( ) ,
377375 } )
0 commit comments