Skip to content

Commit f2051f2

Browse files
openshift-cherrypick-robotchristoph-jerolimovnickboldtrm3l
authored
chore!: Bump RHDH image to 1.9 and update the dynamic plugins configuration accordingly [RHDHBUGS-2646] (#164)
Co-authored-by: Christoph Jerolimov <jerolimov+git@redhat.com> Co-authored-by: Nick Boldt <nboldt@redhat.com> Co-authored-by: Armel Soro <asoro@redhat.com>
1 parent 26a4c7d commit f2051f2

10 files changed

Lines changed: 73 additions & 86 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,28 @@ To browse the existing issues, you can use this [Query](https://issues.redhat.co
8787

8888
Contributions are welcome!
8989

90+
91+
## Breaking changes and known issues
92+
93+
### Upgrading to RHDH 1.9
94+
95+
More details in the [RHDH 1.9 Release Notes](https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.9/html/red_hat_developer_hub_release_notes/index).
96+
97+
If you switch your `RHDH_IMAGE` to 1.9+ (default value in this branch), you may need to:
98+
99+
1. **Update your `dynamic-plugins.override.yaml`**
100+
101+
Some plugins are no longer bundled in the RHDH image, but have been moved to OCI references.
102+
103+
See [Migration Steps](https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.9/html/dynamic_plugins_reference/ref-community-plugins-migration_title-plugins-rhdh-about#migration-steps) for more information.
104+
105+
Also see [configs/dynamic-plugins/dynamic-plugins.override.example.yaml](configs/dynamic-plugins/dynamic-plugins.override.example.yaml) for an example.
106+
107+
2. **Update any scaffolder modules**
108+
109+
Ensure they are built for the Backstage version used in RHDH 1.9. Otherwise the backend may fail to start (e.g. `TypeError: Cannot read properties of undefined (reading 'id')`). See [RHDHBUGS-2497](https://issues.redhat.com/browse/RHDHBUGS-2497) as a known issue.
110+
111+
90112
## License
91113

92114
```txt

compose-with-corporate-proxy.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ services:
2222
networks:
2323
- internal_net
2424
- default
25+
healthcheck:
26+
test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/3128'"]
27+
interval: 5s
28+
timeout: 3s
29+
retries: 5
2530

2631
rhdh:
2732
environment:
@@ -36,6 +41,9 @@ services:
3641
# As a workaround, we are adding it to the default network,
3742
# but note that there is as such nothing preventing requests from bypassing the proxy to reach the outside.
3843
- default
44+
depends_on:
45+
proxy:
46+
condition: service_healthy
3947

4048
install-dynamic-plugins:
4149
environment:
@@ -44,3 +52,6 @@ services:
4452
# NO_PROXY configured in the .env file, but can be overridden here
4553
networks:
4654
- internal_net
55+
depends_on:
56+
proxy:
57+
condition: service_healthy

compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323

2424
rhdh:
2525
container_name: rhdh
26-
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.8}
26+
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.9}
2727
env_file:
2828
- path: "./default.env"
2929
required: true
@@ -42,7 +42,7 @@ services:
4242
- ./docs:/opt/app-root/src/docs:Z
4343
- ./catalog-info.yaml:/opt/app-root/src/catalog-info.yaml:Z
4444
- ./wait-for-plugins-and-start.sh:/opt/app-root/src/wait-for-plugins-and-start.sh:Z
45-
- ./configs:/opt/app-root/src/configs:Z
45+
- ./configs:/opt/app-root/src/configs:z
4646
- dynamic-plugins-root:/opt/app-root/src/dynamic-plugins-root
4747
- extensions-catalog:/extensions
4848
depends_on:
@@ -53,7 +53,7 @@ services:
5353

5454
install-dynamic-plugins:
5555
container_name: rhdh-plugins-installer
56-
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.8}
56+
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.9}
5757
# docker compose volumes are owned by root, so we need to run as root to write to them
5858
# the main rhdh container will be able to read from this as files are world readable
5959
user: "root"
@@ -67,7 +67,7 @@ services:
6767
volumes:
6868
- ./prepare-and-install-dynamic-plugins.sh:/opt/app-root/src/prepare-and-install-dynamic-plugins.sh:Z
6969
- ./local-plugins:/opt/app-root/src/local-plugins:Z
70-
- ./configs:/opt/app-root/src/configs:Z
70+
- ./configs:/opt/app-root/src/configs:z
7171
- dynamic-plugins-root:/dynamic-plugins-root
7272
- extensions-catalog:${CATALOG_ENTITIES_EXTRACT_DIR:-/extensions}
7373

configs/dynamic-plugins/dynamic-plugins.override.example.yaml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
includes:
55
- dynamic-plugins.default.yaml
6-
# Uncomment the following line (and the corresponding 'red-hat-developer-hub-backstage-plugin-marketplace*' plugins)
6+
# Uncomment the following line (and the corresponding 'red-hat-developer-hub-backstage-plugin-extensions*' plugins)
77
# to enable dynamic plugins installation using the Extensions UI.
88
# - /dynamic-plugins-root/dynamic-plugins.extensions.yaml
99

@@ -98,30 +98,14 @@ includes:
9898
# importName: RbacPage
9999

100100
# # Uncomment the following two plugins to enable dynamic plugins installation via the Extensions UI
101-
# - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace
101+
# # TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
102+
# # - package: 'oci://quay.io/rhdh/red-hat-developer-hub-backstage-plugin-extensions:{{inherit}}'
103+
# - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-extensions
102104
# disabled: false
103-
# pluginConfig:
104-
# dynamicPlugins:
105-
# frontend:
106-
# red-hat-developer-hub.backstage-plugin-marketplace:
107-
# translationResources:
108-
# - importName: marketplaceTranslations
109-
# ref: marketplaceTranslationRef
110-
# module: Alpha
111-
# appIcons:
112-
# - name: pluginsIcon
113-
# importName: PluginsIcon
114-
# dynamicRoutes:
115-
# - path: /extensions
116-
# importName: DynamicMarketplacePluginRouter
117-
# menuItem:
118-
# icon: pluginsIcon
119-
# text: Extensions
120-
# textKey: menuItem.extensions
121-
# menuItems:
122-
# extensions:
123-
# parent: default.admin
124-
# - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic
105+
106+
# # TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
107+
# # - package: 'oci://quay.io/rhdh/red-hat-developer-hub-backstage-plugin-extensions-backend:{{inherit}}'
108+
# - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-extensions-backend-dynamic
125109
# disabled: false
126110
# pluginConfig:
127111
# extensions:

configs/dynamic-plugins/dynamic-plugins.yaml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,25 @@ includes:
66

77
plugins:
88
# Tech Radar frontend plugin
9+
# # TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
10+
# - package: 'oci://quay.io/rhdh/backstage-community-plugin-tech-radar:{{inherit}}'
911
- package: ./dynamic-plugins/dist/backstage-community-plugin-tech-radar
1012
disabled: false
1113

1214
# Quay plugin
13-
- package: ./dynamic-plugins/dist/backstage-community-plugin-quay
15+
# # TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
16+
# - package: 'oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-quay-backend:{{inherit}}'
17+
# disabled: false
18+
- package: 'oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-quay:{{inherit}}'
1419
disabled: false
1520

1621
# Scaffolder Github plugin - used by Dynamic Plugin Software Templates
1722
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-github-dynamic
1823
disabled: false
1924

2025
# Floating Action Button plugin with submenu actions
26+
# TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
27+
# - package: 'oci://quay.io/rhdh/red-hat-developer-hub-backstage-plugin-global-floating-action-button:{{inherit}}'
2128
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-floating-action-button
2229
disabled: false
2330
pluginConfig:
@@ -58,31 +65,15 @@ plugins:
5865
#########################################################
5966
# Enable dynamic plugins installation by using Extensions
6067
#########################################################
61-
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace
68+
69+
# TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
70+
# - package: 'oci://quay.io/rhdh/red-hat-developer-hub-backstage-plugin-extensions:{{inherit}}'
71+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-extensions
6272
disabled: false
63-
pluginConfig:
64-
dynamicPlugins:
65-
frontend:
66-
red-hat-developer-hub.backstage-plugin-marketplace:
67-
translationResources:
68-
- importName: marketplaceTranslations
69-
ref: marketplaceTranslationRef
70-
module: Alpha
71-
appIcons:
72-
- name: pluginsIcon
73-
importName: PluginsIcon
74-
dynamicRoutes:
75-
- path: /extensions
76-
importName: DynamicMarketplacePluginRouter
77-
menuItem:
78-
icon: pluginsIcon
79-
text: Extensions
80-
textKey: menuItem.extensions
81-
menuItems:
82-
extensions:
83-
parent: default.admin
8473

85-
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic
74+
# TODO: Replace the `./dynamic-plugins/dist/` path with the OCI reference once we switch to that in the dynamic-plugins.default.yaml (DPDY) file in the catalog index image - see https://issues.redhat.com/browse/RHDHPLAN-934 and https://issues.redhat.com/browse/RHDHPLAN-256
75+
# - package: 'oci://quay.io/rhdh/red-hat-developer-hub-backstage-plugin-extensions-backend:{{inherit}}'
76+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-extensions-backend-dynamic
8677
disabled: false
8778
pluginConfig:
8879
extensions:

default.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BASE_URL=http://localhost:7007
99

1010
# configure image to use: default to using the latest stable tag of the community builds, which are built for both amd64 and arm64 architectures
1111
# to use bleeding edge :next images or commercially supported images, see README.md for details
12-
# RHDH_IMAGE=quay.io/rhdh-community/rhdh:1.8
12+
# RHDH_IMAGE=quay.io/rhdh-community/rhdh:1.9
1313

1414
# Default plugin catalog index image
1515
# Requires RHDH 1.9+ to be handled.

developer-lightspeed/configs/dynamic-plugins/dynamic-plugins.lightspeed.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
includes:
55
- dynamic-plugins.default.yaml
66
plugins:
7-
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-lightspeed:bs_1.45.3__1.2.3!red-hat-developer-hub-backstage-plugin-lightspeed
7+
- package: 'oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-lightspeed:bs_1.45.3__1.2.3'
88
disabled: false
99
pluginConfig:
1010
lightspeed:
@@ -37,5 +37,5 @@ plugins:
3737
config:
3838
id: lightspeed
3939
priority: 100
40-
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-lightspeed-backend:bs_1.45.3__1.2.3!red-hat-developer-hub-backstage-plugin-lightspeed-backend
40+
- package: 'oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-lightspeed-backend:bs_1.45.3__1.2.3'
4141
disabled: false

docs/getting-started-rhdh/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Both platforms share the same foundational features:
7878
|---------|----------------|------------------------|
7979
| **Dynamic Plug-Ins** (no need to recompile) |||
8080
| **Verified Plugin Compatibility** | ⚠️ (self-verify) ||
81-
| **Extensions Catalog Plugin** (marketplace) |||
81+
| **Extensions Catalog Plugin** (catalog) |||
8282
| **Adoption Insights Plugin** (user metrics) |||
8383
| **20+ Red Hat Plugins** (e.g., Tekton, ArgoCD, Kiali, 3scale, ACS, Ansible) |||
8484
| **[Free Software Templates Library](https://github.com/redhat-developer/red-hat-developer-hub-software-templates)** |||

docs/getting-started-rhdh/extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Integrating these entity plugins means you don't have to leave Developer Hub to
4545

4646
How do you know what plugins are available?
4747

48-
Red Hat Developer Hub includes a built-in [**Extensions**](/extensions) marketplace (sometimes called the "Extensions Plugin") that lists available plugins.
48+
Red Hat Developer Hub includes a built-in [**Extensions**](/extensions) catalog (sometimes called the "Extensions Plugin") that lists available plugins.
4949

5050
!!! note "For Administrators Only 🔒"
51-
The Extensions marketplace is primarily a tool for **Administrators** and **Platform Engineers**. It allows them to see which plugins are installed, which are available, and to manage their configuration.
51+
The Extensions catalog is primarily a tool for **Administrators** and **Platform Engineers**. It allows them to see which plugins are installed, which are available, and to manage their configuration.
5252

5353
As a user, you typically won't use this page to "install" plugins yourself. Instead, you'll work with your administrator to request the plugins your team needs.
5454

orchestrator/configs/dynamic-plugins/dynamic-plugins.yaml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,19 @@ includes:
33
- dynamic-plugins.default.yaml
44

55
plugins:
6-
- package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator/-/backstage-plugin-orchestrator-1.8.2.tgz"
7-
integrity: sha512-rnUA6iZ2JVAyASfwS4P9HeFmpqCgH6FQouzzg4s6lCPAsYUFvu6tifJ3df5lThXPUTJ2cDvvQgamU+4DiHP2jw==
6+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator:{{inherit}}'
7+
disabled: false
8+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend:{{inherit}}'
89
disabled: false
9-
pluginConfig:
10-
dynamicPlugins:
11-
frontend:
12-
red-hat-developer-hub.backstage-plugin-orchestrator:
13-
appIcons:
14-
- importName: OrchestratorIcon
15-
name: orchestratorIcon
16-
dynamicRoutes:
17-
- importName: OrchestratorPage
18-
menuItem:
19-
icon: orchestratorIcon
20-
text: Orchestrator
21-
path: /orchestrator
22-
- disabled: false
23-
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator-backend-dynamic/-/backstage-plugin-orchestrator-backend-dynamic-1.8.2.tgz"
24-
integrity: sha512-6G0YguzCM5nCDpOrIGJpLTXVMr6EBdIVqSXtsLH9RvBH25RTuFpfJ7q6eEp26DqveaiqUCfBpJ51smdjcsEzFQ==
2510
pluginConfig:
2611
orchestrator:
2712
dataIndexService:
2813
url: http://sonataflow:8899
29-
- disabled: false
30-
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-scaffolder-backend-module-orchestrator-dynamic/-/backstage-plugin-scaffolder-backend-module-orchestrator-dynamic-1.8.2.tgz"
31-
integrity: sha512-N2hCn9RI/QVEoK56FAkGkSDbvfQCOIzVsJTwDX0kf//npO++2crRSJpB1Lr/m2UtYxfaXZX53p8sPcK3g8yWkQ==
14+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator:{{inherit}}'
15+
disabled: false
3216
pluginConfig:
3317
orchestrator:
3418
dataIndexService:
3519
url: http://sonataflow:8899
36-
- disabled: false
37-
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator-form-widgets/-/backstage-plugin-orchestrator-form-widgets-1.8.2.tgz"
38-
integrity: sha512-Pe0dn3g+YTK3jbl36E8nt4zdyH/3w+MWgRyFWPc2B0eV4/L/aRfRC4KxcktmHPdamRGXTIaXL6cFae8TZl8Htw==
39-
pluginConfig:
40-
dynamicPlugins:
41-
frontend:
42-
red-hat-developer-hub.backstage-plugin-orchestrator-form-widgets: {}
20+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets:{{inherit}}'
21+
disabled: false

0 commit comments

Comments
 (0)