Skip to content

Commit 1f898a4

Browse files
committed
[zh] Sync controller-revision-v1, pod-template-v1, replication-controller-v1
1 parent dd303e3 commit 1f898a4

File tree

3 files changed

+75
-50
lines changed

3 files changed

+75
-50
lines changed

content/zh-cn/docs/reference/kubernetes-api/workload-resources/controller-revision-v1.md

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ description: "ControllerRevision 实现了状态数据的不可变快照。"
88
title: "ControllerRevision"
99
weight: 8
1010
---
11-
1211
<!--
1312
api_metadata:
1413
apiVersion: "apps/v1"
@@ -38,8 +37,6 @@ The API Server will fail validation of all requests that attempt to mutate the D
3837
ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback,
3938
this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability.
4039
It is primarily for internal use by controllers.
41-
42-
<hr>
4340
-->
4441
ControllerRevision 实现了状态数据的不可变快照。
4542
客户端负责序列化和反序列化对象,包含对象内部状态。
@@ -52,14 +49,8 @@ API 服务器将无法成功验证所有尝试改变 data 字段的请求。
5249

5350
<hr>
5451

55-
<!--
56-
- **apiVersion**: apps/v1
57-
-->
5852
- **apiVersion**: apps/v1
5953

60-
<!--
61-
- **kind**: ControllerRevision
62-
-->
6354
- **kind**: ControllerRevision
6455

6556
<!--
@@ -161,7 +152,7 @@ API 服务器将无法成功验证所有尝试改变 data 字段的请求。
161152
-->
162153
163154
那么会发生什么?
164-
解码首先使用 jsonyaml 将序列化数据解组到你的外部 MyAPIObject 中。
155+
解码首先使用 JSONYAML 将序列化数据解组到你的外部 MyAPIObject 中。
165156
这会导致原始 JSON 被存储下来,但不会被解包。
166157
下一步是复制(使用 pkg/conversion)到内部结构中。
167158
runtime 包的 DefaultScheme 安装了转换函数,它将解析存储在 RawExtension 中的 JSON,
@@ -181,14 +172,8 @@ ControllerRevisionList 是一个包含 ControllerRevision 对象列表的资源
181172
182173
<hr>
183174
184-
<!--
185-
- **apiVersion**: apps/v1
186-
-->
187175
- **apiVersion**: apps/v1
188176
189-
<!--
190-
- **kind**: ControllerRevisionList
191-
-->
192177
- **kind**: ControllerRevisionList
193178
194179
<!--
@@ -208,12 +193,10 @@ ControllerRevisionList 是一个包含 ControllerRevision 对象列表的资源
208193
-->
209194
- **items** ([]<a href="{{< ref "../workload-resources/controller-revision-v1#ControllerRevision" >}}">ControllerRevision</a>),必需
210195
211-
items 是 ControllerRevisions 的列表
196+
items 是 ControllerRevisions 的列表
212197
213198
<!--
214199
## Operations {#Operations}
215-
216-
<hr>
217200
-->
218201
## 操作 {#Operations}
219202
@@ -245,7 +228,7 @@ GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
245228
-->
246229
- **name** (**路径参数**):string,必需
247230
248-
ControllerRevision 的名称
231+
ControllerRevision 的名称
249232
250233
<!--
251234
- **namespace** (*in path*): string, required
@@ -281,7 +264,7 @@ GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
281264
<!--
282265
### `list` list or watch objects of kind ControllerRevision
283266
-->
284-
### `list` 列出或监视 ControllerRevision 类别的对象
267+
### `list` 列举或监视 ControllerRevision 类别的对象
285268
286269
<!--
287270
#### HTTP Request
@@ -347,7 +330,7 @@ GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions
347330
348331
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
349332
-->
350-
- **limit** (**查询参数**)): integer
333+
- **limit** (**查询参数**): integer
351334
352335
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
353336
@@ -421,7 +404,7 @@ GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions
421404
<!--
422405
### `list` list or watch objects of kind ControllerRevision
423406
-->
424-
### `list` 列出或监视 ControllerRevision 类别的对象
407+
### `list` 列举或监视 ControllerRevision 类别的对象
425408
426409
<!--
427410
#### HTTP Request
@@ -665,7 +648,7 @@ PUT /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
665648
-->
666649
- **name** (**路径参数**):string,必需
667650
668-
ControllerRevision 的名称
651+
ControllerRevision 的名称
669652
670653
<!--
671654
- **namespace** (*in path*): string, required
@@ -717,7 +700,6 @@ PUT /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
717700
718701
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
719702
720-
721703
<!--
722704
#### Response
723705
@@ -761,7 +743,7 @@ PATCH /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
761743
-->
762744
- **name** (**路径参数**):string,必需
763745
764-
ControllerRevision 的名称
746+
ControllerRevision 的名称
765747
766748
<!--
767749
- **namespace** (*in path*): string, required
@@ -865,7 +847,7 @@ DELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
865847
-->
866848
- **name** (**路径参数**):string,必需
867849
868-
ControllerRevision 的名称
850+
ControllerRevision 的名称
869851
870852
<!--
871853
- **namespace** (*in path*): string, required
@@ -899,6 +881,15 @@ DELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}
899881
900882
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
901883
884+
<!--
885+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
886+
887+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
888+
-->
889+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (**查询参数**): boolean
890+
891+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
892+
902893
<!--
903894
- **pretty** (*in query*): string
904895
@@ -1003,6 +994,15 @@ DELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions
1003994
1004995
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
1005996
997+
<!--
998+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
999+
1000+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1001+
-->
1002+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (**查询参数**): boolean
1003+
1004+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1005+
10061006
<!--
10071007
- **labelSelector** (*in query*): string
10081008
@@ -1087,4 +1087,3 @@ DELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions
10871087
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
10881088
10891089
401: Unauthorized
1090-

content/zh-cn/docs/reference/kubernetes-api/workload-resources/pod-template-v1.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ description: "PodTemplate 描述一种模板,用来为预定义的 Pod 生成
88
title: "PodTemplate"
99
weight: 3
1010
---
11-
1211
<!--
1312
api_metadata:
1413
apiVersion: "v1"
@@ -142,7 +141,7 @@ GET /api/v1/namespaces/{namespace}/podtemplates/{name}
142141
-->
143142
- **name****路径参数**):string,必需
144143

145-
PodTemplate 的名称
144+
PodTemplate 的名称
146145

147146
<!--
148147
- **namespace** (*in path*): string, required
@@ -474,7 +473,7 @@ PUT /api/v1/namespaces/{namespace}/podtemplates/{name}
474473
-->
475474
- **name****路径参数**):string,必需
476475

477-
PodTemplate 的名称
476+
PodTemplate 的名称
478477

479478
<!--
480479
- **namespace** (*in path*): string, required
@@ -550,7 +549,7 @@ PATCH /api/v1/namespaces/{namespace}/podtemplates/{name}
550549
-->
551550
- **name****路径参数**):string,必需
552551

553-
PodTemplate 的名称
552+
PodTemplate 的名称
554553

555554
<!--
556555
- **namespace** (*in path*): string, required
@@ -633,7 +632,7 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
633632
-->
634633
- **name****路径参数**):string,必需
635634

636-
PodTemplate 的名称
635+
PodTemplate 的名称
637636

638637
<!--
639638
- **namespace** (*in path*): string, required
@@ -642,7 +641,6 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
642641

643642
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
644643

645-
646644
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
647645

648646
<!--
@@ -659,6 +657,15 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
659657

660658
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
661659

660+
<!--
661+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
662+
663+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
664+
-->
665+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (**查询参数**): boolean
666+
667+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
668+
662669
<!--
663670
- **pretty** (*in query*): string
664671
-->
@@ -737,6 +744,15 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates
737744

738745
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
739746

747+
<!--
748+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
749+
750+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
751+
-->
752+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (**查询参数**): boolean
753+
754+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
755+
740756
<!--
741757
- **labelSelector** (*in query*): string
742758
-->
@@ -803,4 +819,3 @@ DELETE /api/v1/namespaces/{namespace}/podtemplates
803819
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
804820

805821
401: Unauthorized
806-

0 commit comments

Comments
 (0)