Skip to content

Commit 6d66967

Browse files
jc-bergerbburt-rhrolfedh
authored
added devfile component changes (#147)
* added devfile component changes * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Brian Burt <[email protected]> * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Brian Burt <[email protected]> * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Brian Burt <[email protected]> * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Brian Burt <[email protected]> * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Brian Burt <[email protected]> * Update docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc Co-authored-by: Rolfe Dlugy-Hegwer <[email protected]> * added monospace to make the values clearer Co-authored-by: jc-berger <> Co-authored-by: Brian Burt <[email protected]> Co-authored-by: Rolfe Dlugy-Hegwer <[email protected]>
1 parent 5ee557f commit 6d66967

File tree

1 file changed

+62
-42
lines changed

1 file changed

+62
-42
lines changed

docs/modules/user-guide/partials/proc_adding-components-to-a-devfile.adoc

Lines changed: 62 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,69 @@ Each component in a single devfile must have a unique name and use one of the ob
99
|===
1010
|Key |Type| Required| Description
1111

12-
|container
13-
|componentObject
12+
|`container`
13+
|`componentObject`
1414
|no
15-
|The list of containers that you use.
15+
|The list of containers.
16+
17+
|`kubernetes`
18+
|`componentObject`
19+
|no
20+
|The Kubernetes cluster.
21+
22+
|`openshift`
23+
|`componentObject`
24+
|no
25+
|The OpenShift container.
26+
27+
|`volume`
28+
|`componentObject`
29+
|no
30+
|The list of volume components.
1631
|===
1732

1833
.container object
1934
[cols="1,1,1,1"]
2035
|===
2136
|Key |Type| Required| Description
2237

23-
|name
24-
|string
38+
|`name`
39+
|`string`
2540
|yes
2641
|The name of your container.
2742

28-
|image
29-
|string
43+
|`image`
44+
|`string`
3045
|yes
3146
|The image version.
3247

33-
|memoryLimit
34-
|string
48+
|`memoryLimit`
49+
|`string`
3550
|no
3651
|The memory limit that you use with your container.
3752

38-
|mountSources
39-
|boolean
53+
|`mountSources`
54+
|`boolean`
4055
|no
4156
|Choose to mount the source or not.
4257

43-
|sourceMapping
44-
|string
58+
|`sourceMapping`
59+
|`string`
4560
|no
4661
|The path in the container where you transfer and mount the project sources. This path is available in the container through the environment, `PROJECTS_ROOT`.
4762

48-
|endpoints
49-
|endpointObject
63+
|`endpoints`
64+
|`endpointObject`
5065
|no
5166
|The list of endpoints to use.
5267

53-
|volumeMounts
54-
|volumeMountsObject
68+
|`volumeMounts`
69+
|`volumeMountsObject`
5570
|no
5671
|The list of volumes to mount.
5772

58-
|environment
59-
|envObject
73+
|`environment`
74+
|`envObject`
6075
|no
6176
|The list of environment variables to use.
6277
|===
@@ -66,64 +81,69 @@ Each component in a single devfile must have a unique name and use one of the ob
6681
|===
6782
|Key |Type| Required| Description
6883

69-
|name
70-
|string
84+
|`name`
85+
|`string`
7186
|yes
7287
|The name of your endpoint.
7388

74-
|targetPort
75-
|integer
89+
|`targetPort`
90+
|`integer`
7691
|yes
7792
|The port number that you target.
7893

79-
|exposure
80-
|string
94+
|`exposure`
95+
|`string`
8196
|no
8297
|Use the following attributes to describe how to expose the endpoints on the network: `public`, `internal`, `none`. If not specified, the default attribute is `public`.
8398

84-
|path
85-
|string
99+
|`path`
100+
|`string`
86101
|no
87102
|The path to the endpoint URL.
88103

89-
|protocol
90-
|string
104+
|`protocol`
105+
|`string`
91106
|no
92107
|Use the following attributes to describe the application and transport protocols of the traffic that goes through the endpoint: `http`, `https`, `ws`, `wss`, `tcp`, `udp`. If not specified, the default attribute is `http`.
93108

94-
|secure
95-
|boolean
109+
|`secure`
110+
|`boolean`
96111
|no
97-
|Choose to define the endpoint as secure or not.
112+
|Choose whether to define the endpoint as secure.
98113
|===
99114

100-
.volume object
115+
.volumeMount object
101116
[cols="1,1,1,1"]
102117
|===
103118
|Key |Type| Required| Description
104119

105-
|name
106-
|string
120+
|`name`
121+
|`string`
107122
|yes
108123
|The name of the volume components that you use.
109124

110-
|path
111-
|string
125+
|`path`
126+
|`string`
112127
|no
113128
|The path in the component container where you mount the volume.
129+
|===
114130

115-
|name
116-
|string
131+
.volume object
132+
[cols="1,1,1,1"]
133+
|===
134+
|Key |Type| Required| Description
135+
136+
|`name`
137+
|`string`
117138
|yes
118139
|The name of the volume component.
119140

120-
|size
121-
|string
141+
|`size`
142+
|`string`
122143
|no
123144
|The size of the storage you create.
124145
|===
125146

126-
127147
.Prerequisites
128148

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

0 commit comments

Comments
 (0)