You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/getting-started/proc-customize-rhdh-tech-radar-page.adoc
+19-34Lines changed: 19 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,33 +21,22 @@ You can provide data to the Tech Radar page from the following sources:
21
21
22
22
.Prerequisites
23
23
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.
26
26
27
27
.Procedure
28
28
29
29
To access the data from the JSON files, complete the following step:
30
30
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:
'^/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}
50
38
----
39
+
where `TECH_RADAR_DATA_URL` is the URL from which the JSON data is loaded.
51
40
52
41
== Using a dedicated service to provide data to the Tech Radar page
53
42
@@ -66,24 +55,20 @@ For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhd
66
55
67
56
To use a separate service to provide the Tech Radar data, complete the following steps:
68
57
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:
70
59
+
71
60
[source,yaml]
72
61
----
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'
81
66
----
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:
83
68
+
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