Skip to content

Commit e95b862

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent a0be18c commit e95b862

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/api/v1/cluster_types.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ type ClusterSpec struct {
408408

409409
// Method to follow to upgrade the primary server during a rolling
410410
// update procedure, after all replicas have been successfully updated:
411-
// it can be with a switchover (`switchover`) or in-place (`restart` - default)
411+
// it can be with a switchover (`switchover`) or in-place (`restart` - default).
412+
// Note: when using `switchover`, the operator will reject updates that change both
413+
// the image name and PostgreSQL configuration parameters simultaneously to avoid
414+
// configuration mismatches during the switchover process.
412415
// +kubebuilder:default:=restart
413416
// +kubebuilder:validation:Enum:=switchover;restart
414417
// +optional
@@ -1310,7 +1313,10 @@ const (
13101313
PrimaryUpdateStrategyUnsupervised PrimaryUpdateStrategy = "unsupervised"
13111314

13121315
// PrimaryUpdateMethodSwitchover means that the operator will switchover to another updated
1313-
// replica when it needs to upgrade the primary instance
1316+
// replica when it needs to upgrade the primary instance.
1317+
// Note: when using this method, the operator will reject updates that change both
1318+
// the image name and PostgreSQL configuration parameters simultaneously to avoid
1319+
// configuration mismatches during the switchover process.
13141320
PrimaryUpdateMethodSwitchover PrimaryUpdateMethod = "switchover"
13151321

13161322
// PrimaryUpdateMethodRestart means that the operator will restart the primary instance in-place

0 commit comments

Comments
 (0)