diff options
author | James Fargher <proglottis@gmail.com> | 2019-04-18 14:45:31 +1200 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2019-05-07 08:37:03 +1200 |
commit | 8db382b05545fdef0a60bcff65f8c23e8b1ed282 (patch) | |
tree | 48c45052013b98a571ce73a6b2239a9ea050e414 /app/models/clusters/instance.rb | |
parent | 733da6d6a015e8c951dcc02250cfe1fab87789c0 (diff) | |
download | gitlab-ce-8db382b05545fdef0a60bcff65f8c23e8b1ed282.tar.gz |
Allow projects to use instance level clusters
There are two cluster hierarchies one for the deployment platform and
one for controllers. The main difference is that deployment platforms do
not check user permissions and only return the first match.
Diffstat (limited to 'app/models/clusters/instance.rb')
-rw-r--r-- | app/models/clusters/instance.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/clusters/instance.rb b/app/models/clusters/instance.rb index fde83c5a8ad..bbbf6da16fb 100644 --- a/app/models/clusters/instance.rb +++ b/app/models/clusters/instance.rb @@ -8,4 +8,8 @@ class Clusters::Instance def feature_available?(feature) ::Feature.enabled?(feature, default_enabled: true) end + + def instance_clusters_enabled? + ::Feature.enabled?(:instance_clusters, default_enabled: true) + end end |