diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-05 12:08:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-05 12:08:00 +0300 |
commit | 17ef30f3df6d3939e41e69efc7cfa3deaa08605d (patch) | |
tree | 6852730e03de7e85e7a42952ec85960ab9832fa5 /app/models/clusters | |
parent | cd9bbd8a3e8af73864ca3c7704211309fae8ce0e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/instance.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/clusters/instance.rb b/app/models/clusters/instance.rb index 2a09ba11564..ef120384adf 100644 --- a/app/models/clusters/instance.rb +++ b/app/models/clusters/instance.rb @@ -9,5 +9,11 @@ module Clusters def flipper_id self.class.to_s end + + def certificate_based_clusters_enabled? + ::Gitlab::SafeRequestStore.fetch("certificate_based_clusters:") do + Feature.enabled?(:certificate_based_clusters, default_enabled: :yaml, type: :ops) + end + end end end |