feat(cluster): add spec.postgresql.synchronous.failoverQuorum field#8589
Conversation
spec.postgresql.synchronous.failoverQuorum field to Clust…spec.postgresql.synchronous.failoverQuorum field to Cluster
|
❗ By default, the pull request is configured to backport to all release branches.
|
a234138 to
91dd116
Compare
|
/test |
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17802097945 |
91dd116 to
54b6cf8
Compare
|
This PR is not adding E2e tests for the failover quorum feature, those will come in a subsequent PR. |
54b6cf8 to
a7e0d90
Compare
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17950294461 |
spec.postgresql.synchronous.failoverQuorum field to Clusterspec.postgresql.synchronous.failoverQuorum field
15bb7e2 to
ba76f16
Compare
|
/test |
|
@gbartolini, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18004267495 |
ba76f16 to
ceb58d8
Compare
|
/test |
|
@gbartolini, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18010989409 |
…er CRD This patch introduces a native configuration field, `spec.postgresql.synchronous.failoverQuorum`, which allows users to enable or disable the failover quorum feature directly in the Cluster spec. Behavior for existing clusters using the `alpha.cnpg.io/failoverQuorum` annotation remains unchanged: the mutating webhook will automatically set the new field to honor the annotation. If both the annotation and the field are set, the annotation takes precedence. See: cloudnative-pg#8170 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
bb047ff to
097ea40
Compare
|
/test |
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18021184584 |
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
…cloudnative-pg#8589) Introduce a native configuration field, `spec.postgresql.synchronous.failoverQuorum`, allowing users to enable or disable the failover quorum feature directly in the `Cluster` spec. Existing clusters using the `alpha.cnpg.io/failoverQuorum` annotation are unaffected: the mutating webhook automatically sets the new field to honour the annotation. The annotation takes precedence if both the annotation and the field are set. Deprecation notice: the `alpha.cnpg.io/failoverQuorum` annotation is deprecated. Users are encouraged to migrate to the native `.spec.postgresql.synchronous.failoverQuorum` option and remove the annotation from their manifests. The annotation will be removed in a future release. Closes cloudnative-pg#8170 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
…cloudnative-pg#8589) Introduce a native configuration field, `spec.postgresql.synchronous.failoverQuorum`, allowing users to enable or disable the failover quorum feature directly in the `Cluster` spec. Existing clusters using the `alpha.cnpg.io/failoverQuorum` annotation are unaffected: the mutating webhook automatically sets the new field to honour the annotation. The annotation takes precedence if both the annotation and the field are set. Deprecation notice: the `alpha.cnpg.io/failoverQuorum` annotation is deprecated. Users are encouraged to migrate to the native `.spec.postgresql.synchronous.failoverQuorum` option and remove the annotation from their manifests. The annotation will be removed in a future release. Closes cloudnative-pg#8170 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
Introduce a native configuration field,
spec.postgresql.synchronous.failoverQuorum, allowing users to enable or disable the failover quorum feature directly in theClusterspec.Existing clusters using the
alpha.cnpg.io/failoverQuorumannotation are unaffected: the mutating webhook automatically sets the new field to honour the annotation.The annotation takes precedence if both the annotation and the field are set.
Deprecation notice: the
alpha.cnpg.io/failoverQuorumannotation is deprecated. Users are encouraged to migrate to the native.spec.postgresql.synchronous.failoverQuorumoption and remove the annotation from their manifests. The annotation will be removed in a future release.Closes #8170