mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 16:03:02 +02:00
Use fake client for connection pooler (#1301)
Connection pooler creation, deletion, and synchronization now tested using fake client API. Co-authored-by: Rafia Sabih <rafia.sabih@zalando.de>
This commit is contained in:
co-authored by
Rafia Sabih
parent
2b45478f3a
commit
a9b677c957
@@ -713,7 +713,7 @@ func (c *Cluster) syncConnectionPooler(oldSpec, newSpec *acidv1.Postgresql, Look
|
||||
// as per spec, hence do not skip syncing in that case, even though there
|
||||
// is no diff in specs
|
||||
if (!needSync && len(masterChanges) <= 0 && len(replicaChanges) <= 0) &&
|
||||
(c.ConnectionPooler != nil && *newSpec.Spec.EnableConnectionPooler) {
|
||||
(c.ConnectionPooler != nil && (needConnectionPooler(&newSpec.Spec))) {
|
||||
c.logger.Debugln("syncing pooler is not required")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user