debian-mirror-gitlab/app/models/clusters/instance.rb

20 lines
389 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
module Clusters
class Instance
def clusters
Clusters::Cluster.instance_type
end
2019-12-26 22:10:19 +05:30
def flipper_id
self.class.to_s
end
2022-07-16 23:28:13 +05:30
def certificate_based_clusters_enabled?
::Gitlab::SafeRequestStore.fetch("certificate_based_clusters:") do
Feature.enabled?(:certificate_based_clusters, type: :ops)
end
end
2019-07-31 22:56:46 +05:30
end
end