diff --git a/content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/volume-attachment-v1.md b/content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/volume-attachment-v1.md index b2b10225f26..d7047e32343 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/volume-attachment-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/volume-attachment-v1.md @@ -41,10 +41,12 @@ VolumeAttachment 对象未划分命名空间。 - **metadata** (}}">ObjectMeta) @@ -53,15 +55,16 @@ VolumeAttachment 对象未划分命名空间。 - **spec** (}}">VolumeAttachmentSpec),必需 - 期望的挂接/解除挂接卷行为的规约。由 Kubernetes 系统填充。 + spec 表示期望的挂接/解除挂接卷行为的规约。由 Kubernetes 系统填充。 - **status** (}}">VolumeAttachmentStatus) - VolumeAttachment 请求的状态。由完成挂接或解除挂接操作的实体(即外部挂接器)进行填充。 + status 表示 VolumeAttachment 请求的状态。由完成挂接或解除挂接操作的实体(即外部挂接器)进行填充。 ## VolumeAttachmentSpec {#VolumeAttachmentSpec} - **attacher** (string),必需 @@ -84,11 +89,11 @@ VolumeAttachmentSpec 是 VolumeAttachment 请求的规约。 - **nodeName** (string),必需 - 卷应挂接到的节点。 + nodeName 表示卷应挂接到的节点。 - **source** (VolumeAttachmentSource),必需 source 表示应挂接的卷。 - + **VolumeAttachmentSource 表示应挂接的卷。现在只能通过外部挂接器挂接 PersistenVolume, 将来我们可能还允许 Pod 中的内联卷。只能设置一个成员。** - + - **source.inlineVolumeSpec** (}}">PersistentVolumeSpec) - + inlineVolumeSpec 包含挂接由 Pod 的内联 VolumeSource 定义的持久卷时所有必需的信息。 仅为 CSIMigation 功能填充此字段。 它包含从 Pod 的内联 VolumeSource 转换为 PersistentVolumeSpec 的字段。 此字段处于 Beta 阶段,且只有启用 CSIMigration 功能的服务器才能使用此字段。 - + - **source.persistentVolumeName** (string) - 要挂接的持久卷的名称。 + persistentVolumeName 是要挂接的持久卷的名称。 ## VolumeAttachmentStatus {#VolumeAttachmentStatus} VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。 @@ -130,88 +140,96 @@ VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。 - **attached** (boolean),必需 - 表示卷被成功挂接。此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。 + attached 表示卷被成功挂接。此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。 - **attachError** (VolumeError) - 挂接操作期间遇到的最后一个错误,如果有。 + attachError 表示挂接操作期间遇到的最后一个错误,如果有。 此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。 - + **VolumeError 抓取卷操作期间遇到的一个错误。** - + - **attachError.message** (string) - 此字符串详细说明挂接或解除挂接操作期间遇到的错误。 + message 表示挂接或解除挂接操作期间遇到的错误。 此字符串可以放入日志,因此它不应包含敏感信息。 - + - **attachError.time** (Time) 遇到错误的时间。 - + **time 是 time.Time 的包装类,支持正确地序列化为 YAML 和 JSON。 为 time 包提供的许多工厂方法提供了包装类。** - **attachmentMetadata** (map[string]string) - 成功挂接时,此字段将由挂接操作返回的任何信息进行填充, + 成功挂接时,attachmentMetadata 字段将由挂接操作返回的任何信息进行填充, 这些信息必须传递到后续的 WaitForAttach 或 Mount 调用中。 此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。 - **detachError** (VolumeError) - 解除挂接操作期间遇到的最后一个错误,如果有。 + detachError 表示解除挂接操作期间遇到的最后一个错误,如果有。 此字段只能由完成解除挂接操作的实体(例如外部挂接器)进行设置。 - + **VolumeError 抓取卷操作期间遇到的一个错误。** - + - **detachError.message** (string) - 此字符串详细说明挂接或解除挂接操作期间遇到的错误。 + message 表示挂接或解除挂接操作期间遇到的错误。 此字符串可以放入日志,因此它不应包含敏感信息。 - + - **detachError.time** (Time) - 遇到错误的时间。 - + time 表示遇到错误的时间。 + **time 是 time.Time 的包装类,支持正确地序列化为 YAML 和 JSON。 为 time 包提供的许多工厂方法提供了包装类。** @@ -233,7 +251,8 @@ VolumeAttachmentList 是 VolumeAttachment 对象的集合。 Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - **items** ([]}}">VolumeAttachment), required - Items is the list of VolumeAttachments + + items is the list of VolumeAttachments --> - **metadata** (}}">ListMeta) @@ -376,6 +395,10 @@ GET /apis/storage.k8s.io/v1/volumeattachments }}">resourceVersionMatch +- **sendInitialEvents** (**查询参数**): boolean + + }}">sendInitialEvents + - **timeoutSeconds** (**查询参数**): integer }}">timeoutSeconds @@ -798,6 +821,10 @@ DELETE /apis/storage.k8s.io/v1/volumeattachments }}">resourceVersionMatch +- **sendInitialEvents** (**查询参数**): boolean + + }}">sendInitialEvents + - **timeoutSeconds** (**查询参数**): integer }}">timeoutSeconds