@@ -81,7 +81,7 @@ use crate::{
8181    config:: { self ,  PYTHON_IMPORTS } , 
8282    controller_commons:: { self ,  CONFIG_VOLUME_NAME ,  LOG_CONFIG_VOLUME_NAME ,  LOG_VOLUME_NAME } , 
8383    crd:: { 
84-         self ,  AIRFLOW_CONFIG_FILENAME ,  AIRFLOW_UID ,   APP_NAME ,  AirflowClusterStatus ,  AirflowConfig , 
84+         self ,  AIRFLOW_CONFIG_FILENAME ,  APP_NAME ,  AirflowClusterStatus ,  AirflowConfig , 
8585        AirflowConfigOptions ,  AirflowExecutor ,  AirflowRole ,  CONFIG_PATH ,  Container ,  ExecutorConfig , 
8686        ExecutorConfigFragment ,  HTTP_PORT ,  HTTP_PORT_NAME ,  LISTENER_VOLUME_DIR , 
8787        LISTENER_VOLUME_NAME ,  LOG_CONFIG_DIR ,  METRICS_PORT ,  METRICS_PORT_NAME ,  OPERATOR_NAME , 
@@ -936,13 +936,7 @@ fn build_server_rolegroup_statefulset(
936936        . image_pull_secrets_from_product_image ( resolved_product_image) 
937937        . affinity ( & merged_airflow_config. affinity ) 
938938        . service_account_name ( service_account. name_any ( ) ) 
939-         . security_context ( 
940-             PodSecurityContextBuilder :: new ( ) 
941-                 . run_as_user ( AIRFLOW_UID ) 
942-                 . run_as_group ( 0 ) 
943-                 . fs_group ( 1000 ) 
944-                 . build ( ) , 
945-         ) ; 
939+         . security_context ( PodSecurityContextBuilder :: new ( ) . fs_group ( 1000 ) . build ( ) ) ; 
946940
947941    let  mut  airflow_container = ContainerBuilder :: new ( & Container :: Airflow . to_string ( ) ) 
948942        . context ( InvalidContainerNameSnafu ) ?; 
@@ -1233,13 +1227,7 @@ fn build_executor_template_config_map(
12331227        . affinity ( & merged_executor_config. affinity ) 
12341228        . service_account_name ( sa_name) 
12351229        . restart_policy ( "Never" ) 
1236-         . security_context ( 
1237-             PodSecurityContextBuilder :: new ( ) 
1238-                 . run_as_user ( AIRFLOW_UID ) 
1239-                 . run_as_group ( 0 ) 
1240-                 . fs_group ( 1000 ) 
1241-                 . build ( ) , 
1242-         ) ; 
1230+         . security_context ( PodSecurityContextBuilder :: new ( ) . fs_group ( 1000 ) . build ( ) ) ; 
12431231
12441232    add_executor_graceful_shutdown_config ( merged_executor_config,  & mut  pb) 
12451233        . context ( GracefulShutdownSnafu ) ?; 
0 commit comments