summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-03-07 12:43:34 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-03-07 12:43:34 +0000
commit5cea1e8b8007da95995cda682b5f0d96b0c7f10c (patch)
tree0932047faf723b571dc72887f8319f39d7ee0be8 /app/workers
parentf8dc5f8d98ea46a73cc613d23fd55be57c98b748 (diff)
parentc08beb5051224dbee52716b0fa9c4dd9fedad5ad (diff)
downloadgitlab-ce-5cea1e8b8007da95995cda682b5f0d96b0c7f10c.tar.gz
Merge branch '56937-edit-knative-domain' into 'master'
Edit Knative domain after it has been deployed Closes #56937 See merge request gitlab-org/gitlab-ce!25386
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/all_queues.yml1
-rw-r--r--app/workers/cluster_patch_app_worker.rb13
2 files changed, 14 insertions, 0 deletions
diff --git a/app/workers/all_queues.yml b/app/workers/all_queues.yml
index d86f654dd44..b2d88567e0e 100644
--- a/app/workers/all_queues.yml
+++ b/app/workers/all_queues.yml
@@ -23,6 +23,7 @@
- cronjob:prune_web_hook_logs
- gcp_cluster:cluster_install_app
+- gcp_cluster:cluster_patch_app
- gcp_cluster:cluster_upgrade_app
- gcp_cluster:cluster_provision
- gcp_cluster:cluster_wait_for_app_installation
diff --git a/app/workers/cluster_patch_app_worker.rb b/app/workers/cluster_patch_app_worker.rb
new file mode 100644
index 00000000000..0549e81ed05
--- /dev/null
+++ b/app/workers/cluster_patch_app_worker.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ClusterPatchAppWorker
+ include ApplicationWorker
+ include ClusterQueue
+ include ClusterApplications
+
+ def perform(app_name, app_id)
+ find_application(app_name, app_id) do |app|
+ Clusters::Applications::PatchService.new(app).execute
+ end
+ end
+end