gitlab-org--gitlab-foss/app/controllers/projects/clusters_controller.rb
Adriel Santiago b78c370ac5 Add frontend support for cluster health alerts
Adds a new query text input for metric alerts
2019-06-06 19:57:28 +00:00

26 lines
573 B
Ruby

# frozen_string_literal: true
class Projects::ClustersController < Clusters::ClustersController
prepend_before_action :project
before_action :repository
before_action do
push_frontend_feature_flag(:prometheus_computed_alerts)
end
layout 'project'
private
def clusterable
@clusterable ||= ClusterablePresenter.fabricate(project, current_user: current_user)
end
def project
@project ||= find_routable!(Project, File.join(params[:namespace_id], params[:project_id]))
end
def repository
@repository ||= project.repository
end
end