Have pgBouncer come up with specified # of replicas on startup
This was defaulting to 1 instead of taking the value that was in
the pgcluster CRD.
Issue: [ch8675]
@@ -740,6 +740,11 @@ func ScaleClusterDeployments(clientset kubernetes.Interface, cluster crv1.Pgclus
if !scalePGBouncer {
continue
}
+ // if the replica total is greater than 0, set number of pgBouncer
+ // replicas to the number that is specified in the cluster entry
+ if replicas > 0 {
+ replicas = int(cluster.Spec.PgBouncer.Replicas)
+ }
case deployment.Labels[config.LABEL_PGO_BACKREST_REPO] == "true":
clusterInfo.PGBackRestRepoDeployment = deployment.Name
// if not scaling services simply move on to the next deployment
