PostgreSQL populates outHBAs with any records needed to run PgBouncer.
( inCluster *v1beta1.PostgresCluster, outHBAs *postgres.HBAs, )
| 229 | |
| 230 | // PostgreSQL populates outHBAs with any records needed to run PgBouncer. |
| 231 | func PostgreSQL( |
| 232 | inCluster *v1beta1.PostgresCluster, |
| 233 | outHBAs *postgres.HBAs, |
| 234 | ) { |
| 235 | if inCluster.Spec.Proxy == nil || inCluster.Spec.Proxy.PGBouncer == nil { |
| 236 | // PgBouncer is disabled; there is nothing to do. |
| 237 | return |
| 238 | } |
| 239 | |
| 240 | outHBAs.Mandatory = append(outHBAs.Mandatory, postgresqlHBAs()...) |
| 241 | } |