diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-04-13 00:19:28 +1200 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-29 22:55:12 -0700 |
commit | abb530a61958518f6e0c739406f34c558c504206 (patch) | |
tree | 14df66a315ff5dde728225d48b646a6596822d05 /app/workers/clusters | |
parent | 43c284b711ddd4db55908de0590f946de5227db6 (diff) | |
download | gitlab-ce-abb530a61958518f6e0c739406f34c558c504206.tar.gz |
DELETE clusters/:id/:application endpoint
Add endpoint to delete/uninstall a cluster application
Diffstat (limited to 'app/workers/clusters')
-rw-r--r-- | app/workers/clusters/applications/uninstall_worker.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/workers/clusters/applications/uninstall_worker.rb b/app/workers/clusters/applications/uninstall_worker.rb new file mode 100644 index 00000000000..85e8ecc4ad5 --- /dev/null +++ b/app/workers/clusters/applications/uninstall_worker.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Clusters + module Applications + class UninstallWorker + include ApplicationWorker + include ClusterQueue + include ClusterApplications + + def perform(app_name, app_id) + find_application(app_name, app_id) do |app| + Clusters::Applications::UninstallService.new(app).execute + end + end + end + end +end |