feat(cluster): add `spec.postgresql.synchronous.failoverQuorum` field by leonardoce · Pull Request #8589 · cloudnative-pg/cloudnative-pg

@dosubot dosubot bot added the size:L

This PR changes 100-499 lines, ignoring generated files.

label

Sep 17, 2025

@leonardoce leonardoce changed the title feat: add spec.postgresql.synchronous.failoverQuorum field to Clust… feat: add spec.postgresql.synchronous.failoverQuorum field to Cluster

Sep 17, 2025

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Sep 23, 2025

@gbartolini gbartolini changed the title feat: add spec.postgresql.synchronous.failoverQuorum field to Cluster feat(cluster): add spec.postgresql.synchronous.failoverQuorum field

Sep 25, 2025

gbartolini

…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>

@gbartolini

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>

This was referenced

Sep 29, 2025

rossigee pushed a commit to rossigee/cloudnative-pg that referenced this pull request

Oct 2, 2025
…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>

THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request

Oct 30, 2025
…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>