Skip to content

Run Registry Schema Migrations in Prefer Mode

Summary

Implement database schema migration execution when Container Registry is configured with metadata database "prefer mode" in GitLab Helm Charts.

Context

As part of the Container Registry metadata database "prefer mode" implementation (Epic #19638), when the Container Registry operates in prefer mode, the database schema migrations need to be ran.

This is the companion issue to omnibus-gitlab#9411 for implementing the same functionality in the GitLab Helm Charts.

Problem

  • Registry in prefer mode may connect to an uninitialized metadata database
  • Database schema migrations need to be executed before the registry can operate with database metadata
  • Helm Charts need to handle migration execution similar to Omnibus

Related Issues