Repository navigation
feat: add .spec.replicaCluster.primary field - #4388
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8847312403 |
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8847457676 |
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8875148319 |
7dc7fee to
cdd3a45
Compare
1d72356 to
3ca301d
Compare
Closes #3942 Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Fix a validation bug and use the new api in some tests Signed-off-by: Francesco Canovai <[email protected]>
|
/ok-to-merge e2e failures are not related |
This patch introduces changes to the handling of the
.spec.replica.enabledfield, allowing it to be set tonil. Prior to this patch, onlytrueandfalsewere permitted, withfalsebeing the default. When the.spec.replica.enabledfield is set tonil, the cluster's classification as a primary or replica cluster will be determined by two new fields,.spec.replica.primaryand.spec.replica.self.The
.spec.replica.selffield specifies the name of the current cluster, which will be compared with the.spec.externalClusters[].namefield. The.spec.replica.primaryfield specifies the name of the current primary cluster, which will be searched in the same list.Under the new behavior, when the
.spec.replica.enabledfield is set toniland the.spec.replica.primaryand.spec.replica.selffields contain the same value, the cluster is classified as a primary cluster.Conversely, when the
.spec.replica.enabledfield isniland the values of.spec.replica.primaryand.spec.replica.selfdiffer, the cluster will be classified as a replica cluster.The purpose of this patch is to streamline the configuration process for a distributed PostgreSQL topology, where the
.spec.externalClusterssection is synchronized across different data centers.Closes #3942