From 8b60ab7b3ac91f0fbda3256a21a1f20bd45e98ba Mon Sep 17 00:00:00 2001 From: MobarakHsn Date: Fri, 31 May 2024 11:51:51 +0600 Subject: [PATCH] Remove Pgpool pcp service Signed-off-by: MobarakHsn --- apis/kubedb/v1alpha2/constants.go | 4 ++-- apis/kubedb/v1alpha2/pgpool_helpers.go | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apis/kubedb/v1alpha2/constants.go b/apis/kubedb/v1alpha2/constants.go index a36c2bdbe7..f55f3a1eef 100644 --- a/apis/kubedb/v1alpha2/constants.go +++ b/apis/kubedb/v1alpha2/constants.go @@ -579,7 +579,7 @@ const ( PgpoolContainerName = "pgpool" PgpoolDefaultServicePort = 9999 PgpoolMonitoringDefaultServicePort = 9719 - PgpoolPcpServicePort = 9595 + PgpoolPcpPort = 9595 PgpoolExporterDatabase = "postgres" EnvPgpoolExporterDatabase = "POSTGRES_DATABASE" EnvPgpoolService = "PGPOOL_SERVICE" @@ -597,7 +597,7 @@ const ( PgpoolRootUser = "postgres" PgpoolPrimaryServicePortName = "primary" PgpoolDatabasePortName = "db" - PgpoolPcpServicePortName = "pcp" + PgpoolPcpPortName = "pcp" PgpoolCustomConfigFile = "pgpool.conf" // ========================================== ZooKeeper Constants =================================================// diff --git a/apis/kubedb/v1alpha2/pgpool_helpers.go b/apis/kubedb/v1alpha2/pgpool_helpers.go index 6d56e066af..29a45b334a 100644 --- a/apis/kubedb/v1alpha2/pgpool_helpers.go +++ b/apis/kubedb/v1alpha2/pgpool_helpers.go @@ -104,10 +104,6 @@ func (p *Pgpool) ServiceName() string { return p.OffshootName() } -func (p *Pgpool) PcpServiceName() string { - return meta_util.NameWithSuffix(p.ServiceName(), "pcp") -} - // Owner returns owner reference to resources func (p *Pgpool) Owner() *meta.OwnerReference { return meta.NewControllerRef(p, SchemeGroupVersion.WithKind(p.ResourceKind()))