此内容没有您所选择的语言版本。
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
-
In the Git repository containing your component, navigate to skeleton > source-repo and open the
catalog-info.yamlfile. Add the annotation relevant to your registry provider to the
metadatasection:For Quay:
metadata: annotations: 'quay.io/repository-slug': '<ORGANIZATION>/<REPOSITORY>'metadata: annotations: 'quay.io/repository-slug': '<ORGANIZATION>/<REPOSITORY>'Copy to Clipboard Copied! Toggle word wrap Toggle overflow For JFrog Artifactory:
metadata: annotations: 'jfrog-artifactory/image-name': '<IMAGE-NAME>'metadata: annotations: 'jfrog-artifactory/image-name': '<IMAGE-NAME>'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
- You have forked and cloned the tssc-sample-templates repository.
Procedure
-
In the GitHub repository containing your templates, navigate to skeleton > source-repo and open the
catalog-info.yamlfile. 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 }}{%- 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 Copied! Toggle word wrap Toggle overflow 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 bemy-registry.mycompany.comfollowed by the username and image name. You can addmy-registry.mycompanyto thecatalog-info.yamldetection 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