diff --git a/CHANGELOG.md b/CHANGELOG.md index 6135da88..a1f620ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ of having the operator write it to the vector config ([#645]). - test: Bump to Vector `0.46.1` ([#657]). - test: Bump OPA to `1.4.2` ([#661]). +- BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#660]) + - The `runAsUser` and `runAsGroup` fields will not be set anymore by the operator + - The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward + - This is marked as breaking because tools and policies might exist, which require these fields to be set ### Fixed @@ -40,6 +44,7 @@ [#654]: https://github.com/stackabletech/hbase-operator/pull/654 [#655]: https://github.com/stackabletech/hbase-operator/pull/655 [#657]: https://github.com/stackabletech/hbase-operator/pull/657 +[#660]: https://github.com/stackabletech/hbase-operator/pull/660 [#661]: https://github.com/stackabletech/hbase-operator/pull/661 ## [25.3.0] - 2025-03-21 diff --git a/rust/operator-binary/src/hbase_controller.rs b/rust/operator-binary/src/hbase_controller.rs index 376036c6..14081a66 100644 --- a/rust/operator-binary/src/hbase_controller.rs +++ b/rust/operator-binary/src/hbase_controller.rs @@ -101,7 +101,6 @@ const HBASE_CONFIG_TMP_DIR: &str = "/stackable/tmp/hbase"; const HBASE_LOG_CONFIG_TMP_DIR: &str = "/stackable/tmp/log_config"; const DOCKER_IMAGE_BASE_NAME: &str = "hbase"; -const HBASE_UID: i64 = 1000; pub struct Ctx { pub client: stackable_operator::client::Client, @@ -939,13 +938,7 @@ fn build_rolegroup_statefulset( ) .context(AddVolumeSnafu)? .service_account_name(service_account.name_any()) - .security_context( - PodSecurityContextBuilder::new() - .run_as_user(HBASE_UID) - .run_as_group(0) - .fs_group(1000) - .build(), - ); + .security_context(PodSecurityContextBuilder::new().fs_group(1000).build()); if let Some(ContainerLogConfig { choice: