Adding a name to a devfile

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

name

string

yes

The name of your devfile. This name links you to the devfile registry if listed.

version

string

yes

The version of your devfile.

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

    Adding a static name to a devfile
    schemaVersion: 2.1.0
    metadata:
      name: devfile-sample
      version: 2.0.0
Additional resources