이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 9. Customizing the Tech Radar page in Red Hat Developer Hub
In Red Hat Developer Hub, the Tech Radar page is provided by the tech-radar dynamic plugin, which is disabled by default. For information about enabling dynamic plugins in Red Hat Developer Hub see Configuring dynamic plugins.
In Red Hat Developer Hub, you can configure Learning Paths by passing the data into the app-config.yaml file as a proxy. The base Tech Radar URL must include the /developer-hub/tech-radar proxy.
Due to the use of overlapping pathRewrites for both the tech-radar and homepage quick access proxies, you must create the tech-radar configuration (^api/proxy/developer-hub/tech-radar) before you create the homepage configuration (^/api/proxy/developer-hub).
For more information about customizing the Home page in Red Hat Developer Hub, see Customizing the Home page in Red Hat Developer Hub.
You can provide data to the Tech Radar page from the following sources:
- JSON files hosted on GitHub or GitLab.
- A dedicated service that provides the Tech Radar data in JSON format using an API.
9.1. Customizing the Tech Radar page by using a JSON file 링크 복사링크가 클립보드에 복사되었습니다!
For ease of use and simplicity, you can configure the Tech Radar page by using a hosted JSON file.
Prerequisites
-
You have specified the data sources for the Tech Radar plugin in the
integrationssection of theapp-config.yamlfile. For example, to configure GitHub as an integration, see Authenticating with GitHub. -
You have enabled the
./dynamic-plugins/dist/backstage-community-plugin-tech-radarand/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamicplugins.
Procedure
- Publish the JSON file containing your Tech Radar data to a web server, such as GitHub or Gitlab. You can find an example at https://raw.githubusercontent.com/redhat-developer/rhdh/release-1.6/packages/app/public/tech-radar/data-default.json.
Configure Developer Hub to access the Tech Radar data from the hosted JSON files, by adding the following to the
app-config.yamlfile:techRadar: url: <tech_radar_data_url>
techRadar: url: <tech_radar_data_url>Copy to Clipboard Copied! Toggle word wrap Toggle overflow <tech_radar_data_url>- Enter the Tech Radar data hosted JSON URL.
9.2. Customizing the Tech Radar page by using a customization service 링크 복사링크가 클립보드에 복사되었습니다!
For advanced scenarios, you can host your Red Hat Developer Hub customization service to provide data to all configurable Developer Hub pages, such as the Tech Radar page. You can even use a different service for each page.
Prerequisites
-
You have specified the data sources for the Tech Radar plugin in the
integrationssection of theapp-config.yamlfile. For example, to configure GitHub as an integration, see Authenticating with GitHub. -
You have enabled the
./dynamic-plugins/dist/backstage-community-plugin-tech-radarand/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamicplugins.
Procedure
-
Deploy your Developer Hub customization service on the same OpenShift Container Platform cluster as your Developer Hub instance. You can find an example at
red-hat-developer-hub-customization-provider, that provides the same data as default Developer Hub data. The customization service provides a Tech Radar data URL such as:http://<rhdh-customization-provider>/tech-radar. Add the dedicated service as an allowed host by adding the following code to the
app-config.yamlfile:backend: reading: allow: - host: '<rhdh_customization_provider_base_url>'backend: reading: allow: - host: '<rhdh_customization_provider_base_url>'Copy to Clipboard Copied! Toggle word wrap Toggle overflow <rhdh_customization_provider_base_url>-
Enter the base URL of your Tech Radar data URL, such as:
<rhdh-customization-provider>.
Add the following to the
app-config.yamlfile:techRadar: url: <tech_radar_data_url>techRadar: url: <tech_radar_data_url>Copy to Clipboard Copied! Toggle word wrap Toggle overflow <tech_radar_data_url>-
Enter your Tech Radar data URL, such as:
http://<rhdh-customization-provider>/tech-radar.