debian-mirror-gitlab/app/models/clusters/instance.rb
2022-07-17 14:43:12 +02:00

19 lines
389 B
Ruby

# frozen_string_literal: true
module Clusters
class Instance
def clusters
Clusters::Cluster.instance_type
end
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