Cloud Seed - Create CloudSQL Instance Worker
What does this MR do and why?
This commit introduces the CreateCloudsqlInstanceWorker.
Creating Cloud SQL instances is an async operation that takes a few minutes to conclude.
Thus the Google Cloud API needs to be watched for operation result and on success an app database and app user must be created for the new instance.
Worker performs these tasks. Methods added to the Google Cloud Client to support get_instance
, insert_database
and insert_user
operations.
Screenshots or screen recordings
This is a background process and has no UI changes.
How to set up and validate locally
The controller and services that invoke this Worker have not been merged. Thus there is nothing to verify on your local instance.
For now this is a standalone worker with unit tests.
In the diagram above, note the components in --RED--. These components will eventually trigger the worker.
For a proof-of-concept evaluation, check out !88758 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.