Developer Activity: Update a Component’s Catalog Info

The ArgoCD Backstage plugin brings synced status, health status, and updates history of your services to your Red Hat Developer Hub. However, simply installing the Argo CD plugin doesn’t automatically make the deployment information visible when viewing Components in the Software Catalog. An argocd/app-selector annotation must be added to the Component’s YAML definition. This annotation instructs the Argo CD plugin to fetch the information related to the Component from the Argo CD instance you configured.

Please ensure you are logged in as a Developer with dev1/{common_password} as you were guided to in a previous step.

Update your Quarkus application’s catalog-info.yaml with the correct annotation:

  1. Visit the dev1/my-quarkus-app/catalog-info.yaml file in GitLab.

  2. Select Edit > Edit single file.

  3. Uncomment the following annotation:

    argocd/app-selector: rht-gitops.com/rhdh-gitops=dev1-my-quarkus-app
  4. You can confirm this annotation is correct by visiting the dev1-my-quarkus-app-dev in the rhdh-gitops instance and clicking the Details button to view the applied labels. Login as admin using {common_password} if prompted.

    Argo CD Details with Labels

  5. Use the Commit changes button to commit the annotation.

  6. Return to your instance of Red Hat Developer Hub after committing the change to view the newly created my-quarkus-app Component. Use the Schedule entity refresh button to pull this change from Git to Red Hat Developer Hub for your Quarkus application.

    Entity Refresh Button

  7. Next, refresh your browser. The CD tab should appear, and you can view the ArgoCD Application’s information.

    CD Tab in Component