Skip to content

test: set runAsUser and runAsGroup for object-store and s3-client - #1146

Merged
mnencia merged 1 commit into
cloudnative-pg:mainfrom
gustabowill:dev/1145
Oct 8, 2026
Merged

mnencia merged 1 commit into
cloudnative-pg:mainfrom
gustabowill:dev/1145

Conversation

@gustabowill

@gustabowill gustabowill commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

The object-store and s3-client deployments in hack/object-store set runAsNonRoot without a numeric user, so the kubelet refuses to start them. The RustFS image names its user instead of giving a number ("image has non-numeric user (rustfs), cannot verify user is non-root"), and the AWS CLI image declares no user, which the kubelet treats as root ("image will run as root").

Run object-store as the rustfs user and group defined by the image (10001:10001), and s3-client as nobody (65534:65534), which the AWS CLI image already ships.

Closes #1145

@gustabowill
gustabowill requested a review from a team as a code owner October 5, 2026 16:25
…nitions

The object-store and s3-client deployments in hack/object-store set runAsNonRoot without a numeric
user, so the kubelet refuses to start them:

- object-store: the RustFS image names its user instead of giving a number ("image has non-numeric
  user (rustfs), cannot verify user is non-root").
- s3-client: the AWS CLI image declares no user, which the kubelet treats as root ("image will run
  as root").

Run object-store as the rustfs user and group defined by the image (10001:10001), and s3-client as
nobody (65534:65534), which the AWS CLI image already ships.

Closes: cloudnative-pg#1145

Signed-off-by: Gustavo William <gustavo.oliveira@enterprisedb.com>
@mnencia mnencia changed the title test: set runAsUser and runAsGroup in object-store and s3-client definitions test: set runAsUser and runAsGroup for object-store and s3-client Oct 8, 2026
@mnencia
mnencia merged commit 7244085 into cloudnative-pg:main Oct 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object store definition missing runAsUser and runAsGroup

4 participants