Skip to content

Autoconfigure Webhook namespace selector based on drained namespaces - #232

Merged
scholzj merged 1 commit into
strimzi:mainfrom
scholzj:autoconfigure-namespace-selector-based-on-drainer-namespaces
Nov 22, 2026
Merged

scholzj merged 1 commit into
strimzi:mainfrom
scholzj:autoconfigure-namespace-selector-based-on-drainer-namespaces

Conversation

@scholzj

@scholzj scholzj commented Nov 22, 2026

Copy link
Copy Markdown
Member

Type of Change

  • Task

Description

The drainNamespaces flag in the Helm Chart currently configures:

  • The RBAC roles that the Helm Chart installs
  • The Namespaces to which the Drain Cleaner reacts and handles Pods in them

But it currently does not configure the Webhook namespace selector. So even through it would not have any rights to handle Pods in other namespaces and it would actually not try to handle them, it will still receive the eviction events for all namespaces by default.

This PR updates the Helm Chart to set the Webhook namespace selector automatically as well to the same namespaces and that way we should receive only the events for the Pods in the namespaces we care about and have the RBAC rights for. However, users can still override this webhook namespace selector by configuring an explicit user-defined namespace selector.

Checklist

  • Update documentation
  • Make sure all tests pass
  • AI assistance was used to create this PR (see the Strimzi AI policy)

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj added this to the 1.9.0 milestone Nov 22, 2026
@scholzj
scholzj merged commit 04d89e6 into strimzi:main Nov 22, 2026
15 checks passed
@scholzj
scholzj deleted the autoconfigure-namespace-selector-based-on-drainer-namespaces branch November 22, 2026 16:06
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.

2 participants