2019-07-31 22:56:46 +05:30
|
|
|
# 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
|
2019-12-04 20:38:33 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
def metrics_dashboard_params
|
|
|
|
{
|
|
|
|
cluster: cluster,
|
|
|
|
cluster_type: :admin
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|