-
Notifications
You must be signed in to change notification settings - Fork 23
CLOUDP-353180: Refactor replica set controller state handling, and use helper pattern #544
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 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
90387b0
Refactor state reading
Julien-Ben bf0ead1
Refactor state writing
Julien-Ben ab6e334
Refactor to helper pattern
Julien-Ben a3fae90
Moved all methods to helper
Julien-Ben e714e04
Use helper pattern for reconcileHostnameOverrideConfigMap
Julien-Ben 430cb51
Lint
Julien-Ben 894ef00
Rename variables for consistency
Julien-Ben 4bb174c
typo
Julien-Ben 0ae98c8
Rename r := h.reconciler to reconciler
Julien-Ben 95f0686
Rename helper receivers to r
Julien-Ben 08ffa3e
Remove TODOs
Julien-Ben c99c221
Refactor onDelete
Julien-Ben 5e39e4a
Move comments
Julien-Ben 279a7ac
Update vault annotations only when reconciliation is successful
Julien-Ben 5f5cebd
Handle PVC Resize in a separate method
Julien-Ben e88439b
Merge branch 'master' into jben/refactor-state-and-helper-pattern
Julien-Ben b831d72
Add status member count to the state
Julien-Ben ac8fb33
Uncapitalize errors
Julien-Ben a777b2f
Write lastAchievedSpec only on successful reconciliation, separate va…
Julien-Ben d5bdd18
Rename MemberCountBefore
Julien-Ben bbb173b
Some unit tests for the annotations
Julien-Ben 6ce9706
Merge master into jben/refactor-state-and-helper-pattern
Julien-Ben 2b0d2be
lint
Julien-Ben 9ae637a
Rename variable, remove JSON export
Julien-Ben 370e67b
PR feedback
Julien-Ben 23add7f
Don't export deployment state struct
Julien-Ben ac3d00f
Remove writeState method for now
Julien-Ben 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
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.
This function is now used by the standalone controller only.
The reason we don't want it any more is because it acceeds the spec with m.GetLastSpec()
We now do it only once per reconcile