@@ -81,7 +81,7 @@ use crate::{
81
81
config:: { self , PYTHON_IMPORTS } ,
82
82
controller_commons:: { self , CONFIG_VOLUME_NAME , LOG_CONFIG_VOLUME_NAME , LOG_VOLUME_NAME } ,
83
83
crd:: {
84
- self , AIRFLOW_CONFIG_FILENAME , AIRFLOW_UID , APP_NAME , AirflowClusterStatus , AirflowConfig ,
84
+ self , AIRFLOW_CONFIG_FILENAME , APP_NAME , AirflowClusterStatus , AirflowConfig ,
85
85
AirflowConfigOptions , AirflowExecutor , AirflowRole , CONFIG_PATH , Container , ExecutorConfig ,
86
86
ExecutorConfigFragment , HTTP_PORT , HTTP_PORT_NAME , LISTENER_VOLUME_DIR ,
87
87
LISTENER_VOLUME_NAME , LOG_CONFIG_DIR , METRICS_PORT , METRICS_PORT_NAME , OPERATOR_NAME ,
@@ -936,13 +936,7 @@ fn build_server_rolegroup_statefulset(
936
936
. image_pull_secrets_from_product_image ( resolved_product_image)
937
937
. affinity ( & merged_airflow_config. affinity )
938
938
. 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 ( ) ) ;
946
940
947
941
let mut airflow_container = ContainerBuilder :: new ( & Container :: Airflow . to_string ( ) )
948
942
. context ( InvalidContainerNameSnafu ) ?;
@@ -1233,13 +1227,7 @@ fn build_executor_template_config_map(
1233
1227
. affinity ( & merged_executor_config. affinity )
1234
1228
. service_account_name ( sa_name)
1235
1229
. 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 ( ) ) ;
1243
1231
1244
1232
add_executor_graceful_shutdown_config ( merged_executor_config, & mut pb)
1245
1233
. context ( GracefulShutdownSnafu ) ?;
0 commit comments