mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 13:58:01 +02:00
Minor updates
- Remove extra warning message while creating standby - Limit the number of pods to 1 for standby cluster
This commit is contained in:
@@ -977,6 +977,11 @@ func (c *Cluster) getNumberOfInstances(spec *acidv1.PostgresSpec) int32 {
|
||||
cur := spec.NumberOfInstances
|
||||
newcur := cur
|
||||
|
||||
/* Limit the max number of pods to one, if this is standby-cluster */
|
||||
if spec.StandbyCluster != nil {
|
||||
c.logger.Infof("Standby cluster can have maximum of 1 pod")
|
||||
max = 1
|
||||
}
|
||||
if max >= 0 && newcur > max {
|
||||
newcur = max
|
||||
}
|
||||
@@ -1285,12 +1290,9 @@ func (c *Cluster) generateStandbyEnvironment(description *acidv1.StandbyDescript
|
||||
return nil
|
||||
}
|
||||
// standby with S3, find out the bucket to setup standby
|
||||
msg := "Standby from S3 bucket"
|
||||
msg := "Standby from S3 bucket using custom parsed S3WalPath %s from the manifest"
|
||||
c.logger.Info(msg, description.S3WalPath)
|
||||
|
||||
msg = "Use custom parsed S3WalPath %s from the manifest"
|
||||
c.logger.Warningf(msg, description.S3WalPath)
|
||||
|
||||
result = append(result, v1.EnvVar{
|
||||
Name: "STANDBY_WALE_S3_PREFIX",
|
||||
Value: description.S3WalPath,
|
||||
|
||||
Reference in New Issue
Block a user