Metadata

Adding a name to a devfile is mandatory. Use the name attribute to define the name. See the following table for metadata properties in a devfile:

Key Type Required Description
namestringyesThe name of your devfile. This name links you to the devfile registry if listed.
versionstringyesThe version of your devfile.

Prerequisites

Procedure

  1. To specify a static name for the workspace, define the name attribute.

    Adding a static name

    devfile.yaml
    schemaVersion: 2.2.1
    metadata:
      name: devfile-sample
      version: 2.0.0
    

Additional Resources