Skip to content

feat: add per-namespace webhook support using namespaceSelector and WEBHOOK_PREFIX #886

@dipensompurasr

Description

@dipensompurasr

Enhancement description

Add per-namespace webhook support in the cloudnative-pg Helm chart using namespaceSelector and WEBHOOK_PREFIX.

When config.clusterWide=false, the chart should:

  • set WEBHOOK_PREFIX to <namespace>- in the operator Deployment
  • create prefixed mutating/validating webhook configuration names
  • scope webhook entries to the release namespace via namespaceSelector

When config.clusterWide=true, existing cluster-wide behavior must remain unchanged.

Related work

This is the Helm chart companion for operator support tracked in cloudnative-pg/cloudnative-pg#10792.

Scope

  • update chart templates for Deployment and webhook configurations
  • add chart template tests validating namespace-scoped and cluster-wide rendering

Metadata

Metadata

Assignees

No one assigned

    Labels

    chart( operator )Related to the operator (cloudnative-pg) chart

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions