Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Adding a name to a devfile is mandatory. Both `name` and `generateName` are opti
schemaVersion: 2.0.0
metadata:
name: devfile-sample
version: 2.0.0
----

. To specify a prefix for automatically generated workspace names, define the `generateName` attribute and don't define the `name` attribute. The workspace name will be in the `<generateName>YYYYY` format (for example, `devfile-sample-2y7kp`). `Y` is random `[a-z0-9]` character.
Expand All @@ -30,6 +31,7 @@ metadata:
schemaVersion: 2.0.0
metadata:
name: devfile-sample
version: 2.0.0
----

[NOTE]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This section describes how to add one or more projects to a devfile.
schemaVersion: 2.0.0
metadata:
name: petclinic-dev-environment
version: 2.0.0
projects:
- name: petclinic
git:
Expand All @@ -40,6 +41,7 @@ projects:
schemaVersion: 2.0.0
metadata:
name: example-devfile
version: 2.0.0
projects:
- name: frontend
git:
Expand Down Expand Up @@ -96,6 +98,7 @@ source:
schemaVersion: 2.0.0
metadata:
name: my-project-dev
version: 2.0.0
projects:
- name: my-project-resource
clonePath: resources/my-project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ The `schemaVersion` attribute is mandatory in a devfile.
====
[source,yaml]
----
v2.0
---
schemaVersion: 2.0.0
metadata:
name: devfile-sample
version: 2.0.0
----
====


[role="_additional-resources"]
.Additional resources

* xref:api-reference.adoc[]
* xref:api-reference.adoc[]