Skip to content

Commit 20f76cd

Browse files
authored
chore: Remove hardcoded uid and gid (#732)
1 parent b23275c commit 20f76cd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ All notable changes to this project will be documented in this file.
3737
of having the operator write it to the vector config ([#707]).
3838
- test: Bump to Vector 0.46.1 ([#721]).
3939
- Use versioned common structs ([#727]).
40+
- BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#732])
41+
- The `runAsUser` and `runAsGroup` fields will not be set anymore by the operator
42+
- The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
43+
- This is marked as breaking because tools and policies might exist, which require these fields to be set
4044

4145
### Fixed
4246

@@ -55,6 +59,7 @@ All notable changes to this project will be documented in this file.
5559
[#721]: https://github.com/stackabletech/opa-operator/pull/721
5660
[#723]: https://github.com/stackabletech/opa-operator/pull/723
5761
[#727]: https://github.com/stackabletech/opa-operator/pull/727
62+
[#732]: https://github.com/stackabletech/opa-operator/pull/732
5863

5964
## [25.3.0] - 2025-03-21
6065

rust/operator-binary/src/controller.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -927,13 +927,7 @@ fn build_server_rolegroup_daemonset(
927927
)
928928
.context(AddVolumeSnafu)?
929929
.service_account_name(service_account.name_any())
930-
.security_context(
931-
PodSecurityContextBuilder::new()
932-
.run_as_user(1000)
933-
.run_as_group(0)
934-
.fs_group(1000)
935-
.build(),
936-
);
930+
.security_context(PodSecurityContextBuilder::new().fs_group(1000).build());
937931

938932
if let Some(user_info) = &opa.spec.cluster_config.user_info {
939933
let mut cb_user_info_fetcher =

0 commit comments

Comments
 (0)