Skip to content

Commit

Permalink
Merge pull request #47177 from Arhell/zh-fix
Browse files Browse the repository at this point in the history
[zh] Fix mismatched parentheses in cel.md
  • Loading branch information
k8s-ci-robot authored Jul 17, 2024
2 parents 415c863 + 3209c09 commit 87ee3e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/zh-cn/docs/reference/using-api/cel.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ CEL 表达式示例:
| `self.metadata.name == 'singleton'` | Validate that an object's name matches a specific value (making it a singleton) |
| `self.set1.all(e, !(e in self.set2))` | Validate that two listSets are disjoint |
| `self.names.size() == self.details.size() && self.names.all(n, n in self.details)` | Validate the 'details' map is keyed by the items in the 'names' listSet |
| `self.details.all(key, key.matches('^[a-zA-Z]*$')` | Validate the keys of the 'details' map |
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$')` | Validate the values of the 'details' map |
| `self.details.all(key, key.matches('^[a-zA-Z]*$'))` | Validate the keys of the 'details' map |
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$'))` | Validate the values of the 'details' map |
{{< /table >}}
-->
{{< table caption="CEL 表达式例子和每个表达式的用途" >}}
Expand All @@ -111,8 +111,8 @@ CEL 表达式示例:
| `self.metadata.name == 'singleton'` | 验证某对象的名称与特定的值匹配(使其成为一个特例) |
| `self.set1.all(e, !(e in self.set2))` | 验证两个 listSet 不相交 |
| `self.names.size() == self.details.size() && self.names.all(n, n in self.details)` | 验证 'details' 映射是由 'names' listSet 中的各项键入的 |
| `self.details.all(key, key.matches('^[a-zA-Z]*$')` | 验证 'details' 映射的主键 |
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$')` | 验证 'details' 映射的值 |
| `self.details.all(key, key.matches('^[a-zA-Z]*$'))` | 验证 'details' 映射的主键 |
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$'))` | 验证 'details' 映射的值 |
{{< /table >}}

<!--
Expand Down

0 comments on commit 87ee3e0

Please sign in to comment.