Skip to content

Commit 788d6d1

Browse files
committed
add-reame-ident-section
Signed-off-by: yzamir <kobi.zamir@gmail.com>
1 parent 5d5ac70 commit 788d6d1

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

v6/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,4 +543,23 @@ String literals (quoted with ', " or `)
543543
Identifiers (including dots)
544544
Boolean literals (true/false)
545545
Null
546-
```
546+
```
547+
548+
##### Identifiers
549+
550+
Identifiers in TSL can include letters, digits, underscores, dots, slashes, hyphens, and parentheses. They can also include array suffixes with indices, wildcards, or complex identifiers.
551+
552+
Examples:
553+
- `name`
554+
- `pods[0].status`
555+
- `containers[2].ports[80].protocol`
556+
- `nodes[*].status`
557+
- `deployments[my-deployment.spec.containers/nginx].image`
558+
- `services[my.service].status`
559+
- `nodes[my/node].status`
560+
- `pods[my-pod]`
561+
- `func()`
562+
- `obj.func()`
563+
- `arr[0].func()`
564+
- `obj.arr[0].func()`
565+

0 commit comments

Comments
 (0)