Skip to content

Commit 812c42b

Browse files
authored
Merge pull request #34368 from windsonsea/docsite3
[zh] added empty lines after bullets: storage-class-v1.md
2 parents 4c88434 + ac1dc0d commit 812c42b

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
3636
<hr>
3737

3838
- **apiVersion**: storage.k8s.io/v1
39+
3940
- **kind**: StorageClass
4041

4142
<!--
@@ -49,13 +50,16 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
4950
AllowVolumeExpansion shows whether the storage class allow volume expand
5051
-->
5152
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
53+
5254
标准的对象元数据。更多信息:
5355
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
5456

5557
- **provisioner** (string),必需
58+
5659
provisioner 表示制备器的类别。
5760

5861
- **allowVolumeExpansion** (boolean)
62+
5963
allowVolumeExpansion 显示存储类是否允许卷扩充。
6064

6165
<!--
@@ -68,6 +72,7 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
6872
*A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.*
6973
-->
7074
- **allowedTopologies** ([]TopologySelectorTerm)
75+
7176
**原子性:将在合并期间被替换**
7277

7378
限制可以动态制备卷的节点拓扑。每个卷插件定义其自己支持的拓扑规约。
@@ -91,15 +96,18 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
9196
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
9297
-->
9398
- **allowedTopologies.matchLabelExpressions** ([]TopologySelectorLabelRequirement)
99+
94100
按标签设置的拓扑选择器要求的列表。
95101

96102
<a name="TopologySelectorLabelRequirement"></a>
97103
**拓扑选择器要求是与给定标签匹配的一个选择器。此功能为 Alpha 特性,将来可能会变更。**
98104

99105
- **allowedTopologies.matchLabelExpressions.key** (string),必需
106+
100107
选择器所针对的标签键。
101108

102109
- **allowedTopologies.matchLabelExpressions.values** ([]string),必需
110+
103111
字符串数组。一个值必须与要选择的标签匹配。values 中的每个条目按逻辑或的关系来计算。
104112

105113
<!--
@@ -110,10 +118,12 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
110118
Parameters holds the parameters for the provisioner that should create volumes of this storage class.
111119
-->
112120
- **mountOptions** ([]string)
121+
113122
此存储类动态制备的 PersistentVolume 用这些 mountOptions(例如 ["ro", "soft"])进行创建。
114123
系统对选项作检查——如果有一个选项无效,则这些 PV 的挂载将失败。
115124

116125
- **parameters** (map[string]string)
126+
117127
parameters 包含应创建此存储类卷的制备器的参数。
118128

119129
<!--
@@ -124,9 +134,11 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
124134
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
125135
-->
126136
- **reclaimPolicy** (string)
137+
127138
此存储类动态制备的 PersistentVolume 用这个 reclaimPolicy 进行创建。默认为 Delete。
128139

129140
- **volumeBindingMode** (string)
141+
130142
volumeBindingMode 指示应该如何制备和绑定 PersistentVolumeClaim。
131143
未设置时,将使用 VolumeBindingImmediate。
132144
只有启用 VolumeScheduling 功能特性的服务器才能使用此字段。
@@ -140,6 +152,7 @@ StorageClassList 是存储类的集合。
140152
<hr>
141153

142154
- **apiVersion**: storage.k8s.io/v1
155+
143156
- **kind**: StorageClassList
144157

145158
<!--
@@ -150,10 +163,12 @@ StorageClassList 是存储类的集合。
150163
Items is the list of StorageClasses
151164
-->
152165
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
166+
153167
标准的列表元数据。更多信息:
154168
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
155169

156170
- **items** ([]<a href="{{< ref "../config-and-storage-resources/storage-class-v1#StorageClass" >}}">StorageClass</a>),必需
171+
157172
items 是 StorageClass 的列表。
158173

159174
<!--
@@ -177,9 +192,11 @@ GET /apis/storage.k8s.io/v1/storageclasses/{name}
177192
-->
178193
#### 参数
179194
- **name** (**路径参数**): string,必需
195+
180196
StorageClass 的名称
181197

182198
- **pretty** (**查询参数**): string
199+
183200
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
184201

185202
<!--
@@ -213,33 +230,43 @@ GET /apis/storage.k8s.io/v1/storageclasses
213230
-->
214231
#### 参数
215232
- **allowWatchBookmarks** (**查询参数**): boolean
233+
216234
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
217235

218236
- **continue** (**查询参数**): string
237+
219238
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
220239

221240
- **fieldSelector** (**查询参数**): string
241+
222242
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
223243

224244
- **labelSelector** (**查询参数**): string
245+
225246
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
226247

227248
- **limit** (**查询参数**): integer
249+
228250
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
229251

230252
- **pretty** (**查询参数**): string
253+
231254
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
232255

233256
- **resourceVersion** (**查询参数**): string
257+
234258
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
235259

236260
- **resourceVersionMatch** (**查询参数**): string
261+
237262
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
238263

239264
- **timeoutSeconds** (**查询参数**): integer
265+
240266
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
241267

242268
- **watch** (**查询参数**): boolean
269+
243270
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
244271

245272
<!--
@@ -268,16 +295,21 @@ POST /apis/storage.k8s.io/v1/storageclasses
268295
-->
269296
#### 参数
270297
- **body**: <a href="{{< ref "../config-and-storage-resources/storage-class-v1#StorageClass" >}}">StorageClass</a>,必需
298+
271299
- **dryRun** (**查询参数**): string
300+
272301
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
273302

274303
- **fieldManager** (**查询参数**): string
304+
275305
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
276306

277307
- **fieldValidation** (**查询参数**): string
308+
278309
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
279310

280311
- **pretty** (**查询参数**): string
312+
281313
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
282314

283315
<!--
@@ -312,19 +344,25 @@ PUT /apis/storage.k8s.io/v1/storageclasses/{name}
312344
-->
313345
#### 参数
314346
- **name** (**路径参数**): string,必需
347+
315348
StorageClass 的名称
316349

317350
- **body**: <a href="{{< ref "../config-and-storage-resources/storage-class-v1#StorageClass" >}}">StorageClass</a>,必需
351+
318352
- **dryRun** (**查询参数**): string
353+
319354
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
320355

321356
- **fieldManager** (**查询参数**): string
357+
322358
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
323359

324360
- **fieldValidation** (**查询参数**): string
361+
325362
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
326363

327364
- **pretty** (**查询参数**): string
365+
328366
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
329367

330368
<!--
@@ -358,22 +396,29 @@ PATCH /apis/storage.k8s.io/v1/storageclasses/{name}
358396
-->
359397
#### 参数
360398
- **name** (**路径参数**): string,必需
399+
361400
StorageClass 的名称
362401

363402
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
403+
364404
- **dryRun** (**查询参数**): string
405+
365406
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
366407

367408
- **fieldManager** (**查询参数**): string
409+
368410
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
369411

370412
- **fieldValidation** (**查询参数**): string
413+
371414
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
372415

373416
- **force** (**查询参数**): boolean
417+
374418
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
375419

376420
- **pretty** (**查询参数**): string
421+
377422
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
378423

379424
<!--
@@ -406,19 +451,25 @@ DELETE /apis/storage.k8s.io/v1/storageclasses/{name}
406451
-->
407452
#### 参数
408453
- **name** (**路径参数**): string,必需
454+
409455
StorageClass 的名称
410456

411457
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
458+
412459
- **dryRun** (**查询参数**): string
460+
413461
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
414462

415463
- **gracePeriodSeconds** (**查询参数**): integer
464+
416465
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
417466

418467
- **pretty** (**查询参数**): string
468+
419469
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
420470

421471
- **propagationPolicy** (**查询参数**): string
472+
422473
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
423474

424475
<!--
@@ -456,37 +507,49 @@ DELETE /apis/storage.k8s.io/v1/storageclasses
456507
-->
457508
#### 参数
458509
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
510+
459511
- **continue** (**查询参数**): string
512+
460513
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
461514

462515
- **dryRun** (**查询参数**): string
516+
463517
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
464518

465519
- **fieldSelector** (**查询参数**): string
520+
466521
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
467522

468523
- **gracePeriodSeconds** (**查询参数**): integer
524+
469525
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
470526

471527
- **labelSelector** (**查询参数**): string
528+
472529
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
473530

474531
- **limit** (**查询参数**): integer
532+
475533
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
476534

477535
- **pretty** (**查询参数**): string
536+
478537
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
479538

480539
- **propagationPolicy** (**查询参数**): string
540+
481541
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
482542

483543
- **resourceVersion** (**查询参数**): string
544+
484545
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
485546

486547
- **resourceVersionMatch** (**查询参数**): string
548+
487549
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
488550

489551
- **timeoutSeconds** (**查询参数**): integer
552+
490553
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
491554

492555
<!--

0 commit comments

Comments
 (0)