From cfaecc9ee897d72dd322da7a45cd0f4b070c7f27 Mon Sep 17 00:00:00 2001 From: windsonsea Date: Sat, 8 Oct 2022 09:20:45 +0800 Subject: [PATCH] [zh] sync /custom-resource-definition-v1.md --- .../custom-resource-definition-v1.md | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md b/content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md index f0bba86822..0864d32a23 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md @@ -47,20 +47,20 @@ CustomResourceDefinition 表示应在 API 服务器上公开的资源。其名 - spec 描述了用户希望资源的呈现方式 + spec 描述了用户希望资源的呈现方式。 - **status** (}}">CustomResourceDefinitionStatus) - status 表示 CustomResourceDefinition 的实际状态 + status 表示 CustomResourceDefinition 的实际状态。 ## CustomResourceDefinitionSpec {#CustomResourceDefinitionSpec} -CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 +CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式。
@@ -92,7 +92,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 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. --> - **CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称** + **CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称。** - **names.kind** (string),必需 @@ -175,7 +175,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/\/\/...` if `served` is true. --> - **CustomResourceDefinitionVersion 描述 CRD 的一个版本** + **CustomResourceDefinitionVersion 描述 CRD 的一个版本。** - **versions.name** (string),必需 @@ -190,7 +190,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 - **versions.served** (boolean),必需 - served 是用于启用/禁用该版本通过 REST API 提供服务的标志 + served 是用于启用/禁用该版本通过 REST API 提供服务的标志。 - description 是该列的可读性描述 + description 是该列的可读性描述。 - **versions.additionalPrinterColumns.format** (string) @@ -272,7 +272,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 --> priority 是一个定义此列相对于其他列的相对重要性的整数。数字越低,优先级越高。 - 在空间有限的情况下,可以省略的列的优先级应大于 0。 + 在空间有限的情况下,可以省略的列的优先级应大于 0。 - **versions.deprecated** (boolean) @@ -313,7 +313,7 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. --> - openAPIV3Schema 是用于验证和精简的 OpenAPI v3 模式。 + openAPIV3Schema 是用于验证和精简的 OpenAPI v3 模式。 - **versions.subresources** (CustomResourceSubresources) @@ -575,20 +575,20 @@ CustomResourceDefinitionSpec 描述了用户希望资源的呈现方式 - **preserveUnknownFields** (boolean) preserveUnknownFields 表示将对象写入持久性存储时应保留 OpenAPI 模式中未规定的对象字段。 apiVersion、kind、元数据(metadata)和元数据中的已知字段始终保留。不推荐使用此字段,而建议在 `spec.versions[*].schema.openAPIV3Schema` 中设置 `x-preserve-unknown-fields` 为 true。 - 更多详细信息参见: https://kubernetes.io/zh-cn/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields + 更多详细信息参见: https://kubernetes.io/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning ## JSONSchemaProps {#JSONSchemaProps} -JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版 (http://json-schema.org/)。 +JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版(http://json-schema.org/)。
@@ -628,7 +628,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版 - **JSON 表示任何有效的 JSON 值。支持以下类型:bool、int64、float64、string、[]interface{}、map[string]interface{} 和 nil。** + **JSON 表示任何有效的 JSON 值。支持以下类型:bool、int64、float64、string、[]interface{}、map[string]interface{} 和 nil。** - **definitions** (map[string]}}">JSONSchemaProps) @@ -638,7 +638,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版 - **JSONSchemaPropsOrStringArray 表示 JSONSchemaProps 或字符串数组。** + **JSONSchemaPropsOrStringArray 表示 JSONSchemaProps 或字符串数组。** - **description** (string) @@ -997,7 +997,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版 -CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态 +CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态。
@@ -1018,7 +1018,7 @@ CustomResourceDefinitionStatus 表示 CustomResourceDefinition 的状态 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. --> - **CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称** + **CustomResourceDefinitionNames 表示提供此 CustomResourceDefinition 资源的名称。** - **acceptedNames.kind** (string),必需