Reconcile existing images
table records when adding a new container registry to prevent duplicates
#3018
Labels
comp:manager
Related to Manager component
Milestone
This is a follow-up to #1907 (its #1917 and related stack PRs).
After etcd-to-postgres container registry migration, all existing image records belong to either:
What if the admin adds a new container registry that has the already-migrated image records when rescanned?
For example:
index.docker.io/nvcr.io/nvidia/nvhpc:24.3-runtime-cuda12.3-ubuntu22.04
is actually not anindex.docker.io
image butnvcr.io
's image. This result is because there is no matchingnvcr.io
container registry configuration and this record has been migrated to become a "local" image.Later, the admin adds the
nvcr.io
container registry configuration. Then, this entry should be converted to use that container registry instance.There could be two ways to reconcile the potentially duplicate entries (existing vs. rescanned) in the database:
images
records and update any record matching with the new registry's hostname and project.The text was updated successfully, but these errors were encountered: