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
-
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. -
Select Edit > Edit single file.
-
Uncomment the following in the
annotations
section of the file:argocd/app-selector: rht-gitops.com/${{ values.gitops_namespace }}=${{ values.owner }}-${{values.component_id}}
-
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. |