Skip to content

Commit

Permalink
default port set
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed May 28, 2024
1 parent 0238342 commit 271baa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pgbouncer/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (

const (
DefaultBackendDBType = "postgres"
DefaultPgBouncerPort = api.PgBouncerDatabasePort
TLSModeDisable = "disable"
)

Expand Down Expand Up @@ -188,7 +187,7 @@ func (o *KubeDBClientBuilder) getConnectionString() (string, error) {
if o.backendDBType == "" {
o.backendDBType = DefaultBackendDBType
}
var listeningPort int = DefaultPgBouncerPort
var listeningPort int = api.PgBouncerDatabasePort
if o.pgbouncer.Spec.ConnectionPool.Port != nil {
listeningPort = int(*o.pgbouncer.Spec.ConnectionPool.Port)
}
Expand Down

0 comments on commit 271baa0

Please sign in to comment.