Skip to content

Commit 9db2f35

Browse files
yangcao77elsony
authored andcommitted
suggested changes
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent 3fe5096 commit 9db2f35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/validation/validation-rule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The validation will be done as part of schema validation, the rule will be intro
66

77
- limit to lowercase characters i.e.; no uppercase allowed
88
- limit within 63 characters, except for endpoint’s name which is limited within 15 characters
9-
- no special characters allowed, only dash(-)
9+
- no special characters allowed except dash(-)
1010
- start with an alphanumeric character
1111
- end with an alphanumeric character
1212
- must not be with all numbers (not included in schema validation, will have extra validation function)
@@ -17,7 +17,7 @@ The validation will be done as part of schema validation, the rule will be intro
1717
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`
1818

1919
### Commands:
20-
1. Id must be unique
20+
1. id must be unique
2121
2. composite command:
2222
- Should not reference itself via a subcommand
2323
- Should not indirectly reference itself via a subcommand which is a composite command
@@ -34,7 +34,7 @@ Common rules for all components types:
3434

3535
#### Container component
3636
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
37+
2. `PROJECT_SOURCE` or `PROJECTS_ROOT` are reserved env, cannot be defined again in env
3838

3939
#### Plugin Component
4040
- Commands in plugins components share the same commands validation rules as listed above. Validation occurs after overriding and merging, in flattened devfile

0 commit comments

Comments
 (0)