Documentation
¶
Overview ¶
Package majorupgrade provides the logic for upgrading a PostgreSQL cluster to a new major version.
The upgrade process consists of the following steps:
- Delete all Pods in the cluster.
- Create and initiate the major upgrade job (BackoffLimit=0, no retries).
- Wait for the job to complete.
- If the upgrade job completes successfully, start new Pods for the upgraded version. If the user reverts the image to the previous major version, the operator automatically deletes the failed upgrade job and lets the cluster restart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncoherentMajorUpgradeJob = fmt.Errorf("major upgrade job is missing the target image")
ErrIncoherentMajorUpgradeJob is raised when the major upgrade job is missing the target image
View Source
var ErrNoPrimaryPVCFound = fmt.Errorf("no primary PVC found")
ErrNoPrimaryPVCFound is raised when the list of PVCs doesn't include any primary instance.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.