debian-mirror-gitlab/app/controllers/admin/clusters_controller.rb
2020-08-09 17:44:08 +05:30

20 lines
403 B
Ruby

# frozen_string_literal: true
class Admin::ClustersController < Clusters::ClustersController
include EnforcesAdminAuthentication
layout 'admin'
private
def clusterable
@clusterable ||= InstanceClusterablePresenter.fabricate(Clusters::Instance.new, current_user: current_user)
end
def metrics_dashboard_params
{
cluster: cluster,
cluster_type: :admin
}
end
end