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
.
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