Platform Engineer Activity: Update the the Component Template

While the developer can add the necessary annotation to their Component, it’s best to update the Template so future developers can benefit from the Argo CD integration without having to manually add the annotation.

To ensure that future Quarkus applications created using the Template…​TODO

  1. Visit the rhdh/template-quarkus-simple/skeleton/catalog-info.yaml file in GitLab.

    Login to GitLab in using pe1/{common_password} to view and edit this file.
  2. Select Edit > Edit single file.

  3. Uncomment the following in the annotations section of the file:

    argocd/app-selector: rht-gitops.com/${{ values.gitops_namespace }}=${{ values.owner }}-${{values.component_id}}

    Edit the Template in Argo CD

  4. Use the Commit changes button to commit the new annotation.

The annotation value will be automatically generated, similar to the Argo CD label, using the values provided by developers when they use the Template.

Return to your developer hub instance after committing the change. Use the Schedule entity refresh button to pull this change from Git to Red Hat Developer Hub for your Quarkus application.

Manually refreshing is an optional step, since Red Hat Developer Hub will check for upstream Entity changes every few minutes.

Refresh Template Button

Conclusion

Congratulations! You’ve learned how to:

  • Create and Import Software Templates

  • Create new Components using a Software Template

  • Use annotations to provide information to plugins

  • Force refresh Entities in the Software Catalog