Module 9: Deploy a dynamic plugin

Another capability of Red Hat Developer Hub is add dynamic plugins easily. This exercise will deploy a dynamic plugin defined in this repo.

Previously we added the definition of the GitLab catalog backend plugin, now we will extend the list of dynamic plugins including the new one with the following configuration:

    plugins:
      # ... Other previous plugins ...
      # DevQuotes Dynamic Plugin
      - package: oci://quay.io/rhdh-adventure-organization/parsifal-m-plugin-dev-quotes-homepage:3.0.8!parsifal-m-plugin-dev-quotes-homepage
        disabled: false
        pluginConfig:
          dynamicPlugins:
            frontend:
              parsifal-m.plugin-dev-quotes-homepage:
                mountPoints:
                  - mountPoint: entity.page.overview/cards
                    importName: DevQuote
                    config:
                      layout:
                        gridColumnEnd:
                          lg: span 4
                          md: span 6
                          xs: span 12
                dynamicRoutes:
                  - importName: DevQuote
                    menuItem:
                      text: Quote
                    path: /devquote

Or run:

oc apply -f ./content/modules/ROOT/examples/exercises/dynamic-plugins-7.yaml -n rhdh-gitlab

Verify the Quote menu is listed, and a quote is showed in any component dashboard.

Learning outcomes

By completing this module, you should understand:

  • How to add OCI-based dynamic plugin package to ConfigMap

  • How to configure mount points for entity overview cards

  • How to verify Quote menu and homepage card