Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-05 12:08:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-05 12:08:00 +0300
commit17ef30f3df6d3939e41e69efc7cfa3deaa08605d (patch)
tree6852730e03de7e85e7a42952ec85960ab9832fa5 /app/models/clusters
parentcd9bbd8a3e8af73864ca3c7704211309fae8ce0e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/clusters')
-rw-r--r--app/models/clusters/instance.rb6
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