2018-11-02 15:46:15 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-12-21 13:17:13 +00:00
|
|
|
class ClusterConfigureWorker
|
2018-11-02 15:46:15 +00:00
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
|
|
|
|
def perform(cluster_id)
|
|
|
|
Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
|
2018-12-04 22:57:02 +00:00
|
|
|
Clusters::RefreshService.create_or_update_namespaces_for_cluster(cluster)
|
2018-11-02 15:46:15 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|