@janus-idp/backstage-plugin-dynamic-plugins-info
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

Dynamic Plugins Info plugin for Backstage

The dynamic-plugins-info plugin is a frontend component for the dynamic-plugins-info-backend plugin. It offers a simple table of plugins that are currently installed in Red Hat Developer Hub or Janus IDP that supports client-side sorting, filtering and pagination.

dynamic-plugins-info-screenshot

The plugin is designed to be installed dynamically in the backstage-showcase app.

Installing via Helm

To install this plugin into Red Hat Developer Hub or Janus IDP via Helm use this configuration:

global:
  dynamic:
    includes:
      - dynamic-plugins.default.yaml
    plugins:
      - package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-dynamic-plugins-info
        disabled: false

Building and installing locally

To build this plugin and the dynamic entrypoint:

yarn install

yarn tsc

yarn build

yarn export-dynamic

To install the dynamic plugin from a local build and run it in a local instance of backstage-showcase:

cd dist-scalprum
npm pack .
archive=$(npm pack $pkg)
tar -xzf "$archive" && rm "$archive"
mv package $(echo $archive | sed -e 's:\.tgz$::')

Move the resulting directory (janus-idp-backstage-plugin-dynamic-plugins-info-0.1.0) into the dynamic-plugins-root folder of your backstage-showcase clone, then run yarn start to start the app.

This configuration will then enable the plugin to be visible in the UI:

dynamicPlugins:
  frontend:
    janus-idp.backstage-plugin-dynamic-plugins-info:
      dynamicRoutes:
        - path: /admin/plugins
          importName: DynamicPluginsInfo
      mountPoints:
        - mountPoint: admin.page.plugins/cards
          importName: DynamicPluginsInfo
          config:
            layout:
              gridColumn: '1 / -1'
              width: 100vw

Package Sidebar

Install

npm i @janus-idp/backstage-plugin-dynamic-plugins-info

Homepage

red.ht/rhdh

Weekly Downloads

89

Version

1.2.5

License

Apache-2.0

Unpacked Size

12.8 MB

Total Files

438

Last publish

Collaborators

  • nickboldt
  • tomaskral
  • tumido