@@ -11,21 +11,22 @@ use const_format::concatcp;
1111use fnv:: FnvHasher ;
1212use indoc:: formatdoc;
1313use product_config:: {
14- types:: PropertyNameKind ,
15- writer:: { to_java_properties_string, PropertiesWriterError } ,
1614 ProductConfigManager ,
15+ types:: PropertyNameKind ,
16+ writer:: { PropertiesWriterError , to_java_properties_string} ,
1717} ;
1818use snafu:: { OptionExt , ResultExt , Snafu } ;
1919use stackable_operator:: {
2020 builder:: {
2121 self ,
2222 configmap:: ConfigMapBuilder ,
2323 meta:: ObjectMetaBuilder ,
24- pod:: { container:: ContainerBuilder , resources:: ResourceRequirementsBuilder , PodBuilder } ,
24+ pod:: { PodBuilder , container:: ContainerBuilder , resources:: ResourceRequirementsBuilder } ,
2525 } ,
2626 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
2727 commons:: { product_image_selection:: ResolvedProductImage , rbac:: build_rbac_resources} ,
2828 k8s_openapi:: {
29+ DeepMerge ,
2930 api:: {
3031 apps:: v1:: { StatefulSet , StatefulSetSpec } ,
3132 core:: v1:: {
@@ -35,21 +36,20 @@ use stackable_operator::{
3536 } ,
3637 } ,
3738 apimachinery:: pkg:: apis:: meta:: v1:: LabelSelector ,
38- DeepMerge ,
3939 } ,
4040 kube:: {
41+ Resource , ResourceExt ,
4142 api:: DynamicObject ,
42- core:: { error_boundary , DeserializeGuard } ,
43+ core:: { DeserializeGuard , error_boundary } ,
4344 runtime:: controller,
44- Resource , ResourceExt ,
4545 } ,
4646 kvp:: { Label , LabelError , Labels } ,
4747 logging:: controller:: ReconcilerError ,
4848 product_config_utils:: { transform_all_roles_to_config, validate_all_roles_and_groups_config} ,
4949 product_logging:: {
5050 self ,
5151 framework:: {
52- create_vector_shutdown_file_command , remove_vector_shutdown_file_command , LoggingError ,
52+ LoggingError , create_vector_shutdown_file_command , remove_vector_shutdown_file_command ,
5353 } ,
5454 spec:: {
5555 ConfigMapLogConfig , ContainerLogConfig , ContainerLogConfigChoice ,
@@ -62,25 +62,25 @@ use stackable_operator::{
6262 statefulset:: StatefulSetConditionBuilder ,
6363 } ,
6464 time:: Duration ,
65- utils:: { cluster_info:: KubernetesClusterInfo , COMMON_BASH_TRAP_FUNCTIONS } ,
65+ utils:: { COMMON_BASH_TRAP_FUNCTIONS , cluster_info:: KubernetesClusterInfo } ,
6666} ;
6767use strum:: { EnumDiscriminants , IntoStaticStr } ;
6868
6969use crate :: {
70+ APP_NAME , OPERATOR_NAME , ObjectRef ,
7071 command:: create_init_container_command_args,
7172 config:: jvm:: { construct_non_heap_jvm_args, construct_zk_server_heap_env} ,
7273 crd:: {
74+ DOCKER_IMAGE_BASE_NAME , JVM_SECURITY_PROPERTIES_FILE , MAX_PREPARE_LOG_FILE_SIZE ,
75+ MAX_ZK_LOG_FILES_SIZE , STACKABLE_CONFIG_DIR , STACKABLE_DATA_DIR , STACKABLE_LOG_CONFIG_DIR ,
76+ STACKABLE_LOG_DIR , STACKABLE_RW_CONFIG_DIR , ZOOKEEPER_PROPERTIES_FILE , ZookeeperRole ,
7377 security:: { self , ZookeeperSecurity } ,
74- v1alpha1, ZookeeperRole , DOCKER_IMAGE_BASE_NAME , JVM_SECURITY_PROPERTIES_FILE ,
75- MAX_PREPARE_LOG_FILE_SIZE , MAX_ZK_LOG_FILES_SIZE , STACKABLE_CONFIG_DIR , STACKABLE_DATA_DIR ,
76- STACKABLE_LOG_CONFIG_DIR , STACKABLE_LOG_DIR , STACKABLE_RW_CONFIG_DIR ,
77- ZOOKEEPER_PROPERTIES_FILE ,
78+ v1alpha1,
7879 } ,
7980 discovery:: { self , build_discovery_configmaps} ,
8081 operations:: { graceful_shutdown:: add_graceful_shutdown_config, pdb:: add_pdbs} ,
8182 product_logging:: { extend_role_group_config_map, resolve_vector_aggregator_address} ,
8283 utils:: build_recommended_labels,
83- ObjectRef , APP_NAME , OPERATOR_NAME ,
8484} ;
8585
8686pub const ZK_CONTROLLER_NAME : & str = "zookeepercluster" ;
@@ -274,6 +274,7 @@ impl ReconcilerError for Error {
274274 fn category ( & self ) -> & ' static str {
275275 ErrorDiscriminants :: from ( self ) . into ( )
276276 }
277+
277278 fn secondary_object ( & self ) -> Option < ObjectRef < DynamicObject > > {
278279 match self {
279280 Error :: MissingSecretLifetime => None ,
0 commit comments