Adding attributes to a devfile
Use devfile attributes to configure various features and properties according to user and tooling needs. Attributes are implementation-dependent and written in free-form YAML. The following devfile objects can have attributes:
-
metadata
-
components
-
commands
-
projects
-
starterProjects
Prerequisites
Procedure
-
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 editorschemaVersion: 2.1.0 metadata: name: petclinic-dev-environment attributes: editorFree: true components: - name: myapp kubernetes: uri: my-app.yaml
Additional resources