-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PTEUDO-1562 rewrite migration logic of controller (#324)
* PTEUDO-1562 rewrite migration logic of controller The state machine was not being used effectively to go from the new cloud db step to the migration step. The controller now reconciles fully after a database is created and requeues. On next requeue, controller performs a migration to the new database. I attempted to identify issues storing, retrieiving and using db credentials. In all places possible, a uri dsn is now used. There is still significant cleanup in this regard. The usage of storing state in requestinfo needs to be eliminated. RequestInfo makes the code perform in a spaghetti fashion where you follow logic only to find it calling other states non-recurisvely or putting the dbc in a broken state when random errors occur. - fix grant/revoke superuser - support gcp alloydb roles - pass cloud into dbclient pkg calls - ignore sql revoke errors on non-cloud dbs - separate kubectl client for finding cloud based master credentials - push sql updatepassword when credentials are denied - always set status when existing reconcileNewDB - persist source user creds to secret at end of newdb for migration - bind psql containers to host IP so they can talk to each other - refactor ways credentials are divined from cluster - move mock sql roles into testdb runner - systemfunctions cleanup logic and logs - ignore errors during dbproxy shutdown - fix invalid claim tests - verify crossplane CR is named correctly in test - test webhook * fix source dsn parsing * webhooks were looking at claim class in addition to pod class * github actions is quite slow, check for present of obj before moving on
- Loading branch information
Showing
39 changed files
with
1,929 additions
and
879 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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.