Skip to content

Commit ad434d1

Browse files
committed
chore: Remove hardcoded uid and gid
1 parent d24fb5d commit ad434d1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

rust/operator-binary/src/airflow_controller.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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,
@@ -938,8 +938,6 @@ fn build_server_rolegroup_statefulset(
938938
.service_account_name(service_account.name_any())
939939
.security_context(
940940
PodSecurityContextBuilder::new()
941-
.run_as_user(AIRFLOW_UID)
942-
.run_as_group(0)
943941
.fs_group(1000)
944942
.build(),
945943
);
@@ -1235,8 +1233,6 @@ fn build_executor_template_config_map(
12351233
.restart_policy("Never")
12361234
.security_context(
12371235
PodSecurityContextBuilder::new()
1238-
.run_as_user(AIRFLOW_UID)
1239-
.run_as_group(0)
12401236
.fs_group(1000)
12411237
.build(),
12421238
);

rust/operator-binary/src/crd/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ pub mod affinity;
5757
pub mod authentication;
5858
pub mod authorization;
5959

60-
pub const AIRFLOW_UID: i64 = 1000;
6160
pub const APP_NAME: &str = "airflow";
6261
pub const OPERATOR_NAME: &str = "airflow.stackable.tech";
6362
pub const CONFIG_PATH: &str = "/stackable/app/config";

0 commit comments

Comments
 (0)