@@ -37,7 +37,7 @@ impl Merge for GenericCommonConfig {
3737/// * `config` is flattened.
3838/// * The [`HashMap`] in `env_overrides` is replaced with an [`EnvVarSet`].
3939#[ derive( Clone , Debug , PartialEq ) ]
40- pub struct RoleGroupConfig < ProductSpecificCommonConfig , Config , ConfigOverrides > {
40+ pub struct RoleGroupConfig < Config , CommonConfig , ConfigOverrides > {
4141 pub replicas : u16 ,
4242 pub config : Config ,
4343 pub config_overrides : ConfigOverrides ,
@@ -46,12 +46,10 @@ pub struct RoleGroupConfig<ProductSpecificCommonConfig, Config, ConfigOverrides>
4646 pub pod_overrides : PodTemplateSpec ,
4747 // allow(dead_code) is not necessary anymore when moved to operator-rs
4848 #[ allow( dead_code) ]
49- pub product_specific_common_config : ProductSpecificCommonConfig ,
49+ pub product_specific_common_config : CommonConfig ,
5050}
5151
52- impl < ProductSpecificCommonConfig , Config , ConfigOverrides >
53- RoleGroupConfig < ProductSpecificCommonConfig , Config , ConfigOverrides >
54- {
52+ impl < Config , CommonConfig , ConfigOverrides > RoleGroupConfig < Config , CommonConfig , ConfigOverrides > {
5553 pub fn cli_overrides_to_vec ( & self ) -> Vec < String > {
5654 self . cli_overrides
5755 . clone ( )
@@ -62,13 +60,13 @@ impl<ProductSpecificCommonConfig, Config, ConfigOverrides>
6260}
6361
6462/// Merges and validates the [`RoleGroup`] with the given `role` and `default_config`
65- pub fn with_validated_config < C , CommonConfig , Config , RoleConfig , ConfigOverrides > (
63+ pub fn with_validated_config < ValidatedConfig , CommonConfig , Config , RoleConfig , ConfigOverrides > (
6664 role_group : & RoleGroup < Config , CommonConfig , ConfigOverrides > ,
6765 role : & Role < Config , ConfigOverrides , RoleConfig , CommonConfig > ,
6866 default_config : & Config ,
69- ) -> Result < RoleGroup < C , CommonConfig , ConfigOverrides > , fragment:: ValidationError >
67+ ) -> Result < RoleGroup < ValidatedConfig , CommonConfig , ConfigOverrides > , fragment:: ValidationError >
7068where
71- C : FromFragment < Fragment = Config > ,
69+ ValidatedConfig : FromFragment < Fragment = Config > ,
7270 CommonConfig : Clone + Default + JsonSchema + Merge + Serialize ,
7371 Config : Clone + Merge ,
7472 RoleConfig : Default + JsonSchema + Serialize ,
0 commit comments