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
In {product}, the Tech Radar page is provided by the `tech-radar` dynamic plugin, which is disabled by default. For information about enabling dynamic plugins in {product} see link:{LinkPluginsGuide}[Configuring plugins in {product}].
5
-
6
-
In {product}, 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.
7
-
8
-
[NOTE]
9
-
====
10
-
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`).
11
-
12
-
For more information about customizing the Home page in {product}, see xref:proc-customize-rhdh-homepage_rhdh-getting-started[Customizing the Home page in {product}].
13
-
====
4
+
In {product}, the Tech Radar page is provided by the `tech-radar` and `tech-radar-backend` dynamic plugins, which are disabled by default.
5
+
For information about enabling dynamic plugins in {product} see link:{LinkPluginsGuide}[Configuring plugins in {product}].
14
6
15
7
You can provide data to the Tech Radar page from the following sources:
16
8
@@ -21,33 +13,22 @@ You can provide data to the Tech Radar page from the following sources:
21
13
22
14
.Prerequisites
23
15
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}].
16
+
* You have installed {product} by using either the Operator or Helm chart. For more information, see link:{installing-on-ocp-book-url}[{installing-on-ocp-book-title}].
17
+
* You have specified the data sources for the Tech Radar plugin in the `integrations` section of the `app-config.yaml` file. For example, to configure GitHub as an authentication provider, see link:{authentication-book-url}#authenticating-with-github[Authenticating with GitHub].
26
18
27
19
.Procedure
28
20
29
21
To access the data from the JSON files, complete the following step:
30
22
31
-
* Add the following code to the `app-config.yaml` file:
23
+
. Enable the `./dynamic-plugins/dist/backstage-community-plugin-tech-radar` and `/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic` plugins.
24
+
. 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
28
+
techRadar:
29
+
url: ${TECH_RADAR_DATA_URL} <1>
50
30
----
31
+
<1> `TECH_RADAR_DATA_URL` is the URL from which the JSON data is loaded.
51
32
52
33
== Using a dedicated service to provide data to the Tech Radar page
53
34
@@ -66,24 +47,20 @@ For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhd
66
47
67
48
To use a separate service to provide the Tech Radar data, complete the following steps:
68
49
69
-
. Add the following code to the `app-config-rhdh.yaml` file:
50
+
. Add the dedicated service as an allowed host by adding the following code to the `app-config.yaml` file:
70
51
+
71
52
[source,yaml]
72
53
----
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
54
+
backend:
55
+
reading:
56
+
allow:
57
+
- host: 'hostname'
81
58
----
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]`.
83
-
+
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
-
====
59
+
. Add the following to the `app-config.yaml` file:
88
60
+
89
-
. Delete the {product-short} pod to ensure that the new configurations are loaded correctly.
61
+
[source,yaml]
62
+
----
63
+
techRadar:
64
+
url: ${TECH_RADAR_DATA_URL} <1>
65
+
----
66
+
<1> `TECH_RADAR_DATA_URL` is the URL from which the JSON data is loaded.
0 commit comments