Skip to content

Commit c7ce578

Browse files
GitHub Actionsjmagak
GitHub Actions
authored andcommitted
Update the config in installation
1 parent 1f1ccc2 commit c7ce578

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

modules/installation/proc-install-rhdh-ocp-operator.adoc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,48 @@ As a developer, you can deploy a {product} instance on {ocp-short} by using the
1919
. From the *Developer* perspective on the {ocp-short} web console, click *+Add*.
2020
. From the *Developer Catalog* panel, click *Operator Backed*.
2121
. In the *Filter by keyword* box, enter _{product-short}_ and click the *{product}* card.
22+
. Create a ConfigMap named `app-config-rhdh` containing the {product-short} configuration using the following template:
23+
+
24+
--
25+
[source,yaml,subs="attributes+"]
26+
----
27+
apiVersion: v1
28+
kind: ConfigMap
29+
metadata:
30+
name: app-config-rhdh
31+
data:
32+
"app-config-rhdh.yaml": |
33+
app:
34+
title: {product}
35+
baseUrl: https://<rhdh_dns_name>
36+
backend:
37+
auth:
38+
externalAccess:
39+
- type: legacy
40+
options:
41+
subject: legacy-default-config
42+
secret: "${BACKEND_SECRET}"
43+
baseUrl: https://<rhdh_dns_name>
44+
cors:
45+
origin: https://<rhdh_dns_name>
46+
----
47+
--
48+
49+
. Create a Secret named `{my-product-secrets}` and add a key named `BACKEND_SECRET` with a `Base64-encoded` string as value:
50+
+
51+
--
52+
[source,yaml,subs="+attributes,+quotes"]
53+
----
54+
apiVersion: v1
55+
kind: Secret
56+
metadata:
57+
name: {my-product-secrets}
58+
stringData:
59+
# TODO: See https://backstage.io/docs/auth/service-to-service-auth/#setup
60+
BACKEND_SECRET: "xxx"
61+
----
62+
--
63+
2264
. Click *Create*.
2365
. xref:{configuring-book-url}#using-the-operator-to-run-rhdh-with-your-custom-configuration[Add your {product-custom-resource-type} custom resource content].
2466
. On the *Create Backstage* page, click *Create*

modules/installation/proc-install-rhdh-osd-gcp-operator.adoc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,48 @@ You can install {product-short} on {osd-short} on {gcp-short} using the {product
1717
. In the *Filter by keyword* box, enter {product-short} and click the *{product} Operator* card.
1818
. On the *{product} Operator* page, click *Install*.
1919
. In the {ocp-short} console, navigate to *Installed Operators* and select *{product} Operator*.
20+
. Create a ConfigMap named `app-config-rhdh` containing the {product-short} configuration using the following template:
21+
+
22+
--
23+
[source,yaml,subs="attributes+"]
24+
----
25+
apiVersion: v1
26+
kind: ConfigMap
27+
metadata:
28+
name: app-config-rhdh
29+
data:
30+
"app-config-rhdh.yaml": |
31+
app:
32+
title: {product}
33+
baseUrl: https://<rhdh_dns_name>
34+
backend:
35+
auth:
36+
externalAccess:
37+
- type: legacy
38+
options:
39+
subject: legacy-default-config
40+
secret: "${BACKEND_SECRET}"
41+
baseUrl: https://<rhdh_dns_name>
42+
cors:
43+
origin: https://<rhdh_dns_name>
44+
----
45+
--
46+
47+
. Create a Secret named `{my-product-secrets}` and add a key named `BACKEND_SECRET` with a `Base64-encoded` string as value:
48+
+
49+
--
50+
[source,yaml,subs="+attributes,+quotes"]
51+
----
52+
apiVersion: v1
53+
kind: Secret
54+
metadata:
55+
name: {my-product-secrets}
56+
stringData:
57+
# TODO: See https://backstage.io/docs/auth/service-to-service-auth/#setup
58+
BACKEND_SECRET: "xxx"
59+
----
60+
--
61+
2062
. From the {product-short} Operator page, click *Create New Instance* and specify the name and namespace where you want to deploy {product-short}.
2163
. Configure the required settings such as Git integration, secret management, and user permissions.
2264
. Review the configuration, select deployment options, and click *Create*.

0 commit comments

Comments
 (0)