Skip to content

Commit 95e99e6

Browse files
authored
Merge pull request #50920 from my-git9/npa-43
[zh-cn]sync common-parameters volume-attachment-v1
2 parents e755bbd + fd58daf commit 95e99e6

File tree

2 files changed

+88
-17
lines changed

2 files changed

+88
-17
lines changed

content/zh-cn/docs/reference/kubernetes-api/common-parameters/common-parameters.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ The continue option should be set when retrieving more results from the server.
5050
<!--
5151
This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
5252
-->
53-
当 watch 字段为 true 时,不支持此字段。客户端可以从服务器返回的最后一个 resourceVersion
54-
值开始监视,就不会错过任何修改。
53+
当 watch 字段为 true 时,不支持此字段。客户端可以从服务器返回的最后一个
54+
resourceVersion 值开始监视,就不会错过任何修改。
5555

5656
<hr>
5757

@@ -63,7 +63,7 @@ When present, indicates that modifications should not be persisted. An invalid o
6363
表示不应该持久化所请求的修改。无效或无法识别的 dryRun 指令将导致错误响应,
6464
并且服务器不再对请求进行进一步处理。有效值为:
6565

66-
- All: 将处理所有的演练阶段
66+
- All将处理所有的演练阶段
6767

6868
<hr>
6969

@@ -126,6 +126,38 @@ The duration in seconds before the object should be deleted. Value must be non-n
126126

127127
<hr>
128128

129+
## ignoreStoreReadErrorWithClusterBreakingPotential {#ignoreStoreReadErrorWithClusterBreakingPotential}
130+
131+
<!--
132+
if set to true, it will trigger an unsafe deletion of the resource in case the normal
133+
deletion flow fails with a corrupt object error.
134+
A resource is considered corrupt if it can not be retrieved from the underlying
135+
storage successfully because of
136+
a) its data can not be transformed e.g. decryption failure, or
137+
b) it fails to decode into an object.
138+
NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks,
139+
and removes the object from the storage.
140+
WARNING: This may potentially break the cluster if the workload associated
141+
with the resource being unsafe-deleted relies on normal deletion flow.
142+
Use only if you REALLY know what you are doing. The default value is false,
143+
and the user must opt in to enable it
144+
-->
145+
如果设置为 true,在正常的删除流程因对象损坏错误而失败时,
146+
将触发资源的不安全删除。当由于以下原因无法从底层存储成功检索资源时,
147+
该资源被视为损坏:
148+
149+
1. 其数据无法转换,例如解密失败;或
150+
2. 它无法解码为一个对象。
151+
152+
注意:不安全删除忽略终结器约束,跳过前提条件检查,并从存储中移除对象。
153+
154+
警告:如果与正在被不安全删除的资源相关联的工作负载依赖于正常删除流程,
155+
这可能会破坏集群。仅在你真正知道自己在做什么的情况下使用。
156+
157+
默认值是 false,用户必须主动选择启用。
158+
159+
<hr>
160+
129161
## labelSelector {#labelSelector}
130162

131163
<!--
@@ -173,7 +205,8 @@ object name and auth scope, such as for teams and projects
173205
If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
174206
-->
175207
如果设置为 'true',那么输出是规范的打印。
176-
默认情况下为 false,除非用户代理声明是浏览器或命令行 HTTP 工具(如 curl 和 wget)。
208+
默认情况下为 false,除非用户代理声明是浏览器或命令行 HTTP 工具
209+
(如 curl 和 wget)。
177210

178211
<hr>
179212

@@ -255,8 +288,8 @@ When `sendInitialEvents` option is set, we require `resourceVersionMatch` option
255288
<!--
256289
Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise.
257290
-->
258-
如果 `resourceVersion=""``resourceVersion="0"`(出于向后兼容性原因),默认为
259-
true,否则默认为 false。
291+
如果 `resourceVersion=""``resourceVersion="0"`(出于向后兼容性原因),
292+
默认为 true,否则默认为 false。
260293

261294
<hr>
262295

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

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ weight: 11
2424
`import "k8s.io/api/storage/v1"`
2525

2626
## VolumeAttachment {#VolumeAttachment}
27+
2728
<!--
2829
VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.
2930
@@ -64,9 +65,11 @@ VolumeAttachment 对象未划分命名空间。
6465
-->
6566
- **status** (<a href="{{< ref "../config-and-storage-resources/volume-attachment-v1#VolumeAttachmentStatus" >}}">VolumeAttachmentStatus</a>)
6667

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

6971
## VolumeAttachmentSpec {#VolumeAttachmentSpec}
72+
7073
<!--
7174
VolumeAttachmentSpec is the specification of a VolumeAttachment request.
7275
-->
@@ -159,6 +162,21 @@ VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。
159162
<a name="VolumeError"></a>
160163
**VolumeError 抓取卷操作期间遇到的一个错误。**
161164

165+
<!--
166+
- **attachError.errorCode** (int32)
167+
168+
errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
169+
170+
This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
171+
-->
172+
173+
- **attachError.errorCode** (int32)
174+
175+
errorCode 是一个 gRPC 错误码,代表在 Attach 或 Detach 操作期间遇到的错误。
176+
177+
这是一个可选的、Alpha 阶段的字段,要求启用了 MutableCSINodeAllocatableCount
178+
特性门控才能设置。
179+
162180
<!--
163181
- **attachError.message** (string)
164182
@@ -204,7 +222,31 @@ VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。
204222
205223
<a name="VolumeError"></a>
206224
*VolumeError captures an error encountered during a volume operation.*
225+
-->
226+
- **detachError** (VolumeError)
227+
228+
detachError 表示解除挂接操作期间遇到的最后一个错误,如果有。
229+
此字段只能由完成解除挂接操作的实体(例如外部挂接器)进行设置。
230+
231+
<a name="VolumeError"></a>
232+
**VolumeError 抓取卷操作期间遇到的一个错误。**
233+
234+
<!--
235+
- **attachError.errorCode** (int32)
236+
237+
errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
238+
239+
This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
240+
-->
207241

242+
- **attachError.errorCode** (int32)
243+
244+
errorCode 是一个 gRPC 错误码,代表在 Attach 或 Detach 操作期间遇到的错误。
245+
246+
这是一个可选的、Alpha 阶段的字段,要求启用了 MutableCSINodeAllocatableCount
247+
特性门控才能设置。
248+
249+
<!--
208250
- **detachError.message** (string)
209251
210252
message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
@@ -215,14 +257,7 @@ VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。
215257
216258
<a name="Time"></a>
217259
*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.*
218-
-->
219-
- **detachError** (VolumeError)
220-
221-
detachError 表示解除挂接操作期间遇到的最后一个错误,如果有。
222-
此字段只能由完成解除挂接操作的实体(例如外部挂接器)进行设置。
223-
224-
<a name="VolumeError"></a>
225-
**VolumeError 抓取卷操作期间遇到的一个错误。**
260+
-->
226261

227262
- **detachError.message** (string)
228263

@@ -238,6 +273,7 @@ VolumeAttachmentStatus 是 VolumeAttachment 请求的状态。
238273
为 time 包提供的许多工厂方法提供了包装类。**
239274

240275
## VolumeAttachmentList {#VolumeAttachmentList}
276+
241277
<!--
242278
VolumeAttachmentList is a collection of VolumeAttachment objects.
243279
-->
@@ -268,13 +304,15 @@ VolumeAttachmentList 是 VolumeAttachment 对象的集合。
268304

269305
<!--
270306
## Operations {#Operations}
271-
### `get` read the specified VolumeAttachment
272-
#### HTTP Request
273307
-->
274308
## 操作 {#Operations}
275309

276310
<hr>
277311

312+
<!--
313+
### `get` read the specified VolumeAttachment
314+
#### HTTP Request
315+
-->
278316
### `get` 读取指定的 VolumeAttachment
279317

280318
#### HTTP 请求

0 commit comments

Comments
 (0)