4.5. Importing an existing Software Template to Red Hat Developer Hub
You can add an existing Software Template to your Red Hat Developer Hub instance by using the Catalog Processor.
Prerequisites
- You have created a directory or repository that contains at least one template YAML file.
- Optional: To use a template stored in a GitHub repository, you have configured Developer Hub integration with GitHub.
Procedure
In the
app-config.yamlconfiguration file, modify thecatalog.rulessection to include a rule for Software Templates, and configure thecatalog.locationssection to point to the Software Template that you want to add, as shown in the following example:# ... catalog: rules: - allow: [Template]1 locations: - type: url2 target: https://<repository_url>/example-template.yaml3 # ...
Verification
- Click the Catalog tab in the navigation panel.
- In the Kind drop-down menu, select Template.
- Confirm that your template is shown in the list of existing templates.