Enable Cloud Run deploys
What does this MR do and why?
This commit enables the Cloud Run deployment method in the Project :: Infra :: Google Cloud
section.
Minimal frontend changes that rename props and flip the disabled switch.
Backend changes introduces a service to enable the underlying Google Cloud services via their API. Then of course there's a controller method that responds to the user clicking the now enabled button.
Detailed changelist:
- Frontend
- Enable the relevant button in deployment service table
- Rename the necessary props
- Specs / tests
- Backend
- Rename @js_data attributes
- Enable Cloud Run service
- Service that enables cloud run, artifacts registry and cloud build for the logged in user's Google Cloud account
- Google API -> Client
- Methods that make the underlying calls to enable cloud run, artifacts registry and cloud build
- Controller method to handle user selecting the
Deploy Cloud Run
button- Calls the newly created
EnableCloudRunService
- Calls the
GeneratePipelineService
- Redirects the user appropriately based on service responses
- Calls the newly created
- Specs / tests
Screenshots or screen recordings
How to set up and validate locally
- Enable
incubation_5mp_google_cloud
feature flag for a test project - In GitLab web ui, navigate to project
- Go to
Infra :: Google Cloud
page - Switch to
Deployments
tab - Press the
Configure via MR
for Cloud Run option
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.
Edited by Sri Rang