@@ -10,10 +10,12 @@ package: apiserver.config.k8s.io/v1
10
10
auto_generated: true
11
11
-->
12
12
13
+ <p >
13
14
<!--
14
- <p> Package v1 is the v1 version of the API.</p>
15
+ Package v1 is the v1 version of the API.
15
16
-->
16
- <p >v1 包中包含 API 的 v1 版本。</p >
17
+ v1 包中包含 API 的 v1 版本。
18
+ </p >
17
19
18
20
<!--
19
21
## Resource Types
@@ -26,10 +28,12 @@ auto_generated: true
26
28
27
29
## ` AdmissionConfiguration ` {#apiserver-config-k8s-io-v1-AdmissionConfiguration}
28
30
31
+ <p >
29
32
<!--
30
- <p> AdmissionConfiguration provides versioned configuration for admission controllers.</p>
33
+ AdmissionConfiguration provides versioned configuration for admission controllers.
31
34
-->
32
- <p >AdmissionConfiguration 为准入控制器提供版本化的配置。</p >
35
+ AdmissionConfiguration 为准入控制器提供版本化的配置。
36
+ </p >
33
37
34
38
<table class =" table " >
35
39
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -42,10 +46,12 @@ auto_generated: true
42
46
<a href =" #apiserver-config-k8s-io-v1-AdmissionPluginConfiguration " ><code >[ ] AdmissionPluginConfiguration</code ></a >
43
47
</td >
44
48
<td >
49
+ <p >
45
50
<!--
46
- <p>Plugins allows specifying a configuration per admission control plugin.</p>
47
- -->
48
- <p ><code >plugins</code > 字段允许为每个准入控制插件设置配置选项。</p >
51
+ Plugins allows specifying a configuration per admission control plugin.
52
+ -->
53
+ <code >plugins</code > 字段允许为每个准入控制插件设置配置选项。
54
+ </p >
49
55
</td >
50
56
</tr >
51
57
@@ -57,7 +63,7 @@ auto_generated: true
57
63
<table class =" table " >
58
64
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
59
65
<tbody >
60
-
66
+
61
67
<tr ><td ><code >apiVersion</code ><br />string</td ><td ><code >apiserver.config.k8s.io/v1</code ></td ></tr >
62
68
<tr ><td ><code >kind</code ><br />string</td ><td ><code >AuthorizationConfiguration</code ></td ></tr >
63
69
@@ -73,7 +79,7 @@ This is similar to the --authorization-modes kube-apiserver flag
73
79
Must be at least one.
74
80
-->
75
81
<code >authorizers</code > 是用于针对请求进行鉴权的鉴权组件的有序列表。
76
- 这类似于 ` --authorization-modes ` kube-apiserver 标志。
82
+ 这类似于 < code > --authorization-modes</ code > kube-apiserver 标志。
77
83
必须至少包含一个元素。
78
84
</p >
79
85
</td >
@@ -156,7 +162,7 @@ resources:
156
162
<!--
157
163
resources is a list containing resources, and their corresponding encryption providers.
158
164
-->
159
- resources 是一个包含资源及其对应加密驱动的列表。
165
+ < code > resources</ code > 是一个包含资源及其对应加密驱动的列表。
160
166
</p >
161
167
</td >
162
168
</tr >
@@ -192,10 +198,10 @@ AESConfiguration 包含针对 AES 转换器的 API 配置。
192
198
keys is a list of keys to be used for creating the AES transformer.
193
199
Each key has to be 32 bytes long for AES-CBC and 16, 24 or 32 bytes for AES-GCM.
194
200
-->
195
- keys 是一个用于创建 AES 转换器的密钥列表。
201
+ < code > keys</ code > 是一个用于创建 AES 转换器的密钥列表。
196
202
对于 AES-CBC,每个密钥的长度必须是 32 字节;
197
203
对于 AES-GCM,每个密钥的长度可以是 16、24 或 32 字节。
198
- </p >
204
+ </p >
199
205
</td >
200
206
</tr >
201
207
</tbody >
@@ -219,48 +225,54 @@ AESConfiguration 包含针对 AES 转换器的 API 配置。
219
225
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
220
226
<tbody >
221
227
222
- <tr ><td ><code >name</code > <B >[必需]</B ><br />
228
+ <tr ><td ><code >name</code > <B ><!-- [Required] --> [必需]</B ><br />
223
229
<code >string</code >
224
230
</td >
225
231
<td >
232
+ <p >
226
233
<!--
227
- <p> Name is the name of the admission controller.
228
- It must match the registered admission plugin name.</p>
234
+ Name is the name of the admission controller.
235
+ It must match the registered admission plugin name.
229
236
-->
230
- <p ><code >name</code > 是准入控制器的名称。它必须与所注册的准入插件名称匹配。</p >
237
+ <code >name</code > 是准入控制器的名称。它必须与所注册的准入插件名称匹配。
238
+ </p >
231
239
</td >
232
240
</tr >
233
241
234
242
<tr ><td ><code >path</code ><br />
235
243
<code >string</code >
236
244
</td >
237
245
<td >
246
+ <p >
238
247
<!--
239
- <p> Path is the path to a configuration file that contains the plugin's
240
- configuration</p>
248
+ Path is the path to a configuration file that contains the plugin's
249
+ configuration
241
250
-->
242
- <p ><code >path</code > 是指向包含插件配置信息的配置文件的路径。</p >
251
+ <code >path</code > 是指向包含插件配置信息的配置文件的路径。
252
+ </p >
243
253
</td >
244
254
</tr >
245
255
246
256
<tr ><td ><code >configuration</code ><br />
247
257
<a href =" https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime#Unknown " ><code >k8s.io/apimachinery/pkg/runtime.Unknown</code ></a >
248
258
</td >
249
259
<td >
260
+ <p >
250
261
<!--
251
- <p> Configuration is an embedded configuration object to be used as the plugin's
252
- configuration. If present, it will be used instead of the path to the configuration file.</p>
262
+ Configuration is an embedded configuration object to be used as the plugin's
263
+ configuration. If present, it will be used instead of the path to the configuration file.
253
264
-->
254
- <p ><code >configuration</code > 是一个内嵌的配置对象,用来保存插件的配置信息。
255
- 如果存在,则使用这里的配置信息而不是指向配置文件的路径。</p >
265
+ <code >configuration</code > 是一个内嵌的配置对象,用来保存插件的配置信息。
266
+ 如果存在,则使用这里的配置信息而不是指向配置文件的路径。
267
+ </p >
256
268
</td >
257
269
</tr >
258
270
259
271
</tbody >
260
272
</table >
261
273
262
274
## ` AuthorizerConfiguration ` {#apiserver-config-k8s-io-v1-AuthorizerConfiguration}
263
-
275
+
264
276
<!--
265
277
**Appears in:**
266
278
-->
@@ -363,7 +375,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
363
375
<table class =" table " >
364
376
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
365
377
<tbody >
366
-
378
+
367
379
<tr ><td ><code >apiVersion</code ><br />
368
380
<code >string</code >
369
381
</td >
@@ -384,7 +396,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
384
396
<!--
385
397
name is the name of the KMS plugin to be used.
386
398
-->
387
- name 是要使用的 KMS 插件的名称。
399
+ < code > name</ code > 是要使用的 KMS 插件的名称。
388
400
</p >
389
401
</td >
390
402
</tr >
@@ -397,9 +409,9 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
397
409
cachesize is the maximum number of secrets which are cached in memory. The default value is 1000.
398
410
Set to a negative value to disable caching. This field is only allowed for KMS v1 providers.
399
411
-->
400
- cachesize 是内存中缓存的最大 Secret 数量。默认值为 1000。
412
+ < code > cachesize</ code > 是内存中缓存的最大 Secret 数量。默认值为 1000。
401
413
设置为负值将禁用缓存。此字段仅允许用于 KMS v1 驱动。
402
- </p >
414
+ </p >
403
415
</td >
404
416
</tr >
405
417
<tr ><td ><code >endpoint</code > <B ><!-- [Required]--> [必需]</B ><br />
@@ -410,7 +422,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
410
422
<!--
411
423
endpoint is the gRPC server listening address, for example "unix:///var/run/kms-provider.sock".
412
424
-->
413
- endpoint 是 gRPC 服务器的监听地址,例如 "unix:///var/run/kms-provider.sock"。
425
+ < code > endpoint</ code > 是 gRPC 服务器的监听地址,例如 "unix:///var/run/kms-provider.sock"。
414
426
</p >
415
427
</td >
416
428
</tr >
@@ -422,7 +434,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
422
434
<!--
423
435
timeout for gRPC calls to kms-plugin (ex. 5s). The default is 3 seconds.
424
436
-->
425
- timeout 是 gRPC 调用到 KMS 插件的超时时间(例如 5s)。默认值为 3 秒。
437
+ < code > timeout</ code > 是 gRPC 调用到 KMS 插件的超时时间(例如 5s)。默认值为 3 秒。
426
438
</p >
427
439
</td >
428
440
</tr >
@@ -449,7 +461,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
449
461
<table class =" table " >
450
462
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
451
463
<tbody >
452
-
464
+
453
465
<tr ><td ><code >name</code > <B ><!-- [Required]--> [必需]</B ><br />
454
466
<code >string</code >
455
467
</td >
@@ -458,7 +470,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
458
470
<!--
459
471
name is the name of the key to be used while storing data to disk.
460
472
-->
461
- name 是在将数据存储到磁盘时所使用的密钥名称。
473
+ < code > name</ code > 是在将数据存储到磁盘时所使用的密钥名称。
462
474
</p >
463
475
</td >
464
476
</tr >
@@ -470,7 +482,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
470
482
<!--
471
483
secret is the actual key, encoded in base64.
472
484
-->
473
- secret 是实际的密钥,以 base64 编码。
485
+ < code > secret</ code > 是实际的密钥,以 base64 编码。
474
486
</p >
475
487
</td >
476
488
</tr >
@@ -505,7 +517,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
505
517
<!--
506
518
aesgcm is the configuration for the AES-GCM transformer.
507
519
-->
508
- aesgcm 是 AES-GCM 转换器的配置。
520
+ < code > aesgcm</ code > 是 AES-GCM 转换器的配置。
509
521
</p >
510
522
</td >
511
523
</tr >
@@ -517,7 +529,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
517
529
<!--
518
530
aescbc is the configuration for the AES-CBC transformer.
519
531
-->
520
- aescbc 是 AES-CBC 转换器的配置。
532
+ < code > aescbc</ code > 是 AES-CBC 转换器的配置。
521
533
</p >
522
534
</td >
523
535
</tr >
@@ -529,7 +541,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
529
541
<!--
530
542
secretbox is the configuration for the Secretbox based transformer.
531
543
-->
532
- secretbox 是基于 Secretbox 的转换器的配置。
544
+ < code > secretbox</ code > 是基于 Secretbox 的转换器的配置。
533
545
</p >
534
546
</td >
535
547
</tr >
@@ -541,7 +553,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
541
553
<!--
542
554
identity is the (empty) configuration for the identity transformer.
543
555
-->
544
- identity 是身份转换器的(空)配置。
556
+ < code > identity</ code > 是身份转换器的(空)配置。
545
557
</p >
546
558
</td >
547
559
</tr >
@@ -553,7 +565,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
553
565
<!--
554
566
kms contains the name, cache size and path to configuration file for a KMS based envelope transformer.
555
567
-->
556
- kms 包含 KMS 型信封转换器所用的配置文件的名称、缓存大小和路径。
568
+ < code > kms</ code > 包含 KMS 型信封转换器所用的配置文件的名称、缓存大小和路径。
557
569
</p >
558
570
</td >
559
571
</tr >
@@ -592,13 +604,13 @@ Use '*.*' to encrypt all resources and '*.<group>' to encrypt
592
604
eg: '*.awesome.bears.example' will encrypt all resources in the group 'awesome.bears.example'.
593
605
eg: '*.' will encrypt all resources in the core group (such as pods, configmaps, etc).
594
606
-->
595
- resources 是一个需要加密的 Kubernetes 资源列表。
607
+ < code > resources</ code > 是一个需要加密的 Kubernetes 资源列表。
596
608
资源名称来源于组/版本/资源的 “<code >resource</code >” 或 “<code >resource.group</code >”。
597
609
例如,pandas.awesome.bears.example 是一个自定义资源,其 “group” 为 awesome.bears.example,
598
610
“resource” 为 pandas。使用 “&ast ; .&ast ; ” 以加密所有资源,使用 “&ast ; .< ; group> ; ” 以加密特定组中的所有资源。
599
611
例如,“&ast ; .awesome.bears.example” 将加密 “awesome.bears.example” 组中的所有资源。
600
612
再比如,“&ast ; .” 将加密核心组中的所有资源(如 Pod、ConfigMap 等)。
601
- </p >
613
+ </p >
602
614
</td >
603
615
</tr >
604
616
<tr ><td ><code >providers</code > <B ><!-- [Required]--> [必需]</B ><br />
@@ -610,9 +622,9 @@ eg: '*.' will encrypt all resources in the core group (such as pods, configm
610
622
providers is a list of transformers to be used for reading and writing the resources to disk.
611
623
eg: aesgcm, aescbc, secretbox, identity, kms.
612
624
-->
613
- providers 是从磁盘读取资源和写入资源到磁盘要使用的转换器的列表。
625
+ < code > providers</ code > 是从磁盘读取资源和写入资源到磁盘要使用的转换器的列表。
614
626
例如:aesgcm、aescbc、secretbox、identity、kms。
615
- </p >
627
+ </p >
616
628
</td >
617
629
</tr >
618
630
</tbody >
@@ -647,7 +659,7 @@ SecretboxConfiguration 包含 Secretbox 转换器的 API 配置。
647
659
keys is a list of keys to be used for creating the Secretbox transformer.
648
660
Each key has to be 32 bytes long.
649
661
-->
650
- keys 是一个用于创建 Secretbox 转换器的密钥列表。每个密钥的长度必须为 32 字节。
662
+ < code > keys</ code > 是一个用于创建 Secretbox 转换器的密钥列表。每个密钥的长度必须为 32 字节。
651
663
</p >
652
664
</td >
653
665
</tr >
@@ -890,7 +902,7 @@ allowed for kube-apiserver.</li>
890
902
Path to KubeConfigFile for connection info
891
903
Required, if connectionInfo.Type is KubeConfig
892
904
-->
893
- KubeConfig 文件的路径,用于获取连接信息。
905
+ < code >kubeConfigFile</ code > 文件的路径,用于获取连接信息。
894
906
如果 <code >connectionInfo.type</code > 是 KubeConfig,则必需。
895
907
</p >
896
908
</td >
@@ -936,7 +948,8 @@ CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
936
948
<li>'extra' corresponds to the user.Info.GetExtra() method from the authenticator.</li>
937
949
<li>'uid' is the information about the requesting user. e.g. request.uid == '1'</li>
938
950
-->
939
- <li >'resourceAttributes' 描述了资源访问请求的信息,在非资源请求中未设置。例如:<code >has(request.resourceAttributes) & ;& ; request.resourceAttributes.namespace == 'default'</code >。
951
+ <li >'resourceAttributes' 描述了资源访问请求的信息,在非资源请求中未设置。
952
+ 例如:<code >has(request.resourceAttributes) & ;& ; request.resourceAttributes.namespace == 'default'</code >。
940
953
</li >
941
954
<li >'nonResourceAttributes' 描述了非资源访问请求的信息,在资源请求中未设置。例如:
942
955
<code >has(request.nonResourceAttributes) & ;& ; request.nonResourceAttributes.path == '/healthz'</code >。
@@ -950,7 +963,7 @@ CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
950
963
<!--
951
964
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
952
965
-->
953
- 关于 CEL 的文档:https://kubernetes.io/docs/reference/using-api/cel/
966
+ 关于 CEL 的文档:https://kubernetes.io/zh-cn/ docs/reference/using-api/cel/
954
967
</p >
955
968
</td >
956
969
</tr >
0 commit comments