@@ -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 ) ?; 
@@ -1238,13 +1232,7 @@ fn build_executor_template_config_map(
12381232        . affinity ( & merged_executor_config. affinity ) 
12391233        . service_account_name ( sa_name) 
12401234        . restart_policy ( "Never" ) 
1241-         . security_context ( 
1242-             PodSecurityContextBuilder :: new ( ) 
1243-                 . run_as_user ( AIRFLOW_UID ) 
1244-                 . run_as_group ( 0 ) 
1245-                 . fs_group ( 1000 ) 
1246-                 . build ( ) , 
1247-         ) ; 
1235+         . security_context ( PodSecurityContextBuilder :: new ( ) . fs_group ( 1000 ) . build ( ) ) ; 
12481236
12491237    add_executor_graceful_shutdown_config ( merged_executor_config,  & mut  pb) 
12501238        . context ( GracefulShutdownSnafu ) ?; 
0 commit comments