gitlab-org--gitlab-foss/app/controllers/admin/clusters_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
444 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Admin::ClustersController < Clusters::ClustersController
include EnforcesAdminAuthentication
before_action :ensure_feature_enabled!
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