提交 0b71325d 编写于 作者: L Lin Jen-Shin

Merge branch 'group-analytics-frame' into 'master'

Port EE analytics route

See merge request gitlab-org/gitlab-ce!30586
......@@ -110,6 +110,12 @@ Rails.application.routes.draw do
draw :jira_connect
end
Gitlab.ee do
constraints(::Constraints::FeatureConstrainer.new(:analytics)) do
draw :analytics
end
end
if ENV['GITLAB_CHAOS_SECRET'] || Rails.env.development?
resource :chaos, only: [] do
get :leakmem
......@@ -119,6 +125,13 @@ Rails.application.routes.draw do
get :kill
end
end
if ENV['GITLAB_ENABLE_CHAOS_ENDPOINTS']
get '/chaos/leakmem' => 'chaos#leakmem'
get '/chaos/cpuspin' => 'chaos#cpuspin'
get '/chaos/sleep' => 'chaos#sleep'
get '/chaos/kill' => 'chaos#kill'
end
end
concern :clusterable do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册