mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 15:36:29 +02:00
fetch pooler and fes_user system user only when corresponding features are used (#2009)
* fetch pooler and fes_user system user only when corresponding features are used * cover error case in unit test * use string formatting instead of +
This commit is contained in:
@@ -46,7 +46,7 @@ type ConnectionPoolerObjects struct {
|
||||
func (c *Cluster) connectionPoolerName(role PostgresRole) string {
|
||||
name := c.Name + "-pooler"
|
||||
if role == Replica {
|
||||
name = name + "-repl"
|
||||
name = fmt.Sprintf("%s-%s", name, "repl")
|
||||
}
|
||||
return name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user