Skip to content

Commit 530260a

Browse files
committed
Remove hardcoded uid and gid, they'll default to the ones from the docker images now
1 parent 34fcbc0 commit 530260a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
- BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead
2121
of having the operator write it to the vector config ([#645]).
2222
- test: Bump to Vector `0.46.1` ([#657]).
23+
- Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#660])
24+
- The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
2325

2426
### Fixed
2527

@@ -39,6 +41,7 @@
3941
[#654]: https://github.com/stackabletech/hbase-operator/pull/654
4042
[#655]: https://github.com/stackabletech/hbase-operator/pull/655
4143
[#657]: https://github.com/stackabletech/hbase-operator/pull/657
44+
[#660]: https://github.com/stackabletech/hbase-operator/pull/660
4245

4346
## [25.3.0] - 2025-03-21
4447

rust/operator-binary/src/hbase_controller.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ const HBASE_CONFIG_TMP_DIR: &str = "/stackable/tmp/hbase";
101101
const HBASE_LOG_CONFIG_TMP_DIR: &str = "/stackable/tmp/log_config";
102102

103103
const DOCKER_IMAGE_BASE_NAME: &str = "hbase";
104-
const HBASE_UID: i64 = 1000;
105104

106105
pub struct Ctx {
107106
pub client: stackable_operator::client::Client,
@@ -939,13 +938,7 @@ fn build_rolegroup_statefulset(
939938
)
940939
.context(AddVolumeSnafu)?
941940
.service_account_name(service_account.name_any())
942-
.security_context(
943-
PodSecurityContextBuilder::new()
944-
.run_as_user(HBASE_UID)
945-
.run_as_group(0)
946-
.fs_group(1000)
947-
.build(),
948-
);
941+
.security_context(PodSecurityContextBuilder::new().fs_group(1000).build());
949942

950943
if let Some(ContainerLogConfig {
951944
choice:

0 commit comments

Comments
 (0)