stackabletech / docker-images

Product images for the Stackable Data Platform
https://docs.stackable.tech/home/stable/operators/
Apache License 2.0
17 stars 4 forks source link

Change default user id and gid #916

Open lfrancke opened 2 weeks ago

lfrancke commented 2 weeks ago

Description

Part of https://github.com/stackabletech/issues/issues/645

[!IMPORTANT]
This should only be merged after the 24.11 release so it'll only make it into 25.3

Change default user id and gid to the same ones we use in the operators themselves. These are only the defaults that are used when a Pod does not specify its own securityContext.runAsUser or runAsGroup.

As of now all our operators do set these (and fsGroup) to 1000 and 0 respectively. As the next step we want to remove that hardcoding so the default would then fall back to what we specify here.

Therefore I do believe that this PR should be a simple change with no downstream consequences.

Definition of Done Checklist

- [ ] Changes are OpenShift compatible
- [x] Add an entry to the CHANGELOG.md file
- [ ] Integration tests ran successfully
TIP: Running integration tests with a new product image The image can be built and uploaded to the kind cluster with the following commands: ```shell bake --product --image-version kind load docker-image --name= ``` See the output of `bake` to retrieve the image tag for ``.
stackable-bot commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.