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