Skip to content

Commit ebe9c30

Browse files
committed
chore: Remove hardcoded uid and gid
1 parent 44853f7 commit ebe9c30

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,3 @@ pub const DATANODE_ROOT_DATA_DIR_SUFFIX: &str = "/datanode";
8282

8383
pub const LISTENER_VOLUME_NAME: &str = "listener";
8484
pub const LISTENER_VOLUME_DIR: &str = "/stackable/listener";
85-
86-
pub const HDFS_UID: i64 = 1000;

rust/operator-binary/src/hdfs_controller.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,6 @@ fn rolegroup_statefulset(
829829
.service_account_name(service_account.name_any())
830830
.security_context(
831831
PodSecurityContextBuilder::new()
832-
.run_as_user(HDFS_UID)
833-
.run_as_group(0)
834832
.fs_group(1000)
835833
.build(),
836834
);

tests/templates/kuttl/kerberos/30-access-hdfs.txt.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,4 @@ spec:
8686
storage: "1"
8787
securityContext:
8888
fsGroup: 1000
89-
runAsGroup: 1000
90-
runAsUser: 1000
9189
restartPolicy: OnFailure

tests/templates/kuttl/kerberos/32-check-file.txt.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,4 @@ spec:
5858
storage: "1"
5959
securityContext:
6060
fsGroup: 1000
61-
runAsGroup: 1000
62-
runAsUser: 1000
6361
restartPolicy: OnFailure

tests/templates/kuttl/topology-provider/20-access-hdfs.yaml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,5 @@ commands:
6464
storage: "1"
6565
securityContext:
6666
fsGroup: 1000
67-
runAsGroup: 1000
68-
runAsUser: 1000
6967
restartPolicy: OnFailure
7068
EOF

0 commit comments

Comments
 (0)