2019-04-09 22:13:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-05-02 17:30:53 -04:00
|
|
|
module Clusters
|
|
|
|
class Instance
|
|
|
|
def clusters
|
|
|
|
Clusters::Cluster.instance_type
|
|
|
|
end
|
2019-04-09 22:13:43 -04:00
|
|
|
|
2019-10-28 20:06:10 -04:00
|
|
|
def flipper_id
|
|
|
|
self.class.to_s
|
|
|
|
end
|
2022-05-05 05:08:00 -04:00
|
|
|
|
|
|
|
def certificate_based_clusters_enabled?
|
|
|
|
::Gitlab::SafeRequestStore.fetch("certificate_based_clusters:") do
|
2022-05-06 11:09:03 -04:00
|
|
|
Feature.enabled?(:certificate_based_clusters, type: :ops)
|
2022-05-05 05:08:00 -04:00
|
|
|
end
|
|
|
|
end
|
2019-04-17 22:45:31 -04:00
|
|
|
end
|
2019-04-09 22:13:43 -04:00
|
|
|
end
|