-
Notifications
You must be signed in to change notification settings - Fork 1k
Refactor connection pooler #1159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c663b87
First commit
d6b4f82
Make connection_pooler a separate package
49f6285
Add interface to use common functions
289b209
place config in a common package
403bbb6
Add pooler for replica
75ea994
Add new pooler service for replica
c1e42a8
Enable connection pooler for replica
dd18c18
Fix labels for the replica pods
4702340
fix for labels selector
99abcdc
Assorted changes
0ce9b50
Fix sync
6d4bb18
Adding test cases and other changes
6fda51c
Improvements in tests
a03397a
Resolve review comments
c692ca2
Minor fix
175f0c5
Refactor needConnectionPooler
fea359f
Update tests
6272377
Add sync test
3ba73fb
Add and update tests
bb51aba
Cleanup deleteConnectionPooler
84fbfe3
Add labels
c63446c
First commit
ae3f5ef
Make connection_pooler a separate package
4700fc7
Add interface to use common functions
4fc7e8d
place config in a common package
11cd11f
Merge branch 'pooler-refac' of https://github.com/zalando/postgres-op…
f7098b8
Modify packages
20f2fb7
Update connection_pooler funcs accordingly
60460c3
fix test cases
5828e2f
avoid passing spec unnecessarily
c891798
Code utilization of syncConnectionPooler
7112995
Fix sync/create issues
cbdc346
fix podSpec test
72e2af8
isolate tests and other updates
3d3bc14
Refactor more methods
e88fa06
minor fix in test
4354b02
another test case fix
2ed0e05
Nitpicks and other changes
07bb270
cleanup and avoid using cluster in more functions
4c70c55
resolve conflicts
49613bd
fix
7b4e850
minor fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this function was named like that in the original code, but judging from what it does,
shouldSyncResources
orneedToSyncResouces
is a better name for it from a readability perspective.