Class: Clusters::Instance

Inherits:
Object
  • Object
show all
Defined in:
app/models/clusters/instance.rb

Instance Method Summary collapse

Instance Method Details

#certificate_based_clusters_enabled?Boolean

Returns:

  • (Boolean)

13
14
15
16
17
# File 'app/models/clusters/instance.rb', line 13

def certificate_based_clusters_enabled?
  ::Gitlab::SafeRequestStore.fetch("certificate_based_clusters:") do
    Feature.enabled?(:certificate_based_clusters, type: :ops)
  end
end

#clustersObject


5
6
7
# File 'app/models/clusters/instance.rb', line 5

def clusters
  Clusters::Cluster.instance_type
end

#flipper_idObject


9
10
11
# File 'app/models/clusters/instance.rb', line 9

def flipper_id
  self.class.to_s
end