Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f3d570a3
Commit
f3d570a3
authored
Jul 24, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dry up config usage
parent
25f31ec1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/workers/geo/container_repository_sync_dispatch_worker.rb
.../workers/geo/container_repository_sync_dispatch_worker.rb
+1
-1
ee/lib/gitlab/geo/geo_node_status_check.rb
ee/lib/gitlab/geo/geo_node_status_check.rb
+2
-2
ee/lib/gitlab/geo/log_cursor/events/container_repository_updated_event.rb
...o/log_cursor/events/container_repository_updated_event.rb
+1
-1
No files found.
ee/app/workers/geo/container_repository_sync_dispatch_worker.rb
View file @
f3d570a3
...
...
@@ -8,7 +8,7 @@ module Geo
# rubocop:enable Scalability/CronWorkerContext
def
perform
unless
Gitlab
.
config
.
geo
.
registry_replication
.
enabled
unless
::
Geo
::
ContainerRepositoryRegistry
.
replication_enabled?
log_info
(
'Container Registry replication is not enabled'
)
return
end
...
...
ee/lib/gitlab/geo/geo_node_status_check.rb
View file @
f3d570a3
...
...
@@ -221,7 +221,7 @@ module Gitlab
end
def
print_container_repositories_status
if
Gitlab
.
config
.
geo
.
registry_replication
.
enabled
if
::
Geo
::
ContainerRepositoryRegistry
.
replication_enabled?
print
'Container repositories: '
.
rjust
(
GEO_STATUS_COLUMN_WIDTH
)
show_failed_value
(
current_node_status
.
container_repositories_failed_count
)
print
"
#{
current_node_status
.
container_repositories_synced_count
||
0
}
/
#{
current_node_status
.
container_repositories_count
||
0
}
"
...
...
@@ -271,7 +271,7 @@ module Gitlab
current_node_status
.
job_artifacts_failed_count
,
current_node_status
.
design_repositories_failed_count
].
tap
do
|
r
|
if
Gitlab
.
config
.
geo
.
registry_replication
.
enabled
if
::
Geo
::
ContainerRepositoryRegistry
.
replication_enabled?
r
.
push
current_node_status
.
container_repositories_failed_count
end
...
...
ee/lib/gitlab/geo/log_cursor/events/container_repository_updated_event.rb
View file @
f3d570a3
...
...
@@ -18,7 +18,7 @@ module Gitlab
private
def
skippable?
!!
Gitlab
.
config
.
geo
.
registry_replication
.
enabled
!!
::
Geo
::
ContainerRepositoryRegistry
.
replication_enabled?
end
# rubocop: disable CodeReuse/ActiveRecord
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment