Commit 7422581a authored by Gabriel Mazetto's avatar Gabriel Mazetto Committed by Michael Kozono

Add feature flag `:geo_object_storage_replication`

parent a82f24c4
......@@ -70,12 +70,13 @@
= form.number_field :minimum_reverification_interval, class: 'form-control col-sm-2', min: 1
.form-text.text-muted= s_('Geo|Control the minimum interval in days that a repository should be reverified for this primary node')
.form-group.row.js-hide-if-geo-primary{ class: ('hidden' unless geo_node.secondary?) }
.col-sm-10
= form.label :sync_object_storage, _('Object Storage replication'), class: 'label-bold'
.form-check
= form.check_box :sync_object_storage, class: 'form-check-input'
= form.label :sync_object_storage, class: 'form-check-label' do
%span= s_('Geo|Allow GitLab to replicate content on Object Storage')
.form-text.text-muted= s_('Geo|If enabled, GitLab will perform Object Storage replication using Geo')
- if ::Feature.enabled?(:geo_object_storage_replication)
.form-group.row.js-hide-if-geo-primary{ class: ('hidden' unless geo_node.secondary?) }
.col-sm-10
= form.label :sync_object_storage, _('Object Storage replication'), class: 'label-bold'
.form-check
= form.check_box :sync_object_storage, class: 'form-check-input'
= form.label :sync_object_storage, class: 'form-check-label' do
%span= s_('Geo|Allow GitLab to replicate content on Object Storage')
.form-text.text-muted= s_('Geo|If enabled, GitLab will perform Object Storage replication using Geo')
......@@ -485,7 +485,7 @@ module EE
expose :repos_max_capacity
expose :verification_max_capacity
expose :container_repositories_max_capacity
expose :sync_object_storage, if: ->(geo_node, _) { geo_node.secondary? }
expose :sync_object_storage, if: ->(geo_node, _) { ::Feature.enabled?(:geo_object_storage_replication) && geo_node.secondary? }
# Retained for backwards compatibility. Remove in API v5
expose :clone_protocol do |_record, _options|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment