Skip to content

Commit 8f4b8f0

Browse files
author
Jonathan S. Katz
committed
Ensure pgBouncer port is derived from Cluster spec
Previously, it was derived from the Postgres Operator configuration, which is actually incorrect for several reasons, so technically this constitutes a bug. Issue: #1830
1 parent c74afa3 commit 8f4b8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/cluster/pgbouncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func createPgBouncerDeployment(clientset *kubernetes.Clientset, cluster *crv1.Pg
464464
ClusterName: cluster.Name,
465465
CCPImagePrefix: util.GetValueOrDefault(cluster.Spec.CCPImagePrefix, operator.Pgo.Cluster.CCPImagePrefix),
466466
CCPImageTag: cluster.Spec.CCPImageTag,
467-
Port: operator.Pgo.Cluster.Port,
467+
Port: cluster.Spec.Port,
468468
PGBouncerSecret: util.GeneratePgBouncerSecretName(cluster.Name),
469469
ContainerResources: operator.GetResourcesJSON(cluster.Spec.PgBouncer.Resources,
470470
cluster.Spec.PgBouncer.Limits),

0 commit comments

Comments
 (0)