Adding attributes to a devfile

Devfile attributes can be used to configure various features and properties according to user and tooling needs. Attributes are implementation-dependant, free-form YAML and can be defined for the following devfile objects: metadata, components, commands, projects, and starterProjects.

Procedure
  1. Define a custom attribute

    When no editor is specified, a default editor is provided. To represent this user-defined example, use the editorFree attribute as shown in the following example:

    Example 1. A devfile without an editor
    schemaVersion: 2.0.0
    metadata:
      name: petclinic-dev-environment
      attributes:
         editorFree: true
    components:
      - name: myapp
        kubernetes:
          uri: my-app.yaml
Additional resources