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
显示
- app/controllers/clusters/applications_controller.rb 22 个添加, 7 个删除app/controllers/clusters/applications_controller.rb
- app/models/clusters/concerns/application_core.rb 6 个添加, 0 个删除app/models/clusters/concerns/application_core.rb
- app/services/clusters/applications/base_helm_service.rb 4 个添加, 0 个删除app/services/clusters/applications/base_helm_service.rb
- app/services/clusters/applications/base_service.rb 76 个添加, 0 个删除app/services/clusters/applications/base_service.rb
- app/services/clusters/applications/create_service.rb 3 个添加, 54 个删除app/services/clusters/applications/create_service.rb
- app/services/clusters/applications/patch_service.rb 26 个添加, 0 个删除app/services/clusters/applications/patch_service.rb
- app/services/clusters/applications/update_service.rb 34 个添加, 0 个删除app/services/clusters/applications/update_service.rb
- app/workers/all_queues.yml 1 个添加, 0 个删除app/workers/all_queues.yml
- app/workers/cluster_update_app_worker.rb 13 个添加, 0 个删除app/workers/cluster_update_app_worker.rb
- config/routes.rb 1 个添加, 0 个删除config/routes.rb
- lib/gitlab/kubernetes/helm/install_command.rb 2 个添加, 1 个删除lib/gitlab/kubernetes/helm/install_command.rb
- spec/controllers/groups/clusters/applications_controller_spec.rb 80 个添加, 20 个删除...ntrollers/groups/clusters/applications_controller_spec.rb
- spec/controllers/projects/clusters/applications_controller_spec.rb 79 个添加, 18 个删除...rollers/projects/clusters/applications_controller_spec.rb
- spec/models/clusters/applications/knative_spec.rb 22 个添加, 4 个删除spec/models/clusters/applications/knative_spec.rb
- spec/services/clusters/applications/patch_service_spec.rb 128 个添加, 0 个删除spec/services/clusters/applications/patch_service_spec.rb
- spec/services/clusters/applications/update_service_spec.rb 72 个添加, 0 个删除spec/services/clusters/applications/update_service_spec.rb
加载中
想要评论请 注册 或 登录