Skip to content

Commit 2539dc1

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/versioned-common-structs
2 parents ebcf825 + e180515 commit 2539dc1

File tree

11 files changed

+18
-20
lines changed

11 files changed

+18
-20
lines changed

.github/workflows/pr_pre-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: pre-commit
33

44
on:
55
pull_request:
6+
merge_group:
67

78
env:
89
CARGO_TERM_COLOR: always

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repos:
6868
language: system
6969
entry: make regenerate-nix
7070
stages: [pre-commit, pre-merge-commit]
71-
pass_filename: false
71+
pass_filenames: false
7272
files: Cargo\.lock
7373

7474
- id: cargo-test

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ All notable changes to this project will be documented in this file.
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 ([#671]).
2424
- test: Bump to Vector `0.46.1` ([#677]).
25+
- BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([#683])
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
2529
- Use versioned common structs ([#684]).
2630

2731
### Fixed
@@ -40,6 +44,7 @@ All notable changes to this project will be documented in this file.
4044
[#672]: https://github.com/stackabletech/hdfs-operator/pull/672
4145
[#675]: https://github.com/stackabletech/hdfs-operator/pull/675
4246
[#677]: https://github.com/stackabletech/hdfs-operator/pull/677
47+
[#683]: https://github.com/stackabletech/hdfs-operator/pull/683
4348
[#684]: https://github.com/stackabletech/hdfs-operator/pull/684
4449

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

nix/sources.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/operator-binary/src/crd/constants.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,3 @@ pub const DATANODE_ROOT_DATA_DIR_SUFFIX: &str = "/datanode";
8282

8383
pub const LISTENER_VOLUME_NAME: &str = "listener";
8484
pub const LISTENER_VOLUME_DIR: &str = "/stackable/listener";
85-
86-
pub const HDFS_UID: i64 = 1000;

rust/operator-binary/src/hdfs_controller.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,7 @@ fn rolegroup_statefulset(
827827
.image_pull_secrets_from_product_image(resolved_product_image)
828828
.affinity(&merged_config.affinity)
829829
.service_account_name(service_account.name_any())
830-
.security_context(
831-
PodSecurityContextBuilder::new()
832-
.run_as_user(HDFS_UID)
833-
.run_as_group(0)
834-
.fs_group(1000)
835-
.build(),
836-
);
830+
.security_context(PodSecurityContextBuilder::new().fs_group(1000).build());
837831

838832
// Adds all containers and volumes to the pod builder
839833
// We must use the selector labels ("rolegroup_selector_labels") and not the recommended labels

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ 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 %}
14+
pullPolicy: IfNotPresent
915
servers:
1016
roleGroups:
1117
default: {}

tests/templates/kuttl/kerberos/30-access-hdfs.txt.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,4 @@ spec:
8686
storage: "1"
8787
securityContext:
8888
fsGroup: 1000
89-
runAsGroup: 1000
90-
runAsUser: 1000
9189
restartPolicy: OnFailure

tests/templates/kuttl/kerberos/32-check-file.txt.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,4 @@ spec:
5858
storage: "1"
5959
securityContext:
6060
fsGroup: 1000
61-
runAsGroup: 1000
62-
runAsUser: 1000
6361
restartPolicy: OnFailure

tests/templates/kuttl/topology-provider/20-access-hdfs.yaml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,5 @@ commands:
6464
storage: "1"
6565
securityContext:
6666
fsGroup: 1000
67-
runAsGroup: 1000
68-
runAsUser: 1000
6967
restartPolicy: OnFailure
7068
EOF

tests/test-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dimensions:
2424
- 1.21.1
2525
- name: opa
2626
values:
27-
- 1.0.1
27+
- 1.4.2
2828
- name: number-of-datanodes
2929
values:
3030
- "1"

0 commit comments

Comments
 (0)