Skip to content

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Apr 9, 2021

Pooler deployment is updated on each sync:

time="2021-04-08T16:55:56Z" level=info msg="Update connection pooler deployment acid-minimal-cluster-pooler, reason: [pooler user is different (having pooler.acid-minimal-cluster.credentials.postgresql.acid.zalan.do, required pooler)]" cluster-name=default/acid-minimal-cluster pkg=cluster

The message is a bit confusing because it's the secrets which are compared. The current code uses deployment.ClusterName which is (or can be?) empty, hence producing a reason to update the deployment on every sync. The solution suggested in this PR is to use the Name field of the cluster. Thus, making needSyncConnectionPoolerDefaults a cluster method.

@FxKu FxKu force-pushed the pooler-sync-clustername branch from 4a7b991 to b717ce5 Compare April 9, 2021 08:20
@FxKu FxKu added this to the 1.6.3 milestone Apr 9, 2021
@sdudoladov
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Apr 9, 2021

👍

@FxKu FxKu merged commit 6b73ac4 into master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants