Skip to content

Commit 02e02b5

Browse files
committed
[zh-cn] sync config-api/apiserver-* client-* imagepolicy
Signed-off-by: xin.li <[email protected]>
1 parent 8d00ac9 commit 02e02b5

File tree

5 files changed

+27
-42
lines changed

5 files changed

+27
-42
lines changed

content/zh-cn/docs/reference/config-api/apiserver-audit.v1.md

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Event 结构包含可出现在 API 审计日志中的所有信息。
103103
</tr>
104104

105105
<tr><td><code>user</code> <B><!--[Required]-->[必需]</B><br/>
106-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#userinfo-v1-authentication"><code>authentication/v1.UserInfo</code></a>
106+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#userinfo-v1-authentication-k8s-io"><code>authentication/v1.UserInfo</code></a>
107107
</td>
108108
<td>
109109
<p>
@@ -114,7 +114,7 @@ Event 结构包含可出现在 API 审计日志中的所有信息。
114114
</tr>
115115

116116
<tr><td><code>impersonatedUser</code><br/>
117-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#userinfo-v1-authentication"><code>authentication/v1.UserInfo</code></a>
117+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#userinfo-v1-authentication-k8s-io"><code>authentication/v1.UserInfo</code></a>
118118
</td>
119119
<td>
120120
<p>
@@ -189,7 +189,7 @@ Note: All but the last IP can be arbitrarily set by the client.
189189
</tr>
190190

191191
<tr><td><code>responseStatus</code><br/>
192-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#status-v1-meta"><code>meta/v1.Status</code></a>
192+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#status-v1-meta"><code>meta/v1.Status</code></a>
193193
</td>
194194
<td>
195195
<p>
@@ -243,7 +243,7 @@ Note: All but the last IP can be arbitrarily set by the client.
243243
</tr>
244244

245245
<tr><td><code>requestReceivedTimestamp</code><br/>
246-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#microtime-v1-meta"><code>meta/v1.MicroTime</code></a>
246+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#microtime-v1-meta"><code>meta/v1.MicroTime</code></a>
247247
</td>
248248
<td>
249249
<!--Time the request reached the apiserver.-->
@@ -254,7 +254,7 @@ Note: All but the last IP can be arbitrarily set by the client.
254254
</tr>
255255

256256
<tr><td><code>stageTimestamp</code><br/>
257-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#microtime-v1-meta"><code>meta/v1.MicroTime</code></a>
257+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#microtime-v1-meta"><code>meta/v1.MicroTime</code></a>
258258
</td>
259259
<td>
260260
<p>
@@ -309,7 +309,7 @@ EventList 是审计事件(Event)的列表。
309309
<tr><td><code>kind</code><br/>string</td><td><code>EventList</code></td></tr>
310310

311311
<tr><td><code>metadata</code><br/>
312-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta"><code>meta/v1.ListMeta</code></a>
312+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#listmeta-v1-meta"><code>meta/v1.ListMeta</code></a>
313313
</td>
314314
<td>
315315
<span class="text-muted"><!--No description provided.-->列表结构元数据</span>
@@ -351,7 +351,7 @@ Policy 定义的是审计日志的配置以及不同类型请求的日志记录
351351
<tr><td><code>kind</code><br/>string</td><td><code>Policy</code></td></tr>
352352

353353
<tr><td><code>metadata</code><br/>
354-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
354+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
355355
</td>
356356
<td>
357357
<p>
@@ -440,7 +440,7 @@ PolicyList 是由审计策略(Policy)组成的列表。
440440
<tr><td><code>kind</code><br/>string</td><td><code>PolicyList</code></td></tr>
441441

442442
<tr><td><code>metadata</code><br/>
443-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta"><code>meta/v1.ListMeta</code></a>
443+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#listmeta-v1-meta"><code>meta/v1.ListMeta</code></a>
444444
</td>
445445
<td>
446446
<span class="text-muted"><!--No description provided.-->列表结构元数据。</span>
@@ -494,19 +494,13 @@ GroupResources 代表的是某 API 组中的资源类别。
494494
<td>
495495
<!--
496496
Resources is a list of resources this rule applies to.
497-
<p>For example:</p>
498-
<ul>
499-
<li><code>pods</code> matches pods.</li>
500-
<li><code>pods/log</code> matches the log subresource of pods.</li>
501-
<li><code>&ast;<code> matches all resources and their subresources.</li>
502-
<li><code>pods/&ast;</code> matches all subresources of pods.</li>
503-
<li><code>&ast;/scale</code> matches all scale subresources.</li>
504-
</ul>
497+
<p>For example:
498+
'pods' matches pods.
499+
'pods/log' matches the log subresource of pods.
500+
'<em>' matches all resources and their subresources.
501+
'pods/</em>' matches all subresources of pods.
502+
'*/scale' matches all scale subresources.</p>
505503
-->
506-
<p>
507-
字段 resources 是此规则所适用的资源的列表。
508-
</p>
509-
<br/>
510504
<p>例如:</p>
511505
<ul>
512506
<li><code>pods</code> 匹配 Pod;</li>
@@ -773,12 +767,10 @@ PolicyRule 包含一个映射,基于元数据将请求映射到某审计级别
773767
<td>
774768
<!--
775769
NonResourceURLs is a set of URL paths that should be audited.
776-
<code>&ast;<code>s are allowed, but only as the full, final step in the path.
777-
Examples:</p>
778-
<ul>
779-
<li>&quot;/metrics&quot; - Log requests for apiserver metrics</li>
780-
<li>&quot;/healthz&ast;&quot; - Log all health checks</li>
781-
</ul>
770+
<em>s are allowed, but only as the full, final step in the path.
771+
Examples:
772+
&quot;/metrics&quot; - Log requests for apiserver metrics
773+
&quot;/healthz</em>&quot; - Log all health checks</p>
782774
-->
783775

784776
<p>
@@ -864,4 +856,3 @@ Stage defines the stages in request handling that audit events may be generated.
864856
-->
865857
Stage 定义在请求处理过程中可以生成审计事件的阶段。
866858
</p>
867-

content/zh-cn/docs/reference/config-api/apiserver-encryption.v1.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ Package v1 is the v1 version of the API.
2929
## `EncryptionConfiguration` {#apiserver-config-k8s-io-v1-EncryptionConfiguration}
3030

3131
<!--
32-
EncryptionConfiguration stores the complete configuration for encryption providers.
33-
It also allows the use of wildcards to specify the resources that should be encrypted.
34-
Use <code>&ast;.&lt;group&gt;</code> to encrypt all resources within a group or <code>&ast;.&ast;</code> to encrypt all resources.
35-
<code>&ast;.</code> can be used to encrypt all resource in the core group. <code>&ast;.&ast;</code> will encrypt all
32+
Use '<em>.<!!-- raw HTML omitted -->' to encrypt all resources within a group or '</em>.<em>' to encrypt all resources.
33+
'</em>.' can be used to encrypt all resource in the core group. '<em>.</em>' will encrypt all
3634
resources, even custom resources that are added after API server start.
3735
Use of wildcards that overlap within the same resource list or across multiple
3836
entries are not allowed since part of the configuration would be ineffective.
@@ -399,10 +397,10 @@ ResourceConfiguration 中保存资源配置。
399397
<p>
400398
<!--
401399
resources is a list of kubernetes resources which have to be encrypted. The resource names are derived from <code>resource</code> or <code>resource.group</code> of the group/version/resource.
402-
eg: <code>pandas.awesome.bears.example</code> is a custom resource with 'group': <code>awesome.bears.example</code>, 'resource': <code>pandas</code>.
403-
Use <code>&ast;.&ast;</code> to encrypt all resources and <code>&ast;.&lt;group&gt;</code>' to encrypt all resources in a specific group.
404-
eg: <code>&ast;.awesome.bears.example</code> will encrypt all resources in the group <code>awesome.bears.example</code>.
405-
eg: <code>&ast;.</code> will encrypt all resources in the core group (such as pods, configmaps, etc).
400+
eg: pandas.awesome.bears.example is a custom resource with 'group': awesome.bears.example, 'resource': pandas.
401+
Use '<em>.</em>' to encrypt all resources and '<em>.< raw HTML omitted >' to encrypt all resources in a specific group.
402+
eg: '</em>.awesome.bears.example' will encrypt all resources in the group 'awesome.bears.example'.
403+
eg: '*.' will encrypt all resources in the core group (such as pods, configmaps, etc).</p>
406404
-->
407405
<code>resources</code> 是必须要加密的 Kubernetes 资源的列表。
408406
资源名称来自于组/版本/资源的 <code>resource</code> 或 <code>resource.group</code>。

content/zh-cn/docs/reference/config-api/client-authentication.v1.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ itself should at least be protected via file permissions.
259259
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
260260
<tbody>
261261
<tr><td><code>expirationTimestamp</code><br/>
262-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#time-v1-meta"><code>meta/v1.Time</code></a>
262+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta"><code>meta/v1.Time</code></a>
263263
</td>
264264
<td>
265265
<!--ExpirationTimestamp indicates a time when the provided credentials expire.-->
@@ -295,4 +295,3 @@ itself should at least be protected via file permissions.
295295
</tr>
296296
</tbody>
297297
</table>
298-

content/zh-cn/docs/reference/config-api/client-authentication.v1beta1.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ exec 插件本身至少应通过文件访问许可来实施保护。</p>
290290

291291

292292
<tr><td><code>expirationTimestamp</code><br/>
293-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#time-v1-meta"><code>meta/v1.Time</code></a>
293+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta"><code>meta/v1.Time</code></a>
294294
</td>
295295
<td>
296296
<!-- ExpirationTimestamp indicates a time when the provided credentials expire. -->
@@ -331,5 +331,3 @@ exec 插件本身至少应通过文件访问许可来实施保护。</p>
331331

332332
</tbody>
333333
</table>
334-
335-

content/zh-cn/docs/reference/config-api/imagepolicy.v1alpha1.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ package: imagepolicy.k8s.io/v1alpha1
2626
<tr><td><code>kind</code><br/>string</td><td><code>ImageReview</code></td></tr>
2727

2828
<tr><td><code>metadata</code><br/>
29-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
29+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
3030
</td>
3131
<td>
3232
<!--
@@ -207,4 +207,3 @@ appropriate prefix).</p>
207207
</tr>
208208
</tbody>
209209
</table>
210-

0 commit comments

Comments
 (0)