Updating registry components

🌐 This document is available in both English and Ukrainian. Use the language toggle in the top right corner to switch between versions.

1. Overview

Registry updates management follows the GitOps approach. This means that any changes to the configuration of the registry or its components are made by modifying the configuration of these components in their respective Git branches. Each component is a separate Git repository.

You can manage updates of the registry components in the Control Plane admin console interface.

  • Make sure to update Platform components before updating registry components.

  • If the registry is at the latest version, the update option will be unavailable.

The update process can be divided into these stages:
  1. Select update options in Control Plane.

  2. Go through code review in Gerrit.

  3. Monitor the build process in Jenkins.

2. Update options in Control Plane

  1. Sign in to Control Plane.

    update cluster mgmt 01

  2. Open the Registries section.

  3. Go to registry settings.

    update registry components 1

  4. Click the Update button in the upper-right corner.

    update registry components 2

  5. Select the version you need in the new window to update the registry and click the Confirm button to save your changes.

    update registry components 4

    You can also perform the update via the registry edit option:

    Registries > Edit > Update Registry.

    update registry components 3

    Available update versions are always higher than the current build.
  6. Click the Confirm button to save your changes.

    As a result, the system generates a registry components version update request and pushes changes (via git push) to the Gerrit repository for further code validation.

3. Reviewing changes in the Gerrit code review system

After successfully creating a version update request through the Control Plane admin console, you need to go through the code review procedure in Gerrit. To do this, perform these steps:

  1. Sign in to Control Plane.

  2. Open the Registries section.

  3. Scroll down to the Update requests section.

  4. Find your request and click the View in Gerrit icon next to it.

    update registry components 7

  5. In Gerrit, review the code changes and approve merging the changes to the master branch of the repository (via git merge).

    update registry components 8 update registry components 9

After the changes are merged to the master branch of the Gerrit repository, Jenkins automatically starts the build process using the latest changes.

4. Monitoring the build process in Jenkins

After the changes are merged to the master branch of the Gerrit repository successfully, you need to make sure that the MASTER-Build-<registry-name> pipeline (where <registry-name> is the name of your registry) has started and completed successfully in Jenkins. In our example, the name of the registry is cert-labs.

To monitor the build process in Jenkins, perform these steps:

  1. Sign in to Control Plane.

  2. Open the Registries section.

  3. Scroll down to the Configuration section and click the Jenkins link icon in the CI column.

    update registry components 10

  4. In Jenkins, wait until all the steps of the MASTER-Build-cert-labs build are completed.

    update registry components 11

After a successful build, registry components are updated to the version you selected.