1+ use std:: collections:: { BTreeMap , HashMap } ;
2+
13use product_config:: types:: PropertyNameKind ;
24use security:: AuthenticationConfig ;
35use serde:: { Deserialize , Serialize } ;
46use shell_escape:: escape;
57use snafu:: { OptionExt , ResultExt , Snafu } ;
6- use stackable_operator:: k8s_openapi:: api:: core:: v1:: PodTemplateSpec ;
7- use stackable_operator:: schemars:: { self , JsonSchema } ;
88use stackable_operator:: {
99 commons:: {
1010 affinity:: StackableAffinity ,
@@ -19,20 +19,22 @@ use stackable_operator::{
1919 fragment:: { self , Fragment , ValidationError } ,
2020 merge:: { Atomic , Merge } ,
2121 } ,
22- k8s_openapi:: { api:: core:: v1:: EnvVar , apimachinery:: pkg:: api:: resource:: Quantity , DeepMerge } ,
22+ k8s_openapi:: {
23+ api:: core:: v1:: { EnvVar , PodTemplateSpec } ,
24+ apimachinery:: pkg:: api:: resource:: Quantity ,
25+ DeepMerge ,
26+ } ,
2327 kube:: { runtime:: reflector:: ObjectRef , CustomResource , ResourceExt } ,
2428 product_config_utils:: Configuration ,
2529 product_logging:: { self , spec:: Logging } ,
2630 role_utils:: { GenericRoleConfig , JavaCommonConfig , Role , RoleGroupRef } ,
31+ schemars:: { self , JsonSchema } ,
2732 status:: condition:: { ClusterCondition , HasStatusCondition } ,
2833 time:: Duration ,
2934} ;
30- use std:: collections:: BTreeMap ;
31- use std:: collections:: HashMap ;
3235use strum:: { Display , EnumIter , EnumString } ;
3336
34- use crate :: affinity:: get_affinity;
35- use crate :: security:: AuthorizationConfig ;
37+ use crate :: { affinity:: get_affinity, security:: AuthorizationConfig } ;
3638
3739pub mod affinity;
3840pub mod security;
@@ -1242,19 +1244,17 @@ impl AnyServiceConfig {
12421244
12431245#[ cfg( test) ]
12441246mod tests {
1245- use rstest:: rstest;
1246-
12471247 use std:: collections:: { BTreeMap , HashMap } ;
12481248
12491249 use indoc:: indoc;
1250+ use product_config:: { types:: PropertyNameKind , ProductConfigManager } ;
1251+ use rstest:: rstest;
12501252 use stackable_operator:: product_config_utils:: {
12511253 transform_all_roles_to_config, validate_all_roles_and_groups_config,
12521254 } ;
12531255
12541256 use crate :: { merged_env, AnyServiceConfig , HbaseCluster , HbaseRole , RegionMoverExtraCliOpts } ;
12551257
1256- use product_config:: { types:: PropertyNameKind , ProductConfigManager } ;
1257-
12581258 #[ test]
12591259 pub fn test_env_overrides ( ) {
12601260 let input = indoc ! { r#"
0 commit comments