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