Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/cluster_configure_istio_worker.rb')
-rw-r--r--app/workers/cluster_configure_istio_worker.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/workers/cluster_configure_istio_worker.rb b/app/workers/cluster_configure_istio_worker.rb
new file mode 100644
index 00000000000..dfdd408f286
--- /dev/null
+++ b/app/workers/cluster_configure_istio_worker.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class ClusterConfigureIstioWorker
+ include ApplicationWorker
+ include ClusterQueue
+
+ worker_has_external_dependencies!
+
+ def perform(cluster_id)
+ Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
+ Clusters::Kubernetes::ConfigureIstioIngressService.new(cluster: cluster).execute
+ end
+ end
+end