Skip to content

Commit dd1a034

Browse files
authored
Merge pull request #37204 from windsonsea/crdv1
[zh] sync /custom-resource-definition-v1.md
2 parents 018bbfd + cfaecc9 commit dd1a034

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ CustomResourceDefinition 表示应在 API 服务器上公开的资源。其名
4747
<!--
4848
spec describes how the user wants the resources to appear
4949
-->
50-
spec 描述了用户希望资源的呈现方式
50+
spec 描述了用户希望资源的呈现方式
5151

5252
- **status** (<a href="{{< ref "../extend-resources/custom-resource-definition-v1#CustomResourceDefinitionStatus" >}}">CustomResourceDefinitionStatus</a>)
5353
<!--
5454
status indicates the actual state of the CustomResourceDefinition
5555
-->
56-
status 表示 CustomResourceDefinition 的实际状态
56+
status 表示 CustomResourceDefinition 的实际状态
5757

5858
## CustomResourceDefinitionSpec {#CustomResourceDefinitionSpec}
5959

6060
<!--
6161
CustomResourceDefinitionSpec describes how a user wants their resource to appear
6262
-->
63-
CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
63+
CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
6464

6565
<hr>
6666

@@ -92,7 +92,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
9292
9393
kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
9494
-->
95-
**CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称**
95+
**CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称**
9696

9797
- **names.kind** (string),必需
9898

@@ -175,7 +175,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
175175
176176
name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/\<group>/\<version>/...` if `served` is true.
177177
-->
178-
**CustomResourceDefinitionVersion 描述 CRD 的一个版本**
178+
**CustomResourceDefinitionVersion 描述 CRD 的一个版本**
179179

180180
- **versions.name** (string),必需
181181

@@ -190,7 +190,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
190190

191191
- **versions.served** (boolean),必需
192192

193-
served 是用于启用/禁用该版本通过 REST API 提供服务的标志
193+
served 是用于启用/禁用该版本通过 REST API 提供服务的标志
194194

195195
<!--
196196
- **versions.storage** (boolean), required
@@ -235,7 +235,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
235235

236236
- **versions.additionalPrinterColumns.name** (string),必需
237237

238-
name 是便于阅读的列名称
238+
name 是便于阅读的列名称
239239

240240
<!--
241241
- **versions.additionalPrinterColumns.type** (string), required
@@ -254,7 +254,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
254254
description is a human readable description of this column.
255255
-->
256256

257-
description 是该列的可读性描述
257+
description 是该列的可读性描述
258258

259259
- **versions.additionalPrinterColumns.format** (string)
260260

@@ -272,7 +272,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
272272
-->
273273

274274
priority 是一个定义此列相对于其他列的相对重要性的整数。数字越低,优先级越高。
275-
在空间有限的情况下,可以省略的列的优先级应大于 0。
275+
在空间有限的情况下,可以省略的列的优先级应大于 0。
276276

277277
- **versions.deprecated** (boolean)
278278

@@ -313,7 +313,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
313313
openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
314314
-->
315315

316-
openAPIV3Schema 是用于验证和精简的 OpenAPI v3 模式。
316+
openAPIV3Schema 是用于验证和精简的 OpenAPI v3 模式。
317317

318318
- **versions.subresources** (CustomResourceSubresources)
319319

@@ -575,20 +575,20 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式
575575
- **preserveUnknownFields** (boolean)
576576

577577
<!--
578-
preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
578+
preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.
579579
-->
580580

581581
preserveUnknownFields 表示将对象写入持久性存储时应保留 OpenAPI 模式中未规定的对象字段。
582582
apiVersion、kind、元数据(metadata)和元数据中的已知字段始终保留。不推荐使用此字段,而建议在
583583
`spec.versions[*].schema.openAPIV3Schema` 中设置 `x-preserve-unknown-fields` 为 true。
584-
更多详细信息参见: https://kubernetes.io/zh-cn/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields
584+
更多详细信息参见: https://kubernetes.io/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning
585585

586586
## JSONSchemaProps {#JSONSchemaProps}
587587

588588
<!--
589589
JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
590590
-->
591-
JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版 http://json-schema.org/)。
591+
JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版(http://json-schema.org/)。
592592

593593
<hr>
594594

@@ -628,7 +628,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版
628628
<!--
629629
*JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.*
630630
-->
631-
**JSON 表示任何有效的 JSON 值。支持以下类型:bool、int64、float64、string、[]interface{}、map[string]interface{} 和 nil。**
631+
**JSON 表示任何有效的 JSON 值。支持以下类型:bool、int64、float64、string、[]interface{}、map[string]interface{} 和 nil。**
632632

633633
- **definitions** (map[string]<a href="{{< ref "../extend-resources/custom-resource-definition-v1#JSONSchemaProps" >}}">JSONSchemaProps</a>)
634634

@@ -638,7 +638,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版
638638
<!--
639639
*JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.*
640640
-->
641-
**JSONSchemaPropsOrStringArray 表示 JSONSchemaProps 或字符串数组。**
641+
**JSONSchemaPropsOrStringArray 表示 JSONSchemaProps 或字符串数组。**
642642

643643
- **description** (string)
644644

@@ -997,7 +997,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版
997997
<!--
998998
CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
999999
-->
1000-
CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态
1000+
CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态
10011001

10021002
<hr>
10031003

@@ -1018,7 +1018,7 @@ CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态
10181018
kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
10191019
-->
10201020

1021-
**CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称**
1021+
**CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称**
10221022

10231023
- **acceptedNames.kind** (string),必需
10241024

0 commit comments

Comments
 (0)