Skip to content

Define and enforce CNPG version compatibility for BYO mode #380

Open

Description

@WentingWu666666

Context

PR #379 introduced a toggle that lets users opt out of the bundled CloudNative-PG installation and bring their own (BYO mode). Today, when users enable BYO, the DocumentDB operator runs against whatever CNPG version they already have installed which could be older or newer than what we test against.

There is currently no declared supported CNPG version range, no runtime detection, and no enforcement. Out-of-range combinations will likely fail in subtle ways at runtime (silent backup skips, replication issues, restore problems) that look like DocumentDB operator bugs but are actually version mismatches.

Goal

Make the BYO compatibility contract explicit, testable, and enforceable before BYO is recommended in user-facing documentation.

Out of scope

  • Defining the specific implementation open to the assignee's design.
  • Supporting every CNPG version that ever existed. The point is a clear, narrow, well-tested range.

References

Activity

  1. added
    enhancement
    on May 18, 2026
  2. documentdb-triage-tool commented on May 18, 2026

    @documentdb-triage-tool

    🤖 Auto-triaged by documentdb-triage-tool.

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

    Reasoning

    LLM: Defining, detecting, and enforcing a CNPG version compatibility contract for BYO mode touches runtime logic, validation, and potentially schema/config, spanning multiple files across the operator internals.

    If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

  3. added
    go
    on May 18, 2026
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

    enhancementgo

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions