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

15 lines
376 B
Ruby

# 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
end
Admin::ClustersController.prepend_if_ee('EE::Admin::ClustersController')