Skip to content

Commit aa4acd9

Browse files
committed
Remove hardcoded uid and gid, they'll default to the ones from the docker images now
1 parent cf25e44 commit aa4acd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ All notable changes to this project will be documented in this file.
2121
- Replace stackable-operator `print_startup_string` with `tracing::info!` with fields.
2222
- BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead
2323
of having the operator write it to the vector config ([#704]).
24+
- Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#718])
25+
- The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
2426

2527
### Fixed
2628

@@ -37,6 +39,7 @@ All notable changes to this project will be documented in this file.
3739
[#710]: https://github.com/stackabletech/druid-operator/pull/710
3840
[#714]: https://github.com/stackabletech/druid-operator/pull/714
3941
[#716]: https://github.com/stackabletech/druid-operator/pull/716
42+
[#718]: https://github.com/stackabletech/druid-operator/pull/718
4043

4144
## [25.3.0] - 2025-03-21
4245

rust/operator-binary/src/druid_controller.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ use crate::{
8888
pub const DRUID_CONTROLLER_NAME: &str = "druidcluster";
8989
pub const FULL_CONTROLLER_NAME: &str = concatcp!(DRUID_CONTROLLER_NAME, '.', OPERATOR_NAME);
9090

91-
const DRUID_UID: i64 = 1000;
9291
const DOCKER_IMAGE_BASE_NAME: &str = "druid";
9392

9493
// volume names
@@ -1140,8 +1139,6 @@ fn build_rolegroup_statefulset(
11401139
.service_account_name(service_account.name_any())
11411140
.security_context(
11421141
PodSecurityContextBuilder::new()
1143-
.run_as_user(DRUID_UID)
1144-
.run_as_group(0)
11451142
.fs_group(1000)
11461143
.build(),
11471144
);

0 commit comments

Comments
 (0)