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

cluster_configure_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f64b7ea0ab6f6e04796a4dd1df16c22ad44c07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class ClusterConfigureWorker
  include ApplicationWorker
  include ClusterQueue

  def perform(cluster_id)
    Clusters::Cluster.managed.find_by_id(cluster_id).try do |cluster|
      if cluster.project_type?
        Clusters::RefreshService.create_or_update_namespaces_for_cluster(cluster)
      end
    end
  end
end