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

instance.rb « clusters « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5acc6a68f95e579f0add37d3bf1f453644c731b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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