이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Enabling plugins added in the RHDH container image
In the RHDH container image, a set of dynamic plugins is preloaded to enhance functionality. However, due to mandatory configuration requirements, most of the plugins are disabled.
You can enable and configure the plugins in the RHDH container image, including how to manage the default configuration, set necessary environment variables, and ensure the proper functionality of the plugins within your application.
Prerequisites
-
You have access to the
dynamic-plugins.default.yamlfile, which lists all preloaded plugins and their default configuration. -
You have deployed the RHDH application, and have access to the logs of the
install-dynamic-pluginsinit container. - You have the necessary permissions to modify plugin configurations and access the application environment.
- You have identified and set the required environment variables referenced by the plugin’s default configuration. These environment variables must be defined in the Helm Chart or Operator configuration.
Procedure
-
Start your RHDH application and access the logs of the
install-dynamic-pluginsinit container within the RHDH pod. - Identify the Red Hat supported plugins that are disabled by default.
-
Copy the package configuration from the
dynamic-plugins.default.yamlfile. Open the plugin configuration file and locate the plugin entry you want to enable.
The location of the plugin configuration file varies based on the deployment method. For more details, see Installing dynamic plugins with the Red Hat Developer Hub Operator and Installing dynamic plugins using the Helm chart.
Modify the
disabledfield tofalseand add the package name as follows:Example plugin configuration
plugins: - disabled: false package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamicplugins: - disabled: false package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamicCopy to Clipboard Copied! Toggle word wrap Toggle overflow For more information about how to configure dynamic plugins in Developer Hub, see Installing dynamic plugins in Red Hat Developer Hub.
Verification
- Restart the RHDH application and verify that the plugin is successfully activated and configured.
- Verify the application logs for confirmation and ensure the plugin is functioning as expected.