Skip to content

Commit 528a2ad

Browse files
committed
Incorporated changes
1 parent 0b7c758 commit 528a2ad

File tree

1 file changed

+19
-34
lines changed

1 file changed

+19
-34
lines changed

modules/getting-started/proc-customize-rhdh-tech-radar-page.adoc

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,22 @@ You can provide data to the Tech Radar page from the following sources:
2121

2222
.Prerequisites
2323

24-
You have installed {product} by using either the Operator or Helm chart.
25-
For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhdh-ocp[{installing-on-ocp-book-title}].
24+
* You have installed {product} by using either the Operator or Helm chart. For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhdh-ocp[{installing-on-ocp-book-title}].
25+
* Configure integrations under the Integrations section in the `app-config.yaml` file to specify the sources from which the Tech Radar plugin fetches data for display.
2626

2727
.Procedure
2828

2929
To access the data from the JSON files, complete the following step:
3030

31-
* Add the following code to the `app-config.yaml` file:
31+
. Enable the `./dynamic-plugins/dist/backstage-community-plugin-tech-radar` and `/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic` plugins.
32+
. Add the following code to the app-config.yaml file:
3233
+
3334
[source,yaml]
3435
----
35-
proxy:
36-
endpoints:
37-
# Other Proxies
38-
# customize developer hub instance
39-
'/developer-hub':
40-
target: <DOMAIN_URL> # i.e https://raw.githubusercontent.com/
41-
pathRewrite:
42-
'^/api/proxy/developer-hub/tech-radar': <path to json file> # i.e /janus-idp/backstage-showcase/main/packages/app/public/tech-radar/data-default.json
43-
'^/api/proxy/developer-hub': <path to json file> # i.e /janus-idp/backstage-showcase/main/packages/app/public/homepage/data.json
44-
changeOrigin: true
45-
secure: true
46-
47-
# Change to "false" in case of using self hosted cluster with a self-signed certificate
48-
headers:
49-
<HEADER_KEY>: <HEADER_VALUE> # optional and can be passed as needed i.e Authorization can be passed for private GitHub repo and PRIVATE-TOKEN can be passed for private GitLab repo
36+
techRadar:
37+
url: ${TECH_RADAR_DATA_URL}
5038
----
39+
where `TECH_RADAR_DATA_URL` is the URL from which the JSON data is loaded.
5140

5241
== Using a dedicated service to provide data to the Tech Radar page
5342

@@ -66,24 +55,20 @@ For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhd
6655

6756
To use a separate service to provide the Tech Radar data, complete the following steps:
6857

69-
. Add the following code to the `app-config-rhdh.yaml` file:
58+
. Add the dedicated service as an allowed host by adding the following code to the `app-config.yaml` file:
7059
+
7160
[source,yaml]
7261
----
73-
proxy:
74-
endpoints:
75-
# Other Proxies
76-
'/developer-hub/tech-radar':
77-
target: ${TECHRADAR_DATA_URL}
78-
changeOrigin: true
79-
# Change to "false" in case of using self hosted cluster with a self-signed certificate
80-
secure: true
62+
backend:
63+
reading:
64+
allow:
65+
- host: 'hostname'
8166
----
82-
where the `TECHRADAR_DATA_URL` is defined as `pass:c[http://<SERVICE_NAME>/tech-radar]`, for example, `pass:c[http://rhdh-customization-provider/tech-radar]`.
67+
. Add the following to the app-config.yaml file:
8368
+
84-
[NOTE]
85-
====
86-
You can define the `TECHRADAR_DATA_URL` by adding it to `rhdh-secrets` or by directly replacing it with its value in your custom ConfigMap.
87-
====
88-
+
89-
. Delete the {product-short} pod to ensure that the new configurations are loaded correctly.
69+
[source,yaml]
70+
----
71+
techRadar:
72+
url: ${TECH_RADAR_DATA_URL}
73+
----
74+
where `TECH_RADAR_DATA_URL` is the URL from which the JSON data is loaded.

0 commit comments

Comments
 (0)