-
- Downloads
Creates Clusterss::ApplciationsController update endpoint
- Creates new route - Creates new controller action - Creates call stack: Clusterss::ApplciationsController calls --> Clusters::Applications::UpdateService calls --> Clusters::Applications::ScheduleUpdateService calls --> ClusterUpdateAppWorker calls --> Clusters::Applications::PatchService --> ClusterWaitForAppInstallationWorker DRY req params Adds gcp_cluster:cluster_update_app queue Schedule_update_service is uneeded Extract common logic to a parent class (UpdateService will need it) Introduce new UpdateService Fix rescue class namespace Fix RuboCop offenses Adds BaseService for create and update services Remove request_handler code duplication Fixes update command Move update_command to ApplicationCore so all apps can use it Adds tests for Knative update_command Adds specs for PatchService Raise error if update receives an unistalled app Adds update_service spec Fix RuboCop offense Use subject in favor of go Adds update endpoint specs for project namespace Adds update endpoint specs for group namespace
Showing
- app/controllers/clusters/applications_controller.rb 22 additions, 7 deletionsapp/controllers/clusters/applications_controller.rb
- app/models/clusters/concerns/application_core.rb 6 additions, 0 deletionsapp/models/clusters/concerns/application_core.rb
- app/services/clusters/applications/base_helm_service.rb 4 additions, 0 deletionsapp/services/clusters/applications/base_helm_service.rb
- app/services/clusters/applications/base_service.rb 76 additions, 0 deletionsapp/services/clusters/applications/base_service.rb
- app/services/clusters/applications/create_service.rb 3 additions, 54 deletionsapp/services/clusters/applications/create_service.rb
- app/services/clusters/applications/patch_service.rb 26 additions, 0 deletionsapp/services/clusters/applications/patch_service.rb
- app/services/clusters/applications/update_service.rb 34 additions, 0 deletionsapp/services/clusters/applications/update_service.rb
- app/workers/all_queues.yml 1 addition, 0 deletionsapp/workers/all_queues.yml
- app/workers/cluster_update_app_worker.rb 13 additions, 0 deletionsapp/workers/cluster_update_app_worker.rb
- config/routes.rb 1 addition, 0 deletionsconfig/routes.rb
- lib/gitlab/kubernetes/helm/install_command.rb 2 additions, 1 deletionlib/gitlab/kubernetes/helm/install_command.rb
- spec/controllers/groups/clusters/applications_controller_spec.rb 80 additions, 20 deletions...ntrollers/groups/clusters/applications_controller_spec.rb
- spec/controllers/projects/clusters/applications_controller_spec.rb 79 additions, 18 deletions...rollers/projects/clusters/applications_controller_spec.rb
- spec/models/clusters/applications/knative_spec.rb 22 additions, 4 deletionsspec/models/clusters/applications/knative_spec.rb
- spec/services/clusters/applications/patch_service_spec.rb 128 additions, 0 deletionsspec/services/clusters/applications/patch_service_spec.rb
- spec/services/clusters/applications/update_service_spec.rb 72 additions, 0 deletionsspec/services/clusters/applications/update_service_spec.rb
app/workers/cluster_update_app_worker.rb
0 → 100644
Please register or sign in to comment