diff --git a/pkg/cluster/k8sres.go b/pkg/cluster/k8sres.go index 6717238ee280849b37dd05a60e8a1367e8746bbe..9d4c614a5422c1fc1b6fb03e43f61ed718dbc12f 100644 --- a/pkg/cluster/k8sres.go +++ b/pkg/cluster/k8sres.go @@ -107,7 +107,7 @@ func (c *Cluster) servicePort(role PostgresRole) int32 { } c.logger.Warningf("No service for role %s - defaulting to port 5432", role) - return 5432 + return pgPort } func (c *Cluster) podDisruptionBudgetName() string {