Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Update downstream RHDH docs now that CR updates are supported (#145)
Browse files Browse the repository at this point in the history
* Update downstream RHDH docs now that CR updates are supported

Remove the need to manually delete the Backstage Deployment when CR is updated

* Update .rhdh/docs/openshift.adoc

Co-authored-by: Nick Boldt <[email protected]>

---------

Co-authored-by: Nick Boldt <[email protected]>
  • Loading branch information
rm3l and nickboldt authored Jan 15, 2024
1 parent 686cafc commit cabce10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Binary file removed .rhdh/docs/images/delete_backstage_deployment.png
Binary file not shown.
Binary file removed .rhdh/docs/images/delete_postgres_statefulset.png
Binary file not shown.
19 changes: 7 additions & 12 deletions .rhdh/docs/openshift.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ image::images/rhdh_from_operator.png[RHDH from Operator]

=== Configurations for Operator-backed RHDH

NOTE: At the moment, updates to the Backstage Custom Resource (CR) are automatically handled by the Operator.
But updates to resources (e.g., ConfigMaps, Secrets) referenced in the CR are currently not handled automatically (unless the CR itself is updated).
In this case, you will need to manually delete the Backstage Deployment, so that the Operator can recreate it with the updates.

==== Adding a custom application configuration file to OpenShift

To access the Red Hat Developer Hub, you must add a custom application configuration file to OpenShift.
Expand Down Expand Up @@ -122,10 +126,7 @@ spec:
image::images/app-config_in_cr.png[Adding custom app-config to RHDH CR]

. Click *Save*.
. Navigate back to the *Topology* view and delete the Backstage Deployment, so that the Operator can recreate it with the new changes to the CR.
Note that this is a manual step at this time, but the operator will soon be able to handle such changes automatically.
image:images/delete_backstage_deployment.png[Recreating RHDH Deployment]
. Wait for the Red Hat Developer Hub Pod to start.
. Navigate back to the *Topology* view and wait for the Red Hat Developer Hub Pod to start.
. Click the *Open URL* option to start using the Red Hat Developer Hub platform with the new configuration changes.

==== Configuring Dynamic Plugins with the Operator
Expand Down Expand Up @@ -187,9 +188,7 @@ spec:
image::images/dynamic_plugins_in_cr.png[Adding dynamic plugins ConfigMap to RHDH CR]

. Click *Save*.
. Navigate back to the *Topology* View and delete the Backstage Deployment, so that the Operator can recreate it with the new changes to the CR.
Note that this is a manual step at this time, but the operator will soon be able to handle such changes automatically.
. Wait for the Red Hat Developer Hub Pod to start.
. Navigate back to the *Topology* View and wait for the Red Hat Developer Hub Pod to start.
. Click the *Open URL* option to start using the Red Hat Developer Hub platform with the new configuration changes.

*Verification*
Expand Down Expand Up @@ -249,11 +248,7 @@ spec:
----

. Click *Save*.
. Navigate back to the *Topology* view and delete both the Backstage Deployment and PostgreSQL StatefulSet, so that the Operator can recreate it with the new changes to the CR.
Note that this is a manual step at this time, but the operator will soon be able to handle such changes automatically.
image:images/delete_backstage_deployment.png[Recreating RHDH Deployment]
image:images/delete_postgres_statefulset.png[Deleting RHDH Postgresql Deployment]
. Wait for the Red Hat Developer Hub Pod to start. The Database resource should not be created.
. Navigate back to the *Topology* view and wait for the Red Hat Developer Hub Pod to start. The Postgres pod should not be created.
image:images/rhdh_without_local_db.png[RHDH with no local DB]
. Click the *Open URL* option to start using the Red Hat Developer Hub platform with the new configuration changes.

Expand Down

0 comments on commit cabce10

Please sign in to comment.