Skip to content
Closed
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
5 changes: 3 additions & 2 deletions docs/modules/user-guide/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
**** xref:adding-exec-commands-to-a-devfile.adoc[]
**** xref:adding-composite-commands-to-a-devfile.adoc[]
*** xref:adding-components-to-a-devfile.adoc[]
**** xref:adding-kubernetes-component-to-a-devfile.adoc[]
**** xref:adding-container-component-to-a-devfile.adoc[]
**** xref:adding-a-kubernetes-or-openshift-component-to-a-devfile.adoc[]
**** xref:adding-a-container-component-to-a-devfile.adoc[]
**** xref:adding-a-volume-component-to-a-devfile.adoc[]
**** xref:specifying-persistent-storage.adoc[]
**** xref:limiting-resources-usage.adoc[]
**** xref:defining-environment-variables.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:description: Adding a container component to a devfile
:navtitle: Adding a container component
:keywords: authoring, stack, components
:page-aliases:

include::partial$proc_adding-a-container-component-to-a-devfile.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:description: Adding a kubernetes or openshift component to a devfile
:navtitle: Adding a kubernetes or openshift component
:keywords: authoring, stack, components
:page-aliases:

include::partial$proc_adding-a-kubernetes-or-openshift-component-to-a-devfile.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:description: Adding a volume component to a devfile
:navtitle: Adding a volume component
:keywords: authoring, stack, components, volume


include::partial$proc_adding-a-volume-component-to-a-devfile.adoc[]

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[id="proc_adding-container-component-to-a-devfile_{context}"]
= Adding `container` components to a devfile
[id="proc_adding-a-container-component-to-a-devfile_{context}"]
= Adding a container component to a devfile

[role="_abstract"]
To incorporate custom tools into the workspace, define an image-based configuration of a container in a workspace. Define this configuration by using the `container` component type.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[id="proc_adding-kubernetes-component-to-a-devfile_{context}"]
= Adding a `kubernetes` or `openshift` component to a devfile
[id="proc_adding-a-kubernetes--or-openshift-component-to-a-devfile_{context}"]
= Adding a kubernetes or openshift component to a devfile

[role="_abstract"]
This section describes how to add either a `kubernetes` or `openshfit` component to a devfile. You can apply configurations to your devfile with `kubernetes` or `openshift` components.
You can add either a `kubernetes` or `openshfit` component to a devfile. Doing so enables you to configure your devfile to your unique development needs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openshfit is misspelled


.Prerequisites

Expand All @@ -12,11 +12,11 @@ This section describes how to add either a `kubernetes` or `openshfit` component

.Procedure

. Define a component using the type `kubernetes` or `openshift`.
. Define a component using the `kubernetes` or `openshift` type.

. Provide the content through the `uri` or `inlined` property.
+
.Adding `openshift` component using the `uri` property
.Adding a `openshift` component using the `uri` property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be an ?

====
[source,yaml]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[id="proc_adding-a-volume-component-to-a-devfile_{context}"]
= Adding a volume component to a devfile

[role="_abstract"]
You can use a volume component to share files among container components and collaborate easily with other teams during the development process.

.Prerequisites

* xref:adding-schema-version-to-a-devfile.adoc[]
* xref:adding-a-name-to-a-devfile.adoc[]
* xref:adding-components-to-a-devfile.adoc[]

.Procedure

* Define a `volume` component in your devfile.
+
.A minimal `volume` component
[source,yaml]
----
schemaVersion: 2.1.0
metadata:
name: mydevfile
components:
- name: mydevfile
volume:
size: 2Gi
----


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

* xref:api-reference.adoc[]
* xref:devfile-resources.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ Each component in a single devfile must have a unique name and use one of the ob

. For each component, define an unique value for the mandatory `name` attribute.

. For each component, define a mandatory type of one of the following types: `kubernetes`, `container` or `volume`.
. For each component, define a mandatory type of one of the following types: `kubernetes`, `container`, or `volume`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should include openshift as one of the components in this list


. xref:adding-kubernetes-component-to-a-devfile.adoc[]
. xref:adding-container-component-to-a-devfile.adoc[]
. xref:adding-a-kubernetes-or-openshift-component-to-a-devfile.adoc[]
. xref:adding-a-container-component-to-a-devfile.adoc[]
. xref:adding-a-volume-component-to-a-devfile.adoc[]
. xref:specifying-persistent-storage.adoc[]
. xref:limiting-resources-usage.adoc[]
. xref:defining-environment-variables.adoc[]
Expand Down
Loading