Bug in major upgrade

This commit is contained in:
inovindasari 2025-03-13 12:34:00 +01:00
parent 68c4b49636
commit 7cdf2a82cc
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ func (c *Cluster) majorVersionUpgrade() error {
isUpgradeSuccess = false
c.annotatePostgresResource(isUpgradeSuccess)
c.eventRecorder.Eventf(c.GetReference(), v1.EventTypeWarning, "Major Version Upgrade", "upgrade from %d to %d FAILED: %v", c.currentMajorVersion, desiredVersion, scriptErrMsg)
c.logger.Errorf("upgrade action triggered and command failed: %s", err)
return fmt.Errorf(scriptErrMsg)
}