debian-mirror-gitlab/app/controllers/admin/clusters_controller.rb

22 lines
444 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
class Admin::ClustersController < Clusters::ClustersController
include EnforcesAdminAuthentication
2022-05-07 20:08:51 +05:30
before_action :ensure_feature_enabled!
2019-07-31 22:56:46 +05:30
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