Skip to content

Commit 8a13dc9

Browse files
committed
Merge branch 'main' into chore/updates-25.7
2 parents 7832447 + ae89c00 commit 8a13dc9

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
- BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead
2222
of having the operator write it to the vector config ([#645]).
2323
- test: Bump to Vector `0.46.1` ([#657]).
24+
- test: Bump OPA to `1.4.2` ([#661]).
25+
- BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#660])
26+
- The `runAsUser` and `runAsGroup` fields will not be set anymore by the operator
27+
- The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
28+
- This is marked as breaking because tools and policies might exist, which require these fields to be set
2429

2530
### Fixed
2631

@@ -41,6 +46,8 @@
4146
[#655]: https://github.com/stackabletech/hbase-operator/pull/655
4247
[#657]: https://github.com/stackabletech/hbase-operator/pull/657
4348
[#659]: https://github.com/stackabletech/hbase-operator/pull/659
49+
[#660]: https://github.com/stackabletech/hbase-operator/pull/660
50+
[#661]: https://github.com/stackabletech/hbase-operator/pull/661
4451

4552
## [25.3.0] - 2025-03-21
4653

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:

tests/templates/kuttl/opa/11-install-opa.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ metadata:
55
name: opa
66
spec:
77
image:
8+
{% if test_scenario['values']['opa'].find(",") > 0 %}
9+
custom: "{{ test_scenario['values']['opa'].split(',')[1] }}"
10+
productVersion: "{{ test_scenario['values']['opa'].split(',')[0] }}"
11+
{% else %}
812
productVersion: "{{ test_scenario['values']['opa'] }}"
13+
{% endif %}
914
pullPolicy: IfNotPresent
1015
servers:
1116
config:

0 commit comments

Comments
 (0)