This documentation is for a release that is no longer maintained
See documentation for the latest supported version.Chapter 5. Customizing the Tech Radar page in the Red Hat Developer Hub
In Red Hat Developer Hub, the Tech Radar page is not enabled using the dynamic plugin feature in the Helm Chart.
Similar to Home page customization, the base Tech Radar URL must include the /developer-hub/tech-radar
proxy. You can provide the Tech Radar page data using the following ways:
Using JSON files that are hosted or GitHub or GitLab. To access the data from the JSON files, you can add the following code in the
app-config.yaml
file:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteAs overlapping exist between the
pathRewrites
that are used for thetech-radar
andhomepage
quick access proxies, the configuration for thetech-radar
(^api/proxy/developer-hub/tech-radar
) must exist before the configuration for thehomepage
(^/api/proxy/developer-hub
).For more information about customizing the Home page in Red Hat Developer Hub, see Chapter 4, Customizing the Home page in Red Hat Developer Hub.
- Using a separate service that provides the Tech Radar data in JSON format using an API.
Prerequisites
- You have installed the Red Hat Developer Hub using Helm Chart. For more information, see Chapter 2, Installing Red Hat Developer Hub.
Procedure
Add the following code to the
app-config-rhdh.yaml
file:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the API request call returns the response in JSON format.
Define the
TECHRADAR_DATA_URL`
ashttp://<SERVICE_NAME>/tech-radar
, for examplehttp://rhdh-customization-provider/tech-radar
.NoteYou can define the
TECHRADAR_DATA_URL
either by adding it torhdh-secrets
or directly replacing it with its value in your custom ConfigMap.- Delete the Developer Hub Pod to pull in the changes.