Skip to content

Helm: ship the sidecar-injector plugin as its own chart (for use with an existing CloudNativePG) #523

Open

Description

@utkuerol

Context

We run DocumentDB on our own CloudNativePG operator and only need the cnpg-i-sidecar-injector.documentdb.io plugin to inject the gateway. (Related: #522, #465.)

Problem

The plugin only ships inside documentdb-operator. Installing that chart always installs the DocumentDB operator, its validating webhook and CRDs, and the preflight checks; cloudnative-pg can be turned off, but nothing else can. To get just the plugin, users copy 02_documentdb_sidecar_injector.yaml (Service with the cnpg.io/pluginName label, Deployment, cert-manager Issuer and Certificates) into their own chart and track upstream changes by hand.

Proposal

Publish the plugin as a standalone chart, e.g. documentdb-sidecar-injector, versioned with the plugin image:

  • the Service, Deployment and cert-manager resources from 02_documentdb_sidecar_injector.yaml, with image, resources, replicas and an optional PodDisruptionBudget as values
  • installed into the CloudNativePG operator's namespace (CNPG discovers plugins there)
  • documentdb-operator depends on it as a subchart, so there is one source of truth

A lighter alternative: values toggles in documentdb-operator (e.g. operator.enabled, webhook.enabled, crds.enabled) so it can install only the plugin.

Happy to contribute a PR for either once you've picked one.

Activity

  1. documentdb-triage-tool commented on Nov 20, 2026

    @documentdb-triage-tool

    🤖 Auto-triaged by documentdb-triage-tool.

    Applied: enhancement
    Project fields suggested: Component manifests · Priority P2 · Effort L · Status Triage
    Confidence: 0.75 (llm)

    Reasoning

    LLM: Feature request to split the sidecar-injector plugin into a standalone Helm chart (or add granular values toggles), touching chart structure, manifests, and subchart dependencies across multiple files.

    If a label is wrong, ping @patty-chow so the rules can be tuned. Issues with component labels are left alone; PR component labels are reconciled from changed paths on every run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtriage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions