Skip to content

Commit 3ff7fb3

Browse files
use primary service
Signed-off-by: Mayank Shah <mayank.shah@percona.com>
1 parent 172c718 commit 3ff7fb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

percona/controller/pgcluster/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (r *PGClusterReconciler) getHost(ctx context.Context, cr *v2.PerconaPGClust
3232

3333
// If proxy is not configured, use the pod service
3434
if cr.Spec.Proxy == nil || cr.Spec.Proxy.PGBouncer == nil {
35-
return svcFQDN(naming.ClusterPodService(postgresCluster).Name, postgresCluster.Namespace), nil
35+
return svcFQDN(naming.ClusterPrimaryService(postgresCluster).Name, postgresCluster.Namespace), nil
3636
}
3737

3838
// PGBouncer is not exposed, use the service name

0 commit comments

Comments
 (0)