Add RHDH integration: catalog emission, scaffolder templates, MTA card #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rhdh-integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RHDH 1.9 integration on top of the migration.discovery collection.
Catalog emission (fleet_report): - Emit Backstage System / Resource(vm) / Component(java-app) YAMLs alongside the readiness report. One Component per detected deployment (WAR/EAR/jar); synthetic Component for app-servers with no deployments enumerated. - Components start with lifecycle=detected, no source-repo set. deep_inspect bug fix: - regex_search('name=(.+)') | first | trim was returning the first *character* of the matched string (so every deployment showed up as name="n", path="p", type="t"). Use regex_search(pat, '\\1') capture form instead. RHDH artifacts (rhdh/): - Software Templates: step1-discover-fleet, pair-source-repo, step2-containerize (use rhaap:launch-job-template against JT 97/98). - Custom dynamic plugin source: @migration-discovery/plugin-mta-card (frontend card on Component pages; reads MTA hub via proxy). - Install manifests for the rhdh operator + Backstage CR with app-config wiring AAP, MTA, Gitea, Kubernetes plugin, Argo CD, TechDocs, and a CronJob that rotates the MTA Keycloak token. Tests: - tests/test-emit-catalog.yml: standalone smoke test for the catalog emitter (validated against synthetic fixture).RHDH 1.9.4 default bundle does NOT include the AAP scaffolder plugin (rhaap:*) or a Gitea catalog backend module. Pivot: - helm-values: drop ansible-plugin-backstage-rhaap, drop Gitea catalog module, fix Argo CD plugin name (...-argo-cd-backend, not -argo-cd), enable roadiehq-scaffolder-backend-module-http-request-dynamic. - helm-values: add /aap proxy with Authorization Bearer ${AAP_AUTH_TOKEN} so templates can POST to AAP without an AAPTokenField widget. - step1/step2 templates: replace rhaap:launch-job-template with http:backstage:request POSTing to /api/proxy/aap/api/controller/v2/ job_templates/{id}/launch/. - step2: replace backstage:catalog:fetch with catalog:fetch (correct built-in action name).RHDH 1.9 doesn't ship publish
pull-request and we don't have an
OCI source for it. Move the git commit into an AAP playbook
(playbooks/pair-source-repo.yml), have the RHDH template POST to a new
JT via the /api/proxy/aap proxy.
Also fix backstage:catalog:fetch (does not exist) → catalog:fetch.