Migrating components

This section describes how to migrate components to devfile v2. There ARE major changes in the components section of the devfile. A component specified in a v1.0 devfile will NOT work as it is in a devfile v2.0.

Procedure
  1. Component is a polymophic type

    For a better syntax validation component now is defined as a polymorphic type and can be implemented as container, kubernetes, openshift, plugin or volume.

    v2.0
    ---
    components:
      - container:
            image: maven
            ...
      - container:
            image: nodejs
            ...
      - kubernetes:
           reference: https://.../mongo.yaml
  2. Shared Volumes Across Components. See corresponding issue.

  3. Out of Main Pod Compoenents. See corresponding issue.

  4. Replace Alias with Name. See corresponding issue.

  5. Renaming dockerimage component type. See corresponding issue.

  6. Specify sources path for containers. See corresponding issue.

  7. Specify size of volume for component. See corresponding issue.

  8. Containers endpoints (routes/ingresses). See corresponding issue.

Additional resources