Adding plugin component to a devfile

This section describes how to add a plugin component to a devfile.

Procedure
  1. Define a component using the type plugin.

  2. Define the id attribute. It is the stack name in a devfile v2 registry. Devfile v2 registry should follow the convention according to the proposal.

    Example 1. A devfile defining a plug-in id
      components:
       - name: plugin-name
         plugin:
          id: nodejs
  3. Optional: Specify an alternative devfile registry using the registryUrl parameter:

    Example 2. Defining a plug-in id and an alternative devfile registry
      components:
       - name: plugin-name
         plugin:
          id: nodejs
          registryUrl: https://my-customregistry.com
Additional resources