From 271baa0217607665cc4281cb845d2b8e4b834497 Mon Sep 17 00:00:00 2001 From: Hiranmoy Das Chowdhury Date: Tue, 28 May 2024 10:33:51 +0600 Subject: [PATCH] default port set Signed-off-by: Hiranmoy Das Chowdhury --- pgbouncer/kubedb_client_builder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgbouncer/kubedb_client_builder.go b/pgbouncer/kubedb_client_builder.go index 276587c73..6099bcbc0 100644 --- a/pgbouncer/kubedb_client_builder.go +++ b/pgbouncer/kubedb_client_builder.go @@ -33,7 +33,6 @@ import ( const ( DefaultBackendDBType = "postgres" - DefaultPgBouncerPort = api.PgBouncerDatabasePort TLSModeDisable = "disable" ) @@ -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) }