Skip to content

Feat: add user namespaces support for Thanos#7769

Merged
simonpasquier merged 2 commits intoprometheus-operator:mainfrom
nutmos:feat/enable-user-namespace-thanos
Aug 7, 2025
Merged

Feat: add user namespaces support for Thanos#7769
simonpasquier merged 2 commits intoprometheus-operator:mainfrom
nutmos:feat/enable-user-namespace-thanos

Conversation

@nutmos
Copy link
Contributor

@nutmos nutmos commented Aug 3, 2025

Description

Add the HostUsers field to support user namespace feature in Kubernetes in Thanos.

https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/

Relate #7758

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Unit Tests

Changelog entry

- Add the HostUsers field in the ThanosRuler spec to support the user namespace feature.

@nutmos nutmos marked this pull request as ready for review August 5, 2025 00:00
@nutmos nutmos requested a review from a team as a code owner August 5, 2025 00:00
ImagePullSecrets: imagePullSecrets,
ImagePullPolicy: imagePullPolicy,
AdditionalArgs: additionalArgs,
HostUsers: &hostUsers,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit)

Suggested change
HostUsers: &hostUsers,
HostUsers: ptr.To(true),

@nutmos nutmos requested a review from simonpasquier August 6, 2025 23:47
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@simonpasquier simonpasquier merged commit 5d714ab into prometheus-operator:main Aug 7, 2025
23 checks passed
miinsun pushed a commit to miinsun/prometheus-operator that referenced this pull request Aug 15, 2025
…ser-namespace-thanos

Feat: add user namespaces support for Thanos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants