Skip to content

Add option for no tag limit to EnqueuerWorker

Steve Abrams requested to merge 360731-phase2-tag-no-limit into master

🌷 Context

We are in the process of migrating all container repositories to the new container registry. This process is driven by a background worker in rails: ContainerRegistry::Migration::EnqueuerWorker. There are a variety of settings and feature flags we are using to control the migration. One setting allows us to say "only migrate container repositories with less than n tags". Currently, we are migrating container repositories with less than 100 tags. We will adjust this setting upwards, but it would be nice to have an option to say "migrate all container repositories regardless of how many tags they have". This MR adds such an option.

💡 What does this MR do and why?

Update the EnqueuerWorker so when the container_registry_import_max_tags_count setting is set to 0, the limit on tags is not checked.

No changelog is included as the entire process is behind a feature flag

Screenshots or screen recordings

N/A

How to set up and validate locally

🗜 MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related: #360731 (closed)

Edited by Steve Abrams

Merge request reports

Loading