Skip to content

Commit ba99123

Browse files
authored
Merge pull request #51090 from my-git9/npa-10743
[zh-cn]sync imagepolicy.v1alpha1
2 parents 01e33b0 + 9a43e7e commit ba99123

File tree

1 file changed

+67
-36
lines changed

1 file changed

+67
-36
lines changed

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

Lines changed: 67 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ package: imagepolicy.k8s.io/v1alpha1
1313

1414
## `ImageReview` {#imagepolicy-k8s-io-v1alpha1-ImageReview}
1515

16+
<p>
1617
<!--
17-
<p>ImageReview checks if the set of images in a pod are allowed.</p>
18+
ImageReview checks if the set of images in a pod are allowed.
1819
-->
19-
<p>ImageReview 检查某个 Pod 中是否可以使用某些镜像。</p>
20+
ImageReview 检查某个 Pod 中是否可以使用某些镜像。
21+
</p>
2022

2123
<table class="table">
2224
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -26,15 +28,20 @@ package: imagepolicy.k8s.io/v1alpha1
2628
<tr><td><code>kind</code><br/>string</td><td><code>ImageReview</code></td></tr>
2729

2830
<tr><td><code>metadata</code><br/>
29-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
31+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#objectmeta-v1-meta"><code>meta/v1.ObjectMeta</code></a>
3032
</td>
3133
<td>
34+
<p>
3235
<!--
33-
<p>Standard object's metadata.
36+
Standard object's metadata.
3437
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</p>
35-
Refer to the Kubernetes API documentation for the fields of the <code>metadata</code> field.</td>
3638
-->
37-
<p>标准的对象元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</p>
39+
标准的对象元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
40+
</p>
41+
42+
<!--
43+
Refer to the Kubernetes API documentation for the fields of the <code>metadata</code> field.
44+
-->
3845
参阅 Kubernetes API 文档了解 <code>metadata</code> 字段的内容。
3946
</td>
4047

@@ -43,20 +50,24 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
4350
<a href="#imagepolicy-k8s-io-v1alpha1-ImageReviewSpec"><code>ImageReviewSpec</code></a>
4451
</td>
4552
<td>
53+
<p>
4654
<!--
47-
<p>Spec holds information about the pod being evaluated</p>
55+
Spec holds information about the pod being evaluated
4856
-->
49-
<p>spec 中包含与被评估的 Pod 相关的信息。</p>
57+
spec 中包含与被评估的 Pod 相关的信息。
58+
</p>
5059
</td>
5160
</tr>
5261
<tr><td><code>status</code><br/>
5362
<a href="#imagepolicy-k8s-io-v1alpha1-ImageReviewStatus"><code>ImageReviewStatus</code></a>
5463
</td>
5564
<td>
65+
<p>
5666
<!--
57-
<p>Status is filled in by the backend and indicates whether the pod should be allowed.</p>
67+
Status is filled in by the backend and indicates whether the pod should be allowed.
5868
-->
59-
<p>status 由后台负责填充,用来标明 Pod 是否会被准入。</p>
69+
status 由后台负责填充,用来标明 Pod 是否会被准入。
70+
</p>
6071
</td>
6172
</tr>
6273
</tbody>
@@ -71,10 +82,12 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
7182

7283
- [ImageReviewSpec](#imagepolicy-k8s-io-v1alpha1-ImageReviewSpec)
7384

85+
<p>
7486
<!--
75-
<p>ImageReviewContainerSpec is a description of a container within the pod creation request.</p>
87+
ImageReviewContainerSpec is a description of a container within the pod creation request.
7688
-->
77-
<p>ImageReviewContainerSpec 是对 Pod 创建请求中的某容器的描述。</p>
89+
ImageReviewContainerSpec 是对 Pod 创建请求中的某容器的描述。
90+
</p>
7891

7992
<table class="table">
8093
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -84,10 +97,12 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
8497
<code>string</code>
8598
</td>
8699
<td>
100+
<p>
87101
<!--
88-
<p>This can be in the form image:tag or image@SHA:012345679abcdef.</p>
102+
This can be in the form image:tag or image@SHA:012345679abcdef.
89103
-->
90-
<p>此字段的格式可以是 image:tag 或 image@SHA:012345679abcdef。</p>
104+
此字段的格式可以是 image:tag 或 image@SHA:012345679abcdef。
105+
</p>
91106
</td>
92107
</tr>
93108
</tbody>
@@ -102,10 +117,12 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
102117

103118
- [ImageReview](#imagepolicy-k8s-io-v1alpha1-ImageReview)
104119

120+
<p>
105121
<!--
106-
<p>ImageReviewSpec is a description of the pod creation request.</p>
122+
ImageReviewSpec is a description of the pod creation request.
107123
-->
108-
<p>ImageReviewSpec 是对 Pod 创建请求的描述。</p>
124+
ImageReviewSpec 是对 Pod 创建请求的描述。
125+
</p>
109126

110127
<table class="table">
111128
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -115,35 +132,41 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
115132
<a href="#imagepolicy-k8s-io-v1alpha1-ImageReviewContainerSpec"><code>[]ImageReviewContainerSpec</code></a>
116133
</td>
117134
<td>
135+
<p>
118136
<!--
119-
<p>Containers is a list of a subset of the information in each container of the Pod being created.</p>
137+
Containers is a list of a subset of the information in each container of the Pod being created.
120138
-->
121-
<p>containers 是一个列表,其中包含正被创建的 Pod 中各容器的信息子集。</p>
139+
containers 是一个列表,其中包含正被创建的 Pod 中各容器的信息子集。
140+
</p>
122141
</td>
123142
</tr>
124143
<tr><td><code>annotations</code><br/>
125144
<code>map[string]string</code>
126145
</td>
127146
<td>
147+
<p>
128148
<!--
129-
<p>Annotations is a list of key-value pairs extracted from the Pod's annotations.
149+
Annotations is a list of key-value pairs extracted from the Pod's annotations.
130150
It only includes keys which match the pattern <code>*.image-policy.k8s.io/*</code>.
131-
It is up to each webhook backend to determine how to interpret these annotations, if at all.</p>
151+
It is up to each webhook backend to determine how to interpret these annotations, if at all.
132152
-->
133-
<p>annotations 是一个键值对列表,内容抽取自 Pod 的注解(annotations)。
153+
annotations 是一个键值对列表,内容抽取自 Pod 的注解(annotations)。
134154
其中仅包含与模式 <code>*.image-policy.k8s.io/*</code> 匹配的键。
135-
每个 Webhook 后端要负责决定如何解释这些注解(如果有的话)。</p>
155+
每个 Webhook 后端要负责决定如何解释这些注解(如果有的话)。
156+
</p>
136157

137158
</td>
138159
</tr>
139160
<tr><td><code>namespace</code><br/>
140161
<code>string</code>
141162
</td>
142163
<td>
164+
<p>
143165
<!--
144-
<p>Namespace is the namespace the pod is being created in.</p>
166+
Namespace is the namespace the pod is being created in.
145167
-->
146-
<p>namespace 是 Pod 创建所针对的名字空间。</p>
168+
namespace 是 Pod 创建所针对的名字空间。
169+
</p>
147170
</td>
148171
</tr>
149172
</tbody>
@@ -158,10 +181,12 @@ It is up to each webhook backend to determine how to interpret these annotations
158181

159182
- [ImageReview](#imagepolicy-k8s-io-v1alpha1-ImageReview)
160183

184+
<p>
161185
<!--
162-
<p>ImageReviewStatus is the result of the review for the pod creation request.</p>
186+
ImageReviewStatus is the result of the review for the pod creation request.
163187
-->
164-
<p>ImageReviewStatus 是针对 Pod 创建请求所作的评估结果。</p>
188+
ImageReviewStatus 是针对 Pod 创建请求所作的评估结果。
189+
</p>
165190

166191
<table class="table">
167192
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -171,37 +196,43 @@ It is up to each webhook backend to determine how to interpret these annotations
171196
<code>bool</code>
172197
</td>
173198
<td>
199+
<p>
174200
<!--
175-
<p>Allowed indicates that all images were allowed to be run.</p>
201+
Allowed indicates that all images were allowed to be run.
176202
-->
177-
<p>allowed 表明所有镜像都可以被运行。</p>
203+
allowed 表明所有镜像都可以被运行。
204+
</p>
178205
</td>
179206
</tr>
180207
<tr><td><code>reason</code><br/>
181208
<code>string</code>
182209
</td>
183210
<td>
211+
<p>
184212
<!--
185-
<p>Reason should be empty unless Allowed is false in which case it
213+
Reason should be empty unless Allowed is false in which case it
186214
may contain a short description of what is wrong. Kubernetes
187-
may truncate excessively long errors when displaying to the user.</p>
215+
may truncate excessively long errors when displaying to the user.
188216
-->
189-
<p>若 <code>allowed</code> 不是 false,<code>reason</code> 应该为空。
190-
否则其中应包含出错信息的简短描述。Kubernetes 在向用户展示此信息时可能会截断过长的错误文字。</p>
217+
若 <code>allowed</code> 不是 false,<code>reason</code> 应该为空。
218+
否则其中应包含出错信息的简短描述。Kubernetes 在向用户展示此信息时可能会截断过长的错误文字。
219+
</p>
191220
</td>
192221
</tr>
193222
<tr><td><code>auditAnnotations</code><br/>
194223
<code>map[string]string</code>
195224
</td>
196225
<td>
226+
<p>
197227
<!--
198-
<p>AuditAnnotations will be added to the attributes object of the
228+
AuditAnnotations will be added to the attributes object of the
199229
admission controller request using 'AddAnnotation'. The keys should
200230
be prefix-less (i.e., the admission controller will add an
201-
appropriate prefix).</p>
231+
appropriate prefix).
202232
-->
203-
<p>auditAnnotations 会被通过 <code>AddAnnotation</code> 添加到准入控制器的 attributes 对象上。
204-
注解键应该不含前缀,换言之,准入控制器会添加合适的前缀。</p>
233+
auditAnnotations 会被通过 <code>AddAnnotation</code> 添加到准入控制器的 attributes 对象上。
234+
注解键应该不含前缀,换言之,准入控制器会添加合适的前缀。
235+
</p>
205236
</td>
206237
</tr>
207238
</tbody>

0 commit comments

Comments
 (0)