此内容没有您所选择的语言版本。

Chapter 5. Image registry detection in RHDH


Red Hat Developer Hub displays the Image Registry tab on a component page to provide information about container images stored in an artifact registry. Red Hat Advanced Developer Suite (RHADS) automatically detects the registry type by analyzing the URL in the component source code.

If a registry URL contains "quay", "jfrog", or "artifactory", RHADS automatically adds the corresponding annotation to the catalog-info.yaml file in the application’s Git repository. However, if the registry URL does not contain these specific strings, the registry type cannot be detected automatically, and the Image Registry tab does not appear.

In cases where the tab is missing, you can enable it using one of the following methods:

  • Manually enable the tab for a specific existing component.
  • Modify the registry detection script in your software templates to support automatic detection for all future components.

If the Image Registry tab is missing for a specific component, you can manually add the required annotations to the component’s metadata. You must repeat this procedure for every affected component.

Procedure

  1. In the Git repository containing your component, navigate to skeleton > source-repo and open the catalog-info.yaml file.
  2. Add the annotation relevant to your registry provider to the metadata section:

    For Quay:

    metadata:
        annotations:
            'quay.io/repository-slug': '<ORGANIZATION>/<REPOSITORY>'
    Copy to Clipboard Toggle word wrap

    For JFrog Artifactory:

    metadata:
        annotations:
            'jfrog-artifactory/image-name': '<IMAGE-NAME>'
    Copy to Clipboard Toggle word wrap
  3. Commit and push the changes to the repository.

Verification

  • Select the component in the RHADS - SSC UI where the Image Registry tab was missing. The tab menu now displays the Image Registry tab.

Red Hat Advanced Developer Suite (RHADS) software templates use patterns to identify Quay or JFrog Artifactory registries. If your registry URL does not match the default patterns, you can update the template detection script to ensure all new components are annotated correctly and display the Image Registry tab automatically.

Prerequisites

Procedure

  1. In the GitHub repository containing your templates, navigate to skeleton > source-repo and open the catalog-info.yaml file.
  2. Locate the code block related to registry detection:

      {%- if "quay" in values.image %}
        quay.io/repository-slug: ${{ values.repoSlug }}
    
      {%- elif "jfrog" in values.image or "artifactory" in values.image %}
        jfrog-artifactory/image-name: ${{ values.imageName }}
    Copy to Clipboard Toggle word wrap
  3. Replace "quay", "jfrog", or "artifactory" with the unique part of your registry URL.

    For example, if your Artifactory registry is named my-registry.mycompany.com, your image names might be my-registry.mycompany.com followed by the username and image name. You can add my-registry.mycompany to the catalog-info.yaml detection logic.

Verification

  • Create a new component using the updated template. The Image Registry tab is displayed automatically in the Red Hat Developer Hub UI.

Revised on 2026-02-04 23:23:55 UTC

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部