2018-11-15 04:17:41 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ClusterProjectConfigureWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
|
|
|
|
def perform(project_id)
|
|
|
|
project = Project.find(project_id)
|
|
|
|
|
2018-12-04 17:57:02 -05:00
|
|
|
::Clusters::RefreshService.create_or_update_namespaces_for_project(project)
|
2018-11-15 04:17:41 -05:00
|
|
|
end
|
|
|
|
end
|