2019-04-10 02:13:43 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Clusters
|
|
|
|
class InstancePolicy < BasePolicy
|
2019-06-27 12:29:19 +00:00
|
|
|
rule { admin }.policy do
|
2019-04-10 02:13:43 +00:00
|
|
|
enable :read_cluster
|
|
|
|
enable :add_cluster
|
|
|
|
enable :create_cluster
|
|
|
|
enable :update_cluster
|
|
|
|
enable :admin_cluster
|
2019-09-07 08:24:33 +00:00
|
|
|
enable :read_prometheus
|
2019-04-10 02:13:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-10-15 06:07:25 +00:00
|
|
|
|
2021-05-11 21:10:21 +00:00
|
|
|
Clusters::InstancePolicy.prepend_mod_with('Clusters::InstancePolicy')
|