Fix ::ContainerRegistry::Migration.limit_gitlab_org?
🔥 Problem
::ContainerRegistry::Migration.limit_gitlab_org? is used to limit the image repositories selection to the gitlab-org namespace.
The problem is the condition that this check adds.
It will select any namespace whose path is gitlab-org. That’s a too wide scope: it will catch any intermediary namespaces (like sub groups) that are named gitlab-org.
What we want is the root namespace named gitlab-org
🚒 Solution
Fix the conditions to start with the root namespace named gitlab-org.
Edited by David Fernandez