feat(cluster): expose declarative logical replication (Publication/Subscription) - #973
Open
philippemnoel wants to merge 1 commit into
Open
Conversation
…bscription) Adds `publications` and `subscriptions` values that render CNPG `Publication` and `Subscription` resources, plus a top-level `externalClusters` passthrough so a standalone cluster can reach the external publisher a subscription points at. Claude-Session: https://claude.ai/code/session_01PkQZAEh2YptQhk9ENfmKy8 Signed-off-by: Philippe Noël <philippemnoel@gmail.com>
philippemnoel
force-pushed
the
phil/declarative-logical-replication
branch
from
July 26, 2026 15:00
96451ba to
8694c97
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
clusterchart viapublicationsandsubscriptions, rendered asPublication/Subscriptionresources.externalClusterspassthrough, injected into theClusterspec in any mode, so astandalonecluster can name the publisher a subscription points at.values.yaml,values.schema.jsonand the README, with publisher/subscriber examples.Why
The chart surfaces CNPG's one-shot
recovery.import, but not continuous logical replication — the mechanism behind a near-zero-downtime migration.cluster.externalClusterspreviously emitted entries only for therecovery/replicabootstraps, so astandalonesubscriber had no way to reference its publisher.Backwards compatibility
All three values default to
[]. The new templates then render nothing, andexternalClusters:is emitted under exactly the same conditions as before.Tests
helm lint charts/cluster, andhelm templateover everyexamples/andtest/values file diffed againstmain: byte-identicalClustermanifests.logical-replicationchainsaw test: a publisher cluster declaratively publishes a table, a subscriber consumes it through a user-definedexternalClustersentry, and the row is asserted to replicate.