Skip to content

Commit 3f15a06

Browse files
committed
chore: Remove hardcoded uid and gid
1 parent d8af61f commit 3f15a06

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ All notable changes to this project will be documented in this file.
2323
of having the operator write it to the vector config ([#933]).
2424
- test: Bump to Vector 0.46.1 ([#942]).
2525
- Use versioned common structs ([#946]).
26+
- BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#950])
27+
- The `runAsUser` and `runAsGroup` fields will not be set anymore by the operator
28+
- The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
29+
- This is marked as breaking because tools and policies might exist, which require these fields to be set
2630

2731
### Fixed
2832

@@ -40,6 +44,7 @@ All notable changes to this project will be documented in this file.
4044
[#940]: https://github.com/stackabletech/zookeeper-operator/pull/940
4145
[#942]: https://github.com/stackabletech/zookeeper-operator/pull/942
4246
[#946]: https://github.com/stackabletech/zookeeper-operator/pull/946
47+
[#950]: https://github.com/stackabletech/zookeeper-operator/pull/950
4348

4449
## [25.3.0] - 2025-03-21
4550

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)