Skip to content

Commit df56c1c

Browse files
committed
[zh-cn] sync cel.md server-side-apply.md
Signed-off-by: xin.li <[email protected]>
1 parent e1db2cc commit df56c1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/zh-cn/docs/reference/using-api/cel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ CEL 表达式示例:
8989
| `has(self.expired) && self.created + self.ttl < self.expired` | Validate that 'expired' date is after a 'create' date plus a 'ttl' duration |
9090
| `self.health.startsWith('ok')` | Validate a 'health' string field has the prefix 'ok' |
9191
| `self.widgets.exists(w, w.key == 'x' && w.foo < 10)` | Validate that the 'foo' property of a listMap item with a key 'x' is less than 10 |
92-
| `type(self) == string ? self == '99%' : self == 42` | Validate an int-or-string field for both the the int and string cases |
92+
| `type(self) == string ? self == '99%' : self == 42` | Validate an int-or-string field for both the int and string cases |
9393
| `self.metadata.name == 'singleton'` | Validate that an object's name matches a specific value (making it a singleton) |
9494
| `self.set1.all(e, !(e in self.set2))` | Validate that two listSets are disjoint |
9595
| `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 |
@@ -322,7 +322,7 @@ that `object` refers to, because `object` is dynamically typed.
322322

323323
<!--
324324
The `has()` macro in CEL may be used in CEL expressions to check if a field of a
325-
dynamically typed variable is accessable before attempting to access the field's
325+
dynamically typed variable is accessible before attempting to access the field's
326326
value. For example:
327327
-->
328328
在 CEL 中,`has()` 宏可用于检查动态类型变量的字段是否可访问,然后再尝试访问该字段的值。
@@ -503,7 +503,7 @@ CEL 的资源约束特性用于防止 CEL 评估消耗过多的 API 服务器资
503503

504504
<!--
505505
A key element of the resource constraint features is a _cost unit_ that CEL
506-
defines as a way of tracking CPU utilization. Cost units are independant of
506+
defines as a way of tracking CPU utilization. Cost units are independent of
507507
system load and hardware. Cost units are also deterministic; for any given CEL
508508
expression and input data, evaluation of the expression by the CEL interpreter
509509
will always result in the same cost.

content/zh-cn/docs/reference/using-api/server-side-apply.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ min-kubernetes-server-version: 1.16
2525
2626
Server-Side Apply helps users and controllers manage their resources through
2727
declarative configurations. Clients can create and modify their
28-
[objects](/docs/concepts/overview/working-with-objects/kubernetes-objects/)
28+
{{< glossary_tooltip text="objects" term_id="object" >}}
2929
declaratively by sending their fully specified intent.
3030
-->
3131
## 简介 {#introduction}
3232

3333
服务器端应用协助用户、控制器通过声明式配置的方式管理他们的资源。
3434
客户端可以发送完整描述的目标(A fully specified intent),
35-
声明式地创建和修改[对象](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects/)
35+
声明式地创建和修改{{< glossary_tooltip text="对象" term_id="object" >}}
3636

3737
<!--
3838
A fully specified intent is a partial object that only includes the fields and

0 commit comments

Comments
 (0)