@@ -8,9 +8,9 @@ use std::{
88
99use const_format:: concatcp;
1010use product_config:: {
11+ ProductConfigManager ,
1112 flask_app_config_writer:: { self , FlaskAppConfigWriterError } ,
1213 types:: PropertyNameKind ,
13- ProductConfigManager ,
1414} ;
1515use snafu:: { OptionExt , ResultExt , Snafu } ;
1616use stackable_operator:: {
@@ -19,19 +19,19 @@ use stackable_operator::{
1919 configmap:: ConfigMapBuilder ,
2020 meta:: ObjectMetaBuilder ,
2121 pod:: {
22- container:: ContainerBuilder , resources:: ResourceRequirementsBuilder ,
23- security:: PodSecurityContextBuilder , volume:: VolumeBuilder , PodBuilder ,
22+ PodBuilder , container:: ContainerBuilder , resources:: ResourceRequirementsBuilder ,
23+ security:: PodSecurityContextBuilder , volume:: VolumeBuilder ,
2424 } ,
2525 } ,
2626 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
2727 commons:: {
28- authentication:: { ldap , AuthenticationClass } ,
28+ authentication:: { AuthenticationClass , ldap } ,
2929 product_image_selection:: ResolvedProductImage ,
3030 rbac:: build_rbac_resources,
3131 } ,
3232 config:: fragment:: ValidationError ,
3333 k8s_openapi:: {
34- self ,
34+ self , DeepMerge ,
3535 api:: {
3636 apps:: v1:: { StatefulSet , StatefulSetSpec } ,
3737 core:: v1:: {
@@ -40,19 +40,18 @@ use stackable_operator::{
4040 } ,
4141 } ,
4242 apimachinery:: pkg:: { apis:: meta:: v1:: LabelSelector , util:: intstr:: IntOrString } ,
43- DeepMerge ,
4443 } ,
4544 kube:: {
45+ Resource , ResourceExt ,
4646 api:: ObjectMeta ,
47- core:: { error_boundary , DeserializeGuard } ,
47+ core:: { DeserializeGuard , error_boundary } ,
4848 runtime:: { controller:: Action , reflector:: ObjectRef } ,
49- Resource , ResourceExt ,
5049 } ,
5150 kvp:: { Label , LabelError , Labels } ,
5251 logging:: controller:: ReconcilerError ,
5352 product_config_utils:: {
54- transform_all_roles_to_config, validate_all_roles_and_groups_config,
5553 CONFIG_OVERRIDE_FILE_FOOTER_KEY , CONFIG_OVERRIDE_FILE_HEADER_KEY ,
54+ transform_all_roles_to_config, validate_all_roles_and_groups_config,
5655 } ,
5756 product_logging:: {
5857 self ,
@@ -75,17 +74,17 @@ use crate::{
7574 config:: { self , PYTHON_IMPORTS } ,
7675 controller_commons:: { self , CONFIG_VOLUME_NAME , LOG_CONFIG_VOLUME_NAME , LOG_VOLUME_NAME } ,
7776 crd:: {
78- self ,
77+ self , AIRFLOW_CONFIG_FILENAME , AIRFLOW_UID , APP_NAME , AirflowClusterStatus , AirflowConfig ,
78+ AirflowConfigOptions , AirflowExecutor , AirflowRole , CONFIG_PATH , Container , ExecutorConfig ,
79+ ExecutorConfigFragment , LOG_CONFIG_DIR , OPERATOR_NAME , STACKABLE_LOG_DIR ,
80+ TEMPLATE_CONFIGMAP_NAME , TEMPLATE_LOCATION , TEMPLATE_NAME , TEMPLATE_VOLUME_NAME ,
7981 authentication:: {
8082 AirflowAuthenticationClassResolved , AirflowClientAuthenticationDetailsResolved ,
8183 } ,
8284 authorization:: AirflowAuthorizationResolved ,
8385 build_recommended_labels,
84- git_sync:: { GitSync , GIT_SYNC_CONTENT , GIT_SYNC_NAME , GIT_SYNC_ROOT } ,
85- v1alpha1, AirflowClusterStatus , AirflowConfig , AirflowConfigOptions , AirflowExecutor ,
86- AirflowRole , Container , ExecutorConfig , ExecutorConfigFragment , AIRFLOW_CONFIG_FILENAME ,
87- AIRFLOW_UID , APP_NAME , CONFIG_PATH , LOG_CONFIG_DIR , OPERATOR_NAME , STACKABLE_LOG_DIR ,
88- TEMPLATE_CONFIGMAP_NAME , TEMPLATE_LOCATION , TEMPLATE_NAME , TEMPLATE_VOLUME_NAME ,
86+ git_sync:: { GIT_SYNC_CONTENT , GIT_SYNC_NAME , GIT_SYNC_ROOT , GitSync } ,
87+ v1alpha1,
8988 } ,
9089 env_vars:: {
9190 self , build_airflow_template_envs, build_gitsync_statefulset_envs, build_gitsync_template,
@@ -552,10 +551,10 @@ pub async fn reconcile_airflow(
552551 . context ( DeleteOrphanedResourcesSnafu ) ?;
553552
554553 let status = AirflowClusterStatus {
555- conditions : compute_conditions (
556- airflow ,
557- & [ & ss_cond_builder , & cluster_operation_cond_builder] ,
558- ) ,
554+ conditions : compute_conditions ( airflow , & [
555+ & ss_cond_builder ,
556+ & cluster_operation_cond_builder,
557+ ] ) ,
559558 } ;
560559
561560 client
@@ -1001,13 +1000,15 @@ fn build_server_rolegroup_statefulset(
10011000 "pipefail" . to_string( ) ,
10021001 "-c" . to_string( ) ,
10031002 ] )
1004- . args ( vec ! [ [
1005- COMMON_BASH_TRAP_FUNCTIONS . to_string( ) ,
1006- "prepare_signal_handlers" . to_string( ) ,
1007- "/stackable/statsd_exporter &" . to_string( ) ,
1008- "wait_for_termination $!" . to_string( ) ,
1009- ]
1010- . join( "\n " ) ] )
1003+ . args ( vec ! [
1004+ [
1005+ COMMON_BASH_TRAP_FUNCTIONS . to_string( ) ,
1006+ "prepare_signal_handlers" . to_string( ) ,
1007+ "/stackable/statsd_exporter &" . to_string( ) ,
1008+ "wait_for_termination $!" . to_string( ) ,
1009+ ]
1010+ . join( "\n " ) ,
1011+ ] )
10111012 . add_container_port ( METRICS_PORT_NAME , METRICS_PORT )
10121013 . resources (
10131014 ResourceRequirementsBuilder :: new ( )
0 commit comments