The customparser backend module for the customparser plugin.
This plugin helps to use any other fileformat instead of Catalog-info.yaml. This shows how to build dynamic plugin module and inject with RHDH.
This plugin module extends catalogModelExtensionPoint
and register a customParser backstage-plugin-customparser-backend-module-customer/src/lib/customEntityParser.ts
This show cases the following from Backstage and how to achieve this in RHDH. https://backstage.io/docs/features/software-catalog/external-integrations/#supporting-different-metadata-file-formats
-
Compile :
yarn tsc
-
Build :
yarn build
-
Export as Dynamic
yarn export-dynamic
-
Pack and Publish
npm pack --json > ./npminfo.json #This file can be used to get SHA-integrity npm publish
providers:
gitlab:
selfHosted:
host: gitlab-gitlab.apps.cluster-tcdxs.tcdxs.sandbox1568.opentlc.com
entityFilename: <<Custom file name instead of catalog-info.yaml>>
schedule: # optional; same options as in TaskScheduleDefinition
# supports cron, ISO duration, "human duration" as used in code
frequency: { seconds: 10 }
# supports ISO duration, "human duration" as used in code
timeout: { seconds: 60 }
note : This filename should match << Custom file name instead of catalog-info.yaml >> in the app-config.yaml configuration.
id : "sampleservice" type: "service" author: "user1"
- package: "@anattama/[email protected]"
disabled: false
integrity: 'sha512-e4THqLFqnNjwTlh1MzdcjQwbI4PwXR4Z6it6L+PnU1OTM1pK229bj9UF5a2NTROv9D3JiqLptqQ6nhi09R8jeA=='