You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The restriction is added to allow easy translation to K8 resource names, and also to have consistent rules for both name and id fields
4
+
The restriction is added to allow easy translation to K8s resource names, and also to have consistent rules for both name and id fields
5
5
The validation will be done as part of schema validation, the rule will be introduced as a regex in schema definition, any objection of the rule in devfile will result in a failure.
6
6
7
7
- limit to lowercase characters i.e.; no uppercase allowed
@@ -14,7 +14,7 @@ The validation will be done as part of schema validation, the rule will be intro
14
14
15
15
### Endpoints:
16
16
- all the endpoint names are unique across components
17
-
Since network is shared in the same pod, endpoint ports should be unique across components, two components cannot have the same target port but two endpoints in a single component can have the same target port. only exception: container component with `dedicatedpod=true`
17
+
Since network is shared in the same pod, endpoint ports should be unique across components, two components cannot have the same target port but two endpoints in a single component can have the same target port. Only exception: container component with `dedicatedpod=true`
18
18
19
19
### Commands:
20
20
1. Id must be unique
@@ -25,18 +25,22 @@ Since network is shared in the same pod, endpoint ports should be unique across
25
25
- Subcommands should be valid as well
26
26
3. exec command should:
27
27
map to a valid container component
28
-
4. vscodeLaunch & vscodeTask: uri needs to be in valid uri form
29
-
5.`{build, run, test, debug}`, each kind of group can only have one default command associated with it. If there are multiple commands of the same kind without a default, a warning will be displayed.
30
-
28
+
4. vscodeLaunch & vscodeTask: URI needs to be in valid URI format
29
+
5.`{build, run, test, debug}`, each kind of group can only have one default command associated with it. If there are multiple commands of the same kind without a default, a warning will be displayed.
31
30
32
31
### Components:
33
-
1. name must be unique
34
-
2. Container component:
35
-
the container components must reference a valid volume component if it uses volume mounts, and the volume components are unique
36
-
PROJECT_SOURCE or PROJECTS_ROOT are reserved Env, cannot be defined again in Env
37
-
3. Plugin Component:
38
-
Commands and components share the same validation rules as listed above. Validation occurs after overriding and merging, in flattened devfile
39
-
1. Kubernetes & Openshift component: uri needs to be in valid uri format
32
+
Common rules for all components types:
33
+
- Name must be unique
34
+
35
+
#### Container component
36
+
1. the container components must reference a valid volume component if it uses volume mounts, and the volume components are unique
37
+
2.`PROJECT_SOURCE` or `PROJECTS_ROOT` are reserved Env, cannot be defined again in Env
38
+
39
+
#### Plugin Component
40
+
- Commands in plugins components share the same commands validation rules as listed above. Validation occurs after overriding and merging, in flattened devfile
41
+
42
+
#### Kubernetes & Openshift component
43
+
- URI needs to be in valid URI format
40
44
41
45
42
46
### Events:
@@ -47,8 +51,8 @@ Commands and components share the same validation rules as listed above. Validat
47
51
48
52
49
53
### Parent:
50
-
Share the same validation rules as listed above. Validation occurs after overriding and merging, in flattened devfile
54
+
-Share the same validation rules as listed above. Validation occurs after overriding and merging, in flattened devfile
51
55
52
56
53
57
### starterProjects:
54
-
Starter project entries cannot have more than one remotes defined
58
+
-Starter project entries cannot have more than one remotes defined
0 commit comments