Skip to content

[kube-prometheus-stack] Add hostUsers support for Prometheus, Alertmanager and ThanosRuler#6734

Open
DrFaust92 wants to merge 2 commits intoprometheus-community:mainfrom
DrFaust92:kube-prometheus-stack-host-users
Open

[kube-prometheus-stack] Add hostUsers support for Prometheus, Alertmanager and ThanosRuler#6734
DrFaust92 wants to merge 2 commits intoprometheus-community:mainfrom
DrFaust92:kube-prometheus-stack-host-users

Conversation

@DrFaust92
Copy link
Contributor

What this PR does / why we need it

Exposes the hostUsers field for Prometheus, Alertmanager, and ThanosRuler CRs, allowing users to opt into Kubernetes user namespaces by setting hostUsers: false.

Added to:

  • alertmanager.alertmanagerSpec.hostUsers
  • prometheus.prometheusSpec.hostUsers
  • thanosRuler.thanosRulerSpec.hostUsers

All default to ~ (nil/unset) to preserve existing behavior. The field is only rendered when explicitly set to a boolean.

Which issue this PR fixes

Special notes for your reviewer

Uses kindIs "bool" guard (same pattern as prometheusOperator.hostUsers) so the field is omitted when nil.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

…nager and ThanosRuler (82.10.4)

Exposes the hostUsers field for Prometheus, Alertmanager, and ThanosRuler CRs,
allowing users to opt into Kubernetes user namespaces (e.g. set hostUsers: false).

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DrFaust92 DrFaust92 changed the title [kube-prometheus-stack] Add hostUsers support for Prometheus, Alertmanager and ThanosRuler (82.10.4) [kube-prometheus-stack] Add hostUsers support for Prometheus, Alertmanager and ThanosRuler Mar 15, 2026
@QuentinBisson
Copy link
Member

@DrFaust92 can you bump the chart version?

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.

[all] Allow enabling user namespaces

2 participants