Skip to content

Commit 9d48049

Browse files
committed
[zh] resync page volume-attachment-v1
1 parent 6b3ef72 commit 9d48049

File tree

1 file changed

+65
-38
lines changed

1 file changed

+65
-38
lines changed

content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/volume-attachment-v1.md

Lines changed: 65 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ VolumeAttachment 对象未划分命名空间。
4141

4242
<!--
4343
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
44+
4445
Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
4546
4647
- **spec** (<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachmentSpec" >}}">VolumeAttachmentSpec</a>), required
47-
Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
48+
49+
spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
4850
-->
4951
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
5052

@@ -53,15 +55,16 @@ VolumeAttachment 对象未划分命名空间。
5355

5456
- **spec** (<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachmentSpec" >}}">VolumeAttachmentSpec</a>),必需
5557

56-
期望的挂接/解除挂接卷行为的规约。由 Kubernetes 系统填充。
58+
spec 表示期望的挂接/解除挂接卷行为的规约。由 Kubernetes 系统填充。
5759

5860
<!--
5961
- **status** (<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachmentStatus" >}}">VolumeAttachmentStatus</a>)
60-
Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.
62+
63+
status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.
6164
-->
6265
- **status** (<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachmentStatus" >}}">VolumeAttachmentStatus</a>)
6366

64-
VolumeAttachment 请求的状态。由完成挂接或解除挂接操作的实体(即外部挂接器)进行填充。
67+
status 表示 VolumeAttachment 请求的状态。由完成挂接或解除挂接操作的实体(即外部挂接器)进行填充。
6568

6669
## VolumeAttachmentSpec {#VolumeAttachmentSpec}
6770
<!--
@@ -73,22 +76,24 @@ VolumeAttachmentSpec 是 VolumeAttachment 请求的规约。
7376

7477
<!--
7578
- **attacher** (string), required
76-
Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
79+
80+
attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
7781
7882
- **nodeName** (string), required
79-
The node that the volume should be attached to.
83+
84+
nodeName represents the node that the volume should be attached to.
8085
-->
8186
- **attacher** (string),必需
8287

8388
attacher 表示必须处理此请求的卷驱动的名称。这是由 GetPluginName() 返回的名称。
8489

8590
- **nodeName** (string),必需
8691

87-
卷应挂接到的节点
92+
nodeName 表示卷应挂接到的节点
8893

8994
<!--
9095
- **source** (VolumeAttachmentSource), required
91-
Source represents the volume that should be attached.
96+
source represents the volume that should be attached.
9297
9398
<a name="VolumeAttachmentSource"></a>
9499
*VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.*
@@ -97,121 +102,134 @@ VolumeAttachmentSpec 是 VolumeAttachment 请求的规约。
97102
inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
98103
99104
- **source.persistentVolumeName** (string)
100-
Name of the persistent volume to attach.
105+
106+
persistentVolumeName represents the name of the persistent volume to attach.
101107
-->
102108
- **source** (VolumeAttachmentSource),必需
103109

104110
source 表示应挂接的卷。
105-
111+
106112
<a name="VolumeAttachmentSource"></a>
107113
**VolumeAttachmentSource 表示应挂接的卷。现在只能通过外部挂接器挂接 PersistenVolume,
108114
将来我们可能还允许 Pod 中的内联卷。只能设置一个成员。**
109-
115+
110116
- **source.inlineVolumeSpec** (<a href="{{< ref "../config-and-storage-resources/persistent-volume-v1#PersistentVolumeSpec" >}}">PersistentVolumeSpec</a>)
111-
117+
112118
inlineVolumeSpec 包含挂接由 Pod 的内联 VolumeSource 定义的持久卷时所有必需的信息。
113119
仅为 CSIMigation 功能填充此字段。
114120
它包含从 Pod 的内联 VolumeSource 转换为 PersistentVolumeSpec 的字段。
115121
此字段处于 Beta 阶段,且只有启用 CSIMigration 功能的服务器才能使用此字段。
116-
122+
117123
- **source.persistentVolumeName** (string)
118124

119-
要挂接的持久卷的名称
125+
persistentVolumeName 是要挂接的持久卷的名称
120126

121127
## VolumeAttachmentStatus {#VolumeAttachmentStatus}
122128
<!--
123129
VolumeAttachmentStatus is the status of a VolumeAttachment request.
130+
131+
<hr>
132+
124133
- **attached** (boolean), required
125-
Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
134+
135+
attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
126136
-->
127137
VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。
128138

129139
<hr>
130140

131141
- **attached** (boolean),必需
132142

133-
表示卷被成功挂接。此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。
143+
attached 表示卷被成功挂接。此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。
134144

135145
<!--
136146
- **attachError** (VolumeError)
137-
The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
147+
148+
attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
138149
139150
<a name="VolumeError"></a>
140151
*VolumeError captures an error encountered during a volume operation.*
141152
142153
- **attachError.message** (string)
143-
String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
154+
155+
message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
144156
145157
- **attachError.time** (Time)
146-
Time the error was encountered.
158+
159+
time represents the time the error was encountered.
147160
148161
<a name="Time"></a>
149162
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
150163
-->
151164
- **attachError** (VolumeError)
152165

153-
挂接操作期间遇到的最后一个错误,如果有。
166+
attachError 表示挂接操作期间遇到的最后一个错误,如果有。
154167
此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。
155-
168+
156169
<a name="VolumeError"></a>
157170
**VolumeError 抓取卷操作期间遇到的一个错误。**
158-
171+
159172
- **attachError.message** (string)
160173

161-
此字符串详细说明挂接或解除挂接操作期间遇到的错误
174+
message 表示挂接或解除挂接操作期间遇到的错误
162175
此字符串可以放入日志,因此它不应包含敏感信息。
163-
176+
164177
- **attachError.time** (Time)
165178

166179
遇到错误的时间。
167-
180+
168181
<a name="Time"></a>
169182
**time 是 time.Time 的包装类,支持正确地序列化为 YAML 和 JSON。
170183
为 time 包提供的许多工厂方法提供了包装类。**
171184

172185
<!--
173186
- **attachmentMetadata** (map[string]string)
174-
Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
187+
188+
attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
189+
175190
-->
176191
- **attachmentMetadata** (map[string]string)
177192

178-
成功挂接时,此字段将由挂接操作返回的任何信息进行填充
193+
成功挂接时,attachmentMetadata 字段将由挂接操作返回的任何信息进行填充
179194
这些信息必须传递到后续的 WaitForAttach 或 Mount 调用中。
180195
此字段只能由完成挂接操作的实体(例如外部挂接器)进行设置。
181196

182197
<!--
183198
- **detachError** (VolumeError)
184-
The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.
199+
200+
detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.
185201
186202
<a name="VolumeError"></a>
187203
*VolumeError captures an error encountered during a volume operation.*
188204
189205
- **detachError.message** (string)
190-
String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
206+
207+
message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
191208
192209
- **detachError.time** (Time)
193-
Time the error was encountered.
210+
211+
time represents the time the error was encountered.
194212
195213
<a name="Time"></a>
196214
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
197215
-->
198216
- **detachError** (VolumeError)
199217

200-
解除挂接操作期间遇到的最后一个错误,如果有。
218+
detachError 表示解除挂接操作期间遇到的最后一个错误,如果有。
201219
此字段只能由完成解除挂接操作的实体(例如外部挂接器)进行设置。
202-
220+
203221
<a name="VolumeError"></a>
204222
**VolumeError 抓取卷操作期间遇到的一个错误。**
205-
223+
206224
- **detachError.message** (string)
207225

208-
此字符串详细说明挂接或解除挂接操作期间遇到的错误
226+
message 表示挂接或解除挂接操作期间遇到的错误
209227
此字符串可以放入日志,因此它不应包含敏感信息。
210-
228+
211229
- **detachError.time** (Time)
212230

213-
遇到错误的时间
214-
231+
time 表示遇到错误的时间
232+
215233
<a name="Time"></a>
216234
**time 是 time.Time 的包装类,支持正确地序列化为 YAML 和 JSON。
217235
为 time 包提供的许多工厂方法提供了包装类。**
@@ -233,7 +251,8 @@ VolumeAttachmentList 是 VolumeAttachment 对象的集合。
233251
Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
234252
235253
- **items** ([]<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachment" >}}">VolumeAttachment</a>), required
236-
Items is the list of VolumeAttachments
254+
255+
items is the list of VolumeAttachments
237256
-->
238257
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
239258

@@ -376,6 +395,10 @@ GET /apis/storage.k8s.io/v1/volumeattachments
376395

377396
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
378397

398+
- **sendInitialEvents** (**查询参数**): boolean
399+
400+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
401+
379402
- **timeoutSeconds** (**查询参数**): integer
380403

381404
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@@ -798,6 +821,10 @@ DELETE /apis/storage.k8s.io/v1/volumeattachments
798821

799822
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
800823

824+
- **sendInitialEvents** (**查询参数**): boolean
825+
826+
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
827+
801828
- **timeoutSeconds** (**查询参数**): integer
802829

803830
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>

0 commit comments

Comments
 (0)