summaryrefslogtreecommitdiff
path: root/app/models/clusters/instance.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/clusters/instance.rb')
-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..b5acc6a68f9 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, type: :ops)
+ end
+ end
end
end