Documentation ¶
Index ¶
- func ConfigMap(inCluster *v1beta1.PostgresCluster, outConfigMap *corev1.ConfigMap)
- func DisableInPostgreSQL(ctx context.Context, exec postgres.Executor) error
- func EnableInPostgreSQL(ctx context.Context, exec postgres.Executor, clusterSecret *corev1.Secret) error
- func Pod(inCluster *v1beta1.PostgresCluster, inConfigMap *corev1.ConfigMap, ...)
- func PostgreSQL(inCluster *v1beta1.PostgresCluster, outHBAs *postgres.HBAs)
- func Secret(ctx context.Context, inCluster *v1beta1.PostgresCluster, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMap ¶
func ConfigMap( inCluster *v1beta1.PostgresCluster, outConfigMap *corev1.ConfigMap, )
ConfigMap populates the PgBouncer ConfigMap.
func DisableInPostgreSQL ¶
DisableInPostgreSQL removes any objects created by EnableInPostgreSQL.
func EnableInPostgreSQL ¶
func EnableInPostgreSQL( ctx context.Context, exec postgres.Executor, clusterSecret *corev1.Secret, ) error
EnableInPostgreSQL creates the PgBouncer user, schema, and SECURITY DEFINER function that allows it to authenticate clients using their password stored in PostgreSQL.
func Pod ¶
func Pod( inCluster *v1beta1.PostgresCluster, inConfigMap *corev1.ConfigMap, inPostgreSQLCertificate *corev1.SecretProjection, inSecret *corev1.Secret, outPod *corev1.PodSpec, )
Pod populates a PodSpec with the container and volumes needed to run PgBouncer.
func PostgreSQL ¶
func PostgreSQL( inCluster *v1beta1.PostgresCluster, outHBAs *postgres.HBAs, )
PostgreSQL populates outHBAs with any records needed to run PgBouncer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.