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 |
---|---|---|---|
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. |
Prerequisites
Procedure
To specify a static name for the workspace, define the
name
attribute.Adding a static name
devfile.yamlschemaVersion: 2.3.0 metadata: name: devfile-sample version: 2.0.0