Red HatTomas KralTutorial
Migrate your custom plug-ins to Red Hat Developer Hub 2.1
Summary
Upgrading to Red Hat Developer Hub 2.1 requires migrating custom plug-ins because the old front-end system and Scalprum have been removed; plug-ins relying on Scalprum mount points will fail to mount. Plug-ins must adopt the new front-end system by implementing extension blueprints like PageBlueprint and EntityCardBlueprint, exporting an alpha entry point in package.json, and adding a local dev test harness. Configuration moves from dynamicPlugins.frontend mount points to the app.extensions YAML array, where arrays are replaced completely rather than merged key by key. Plug-ins are now published as standalone OCI container images via Red Hat Konflux pipelines on quay.io, removing wrappers from the core container image. Red Hat provides the rhdh-plugin-nfs-migration skill for automating the 6-step plugin migration and the rhdh-upgrade-helper for configuration, along with the rhdh-local tool for testing on the dev branch using the next image.
Context
When upgrading to Red Hat Developer Hub 2.1, custom plug-ins must be migrated to adapt to the new front-end system and configuration format. The old front-end system and Scalprum module federation framework have been removed; plug-ins relying on its mount points will fail to load. Plug-ins must adopt extension blueprints and alpha exports; configuration moves from dynamicPlugins.frontend to app.extensions arrays; plug-ins are loaded from standalone OCI images.
Approach / What changed
The migration follows a 6-step workflow: discover existing exports, choose an alpha export path, migrate extensions to Backstage blueprints, update package.json exports, set up a local dev test harness, and verify with type checking and build. For administrators, configuration files must convert dynamicPlugins.frontend mount points to app.extensions blocks and remove old wrapper paths. The provided rhdh-plugin-nfs-migration skill automates the plugin migration, and the rhdh-upgrade-helper handles configuration conversion. Local testing uses rhdh-local on the dev branch pointing to the next image.
Takeaways
Old plug-ins relying on Scalprum mount points will fail to load in Developer Hub 2.1 because the old front-end system and Scalprum are removed; plug-ins must use createFrontendPlugin and extension blueprints with an alpha export.
Configuration migrates from dynamicPlugins.frontend YAML objects to the app.extensions array; arrays are replaced completely when merging, so define app.extensions in a single configuration file only.
Plug-ins are now distributed as standalone OCI container images published via Konflux on quay.io; remove all old dynamic wrapper paths and !plugin-path suffixes from dynamic-plugins.yaml.
FAQ
What happens to old plug-ins after upgrading to 2.1?
Old plug-ins that depend on Scalprum mount points will fail to mount and cause deployment failures. They must be migrated to use the new front-end system with extension blueprints and alpha exports.
How can a plug-in support both 1.10 and 2.1?
Use the dual-export pattern in package.json: export "." for 1.10 and "./alpha" for 2.1. The plug-in root export remains functional for 1.10 while the alpha export enables the new front-end system for 2.1.
How does configuration merging work for app.extensions?
Backstage treats app.extensions as a YAML array; when multiple configuration files define the same array, the higher-priority file completely replaces the entire array rather than merging entries by ID.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.