2019-04-09 22:13:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Admin::ClustersController < Clusters::ClustersController
|
2019-05-01 21:07:38 -04:00
|
|
|
include EnforcesAdminAuthentication
|
2019-04-09 22:13:43 -04:00
|
|
|
|
|
|
|
layout 'admin'
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def clusterable
|
2019-05-01 21:07:38 -04:00
|
|
|
@clusterable ||= InstanceClusterablePresenter.fabricate(Clusters::Instance.new, current_user: current_user)
|
2019-04-09 22:13:43 -04:00
|
|
|
end
|
2019-09-18 10:02:45 -04:00
|
|
|
|
2020-07-13 11:09:08 -04:00
|
|
|
def metrics_dashboard_params
|
|
|
|
{
|
|
|
|
cluster: cluster,
|
|
|
|
cluster_type: :admin
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|