Skip to content

feat: support namespaced webhook configurations for multi-operator deployments#890

Open
maxlengdell wants to merge 1 commit into
cloudnative-pg:mainfrom
maxlengdell:dev/889
Open

feat: support namespaced webhook configurations for multi-operator deployments#890
maxlengdell wants to merge 1 commit into
cloudnative-pg:mainfrom
maxlengdell:dev/889

Conversation

@maxlengdell
Copy link
Copy Markdown

Add config.namespacedWebhooks option that, when enabled:

  • Appends the operator namespace to webhook configuration names
  • Sets ENABLE_WEBHOOK_NAMESPACE_SUFFIX env var on the operator
  • Adds namespaceSelector to webhook entries to scope them to the operator's namespace

This allows multiple CloudNativePG operators to run in single-namespace mode on the same cluster without webhook name collisions.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 1, 2026
…ployments

Add config.namespacedWebhooks option that, when enabled:
- Appends the operator namespace to webhook configuration names
- Sets ENABLE_WEBHOOK_NAMESPACE_SUFFIX env var on the operator
- Adds namespaceSelector to webhook entries to scope them to the
  operator's namespace

This allows multiple CloudNativePG operators to run in single-namespace
mode on the same cluster without webhook name collisions.

Signed-off-by: Max Lengdell <max.a.lengdell@ericsson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant