Skip to content

Commit 70836a1

Browse files
committed
chore: Remove hardcoded uid and gid
1 parent d8af61f commit 70836a1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

rust/operator-binary/src/zk_controller.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ use crate::{
8686
pub const ZK_CONTROLLER_NAME: &str = "zookeepercluster";
8787
pub const ZK_FULL_CONTROLLER_NAME: &str = concatcp!(ZK_CONTROLLER_NAME, '.', OPERATOR_NAME);
8888

89-
pub const ZK_UID: i64 = 1000;
9089
pub struct Ctx {
9190
pub client: stackable_operator::client::Client,
9291
pub product_config: ProductConfigManager,
@@ -955,8 +954,6 @@ fn build_server_rolegroup_statefulset(
955954
)
956955
.context(AddVolumeSnafu)?
957956
.security_context(PodSecurityContext {
958-
run_as_user: Some(ZK_UID),
959-
run_as_group: Some(0),
960957
fs_group: Some(1000),
961958
..PodSecurityContext::default()
962959
})

0 commit comments

Comments
 (0)