@@ -13,10 +13,12 @@ package: imagepolicy.k8s.io/v1alpha1
13
13
14
14
## ` ImageReview ` {#imagepolicy-k8s-io-v1alpha1-ImageReview}
15
15
16
+ <p >
16
17
<!--
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.
18
19
-->
19
- <p >ImageReview 检查某个 Pod 中是否可以使用某些镜像。</p >
20
+ ImageReview 检查某个 Pod 中是否可以使用某些镜像。
21
+ </p >
20
22
21
23
<table class =" table " >
22
24
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -26,15 +28,20 @@ package: imagepolicy.k8s.io/v1alpha1
26
28
<tr ><td ><code >kind</code ><br />string</td ><td ><code >ImageReview</code ></td ></tr >
27
29
28
30
<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 >
30
32
</td >
31
33
<td >
34
+ <p >
32
35
<!--
33
- <p> Standard object's metadata.
36
+ Standard object's metadata.
34
37
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>
36
38
-->
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
+ -->
38
45
参阅 Kubernetes API 文档了解 <code >metadata</code > 字段的内容。
39
46
</td >
40
47
@@ -43,20 +50,24 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
43
50
<a href =" #imagepolicy-k8s-io-v1alpha1-ImageReviewSpec " ><code >ImageReviewSpec</code ></a >
44
51
</td >
45
52
<td >
53
+ <p >
46
54
<!--
47
- <p> Spec holds information about the pod being evaluated</p>
55
+ Spec holds information about the pod being evaluated
48
56
-->
49
- <p >spec 中包含与被评估的 Pod 相关的信息。</p >
57
+ spec 中包含与被评估的 Pod 相关的信息。
58
+ </p >
50
59
</td >
51
60
</tr >
52
61
<tr ><td ><code >status</code ><br />
53
62
<a href =" #imagepolicy-k8s-io-v1alpha1-ImageReviewStatus " ><code >ImageReviewStatus</code ></a >
54
63
</td >
55
64
<td >
65
+ <p >
56
66
<!--
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.
58
68
-->
59
- <p >status 由后台负责填充,用来标明 Pod 是否会被准入。</p >
69
+ status 由后台负责填充,用来标明 Pod 是否会被准入。
70
+ </p >
60
71
</td >
61
72
</tr >
62
73
</tbody >
@@ -71,10 +82,12 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
71
82
72
83
- [ ImageReviewSpec] ( #imagepolicy-k8s-io-v1alpha1-ImageReviewSpec )
73
84
85
+ <p >
74
86
<!--
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.
76
88
-->
77
- <p >ImageReviewContainerSpec 是对 Pod 创建请求中的某容器的描述。</p >
89
+ ImageReviewContainerSpec 是对 Pod 创建请求中的某容器的描述。
90
+ </p >
78
91
79
92
<table class =" table " >
80
93
<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</
84
97
<code >string</code >
85
98
</td >
86
99
<td >
100
+ <p >
87
101
<!--
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.
89
103
-->
90
- <p >此字段的格式可以是 image:tag 或 image@SHA:012345679abcdef。</p >
104
+ 此字段的格式可以是 image: tag 或 image@SHA:012345679abcdef。
105
+ </p >
91
106
</td >
92
107
</tr >
93
108
</tbody >
@@ -102,10 +117,12 @@ Refer to the Kubernetes API documentation for the fields of the <code>metadata</
102
117
103
118
- [ ImageReview] ( #imagepolicy-k8s-io-v1alpha1-ImageReview )
104
119
120
+ <p >
105
121
<!--
106
- <p> ImageReviewSpec is a description of the pod creation request.</p>
122
+ ImageReviewSpec is a description of the pod creation request.
107
123
-->
108
- <p >ImageReviewSpec 是对 Pod 创建请求的描述。</p >
124
+ ImageReviewSpec 是对 Pod 创建请求的描述。
125
+ </p >
109
126
110
127
<table class =" table " >
111
128
<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</
115
132
<a href =" #imagepolicy-k8s-io-v1alpha1-ImageReviewContainerSpec " ><code >[ ] ImageReviewContainerSpec</code ></a >
116
133
</td >
117
134
<td >
135
+ <p >
118
136
<!--
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.
120
138
-->
121
- <p >containers 是一个列表,其中包含正被创建的 Pod 中各容器的信息子集。</p >
139
+ containers 是一个列表,其中包含正被创建的 Pod 中各容器的信息子集。
140
+ </p >
122
141
</td >
123
142
</tr >
124
143
<tr ><td ><code >annotations</code ><br />
125
144
<code >map[ string] string</code >
126
145
</td >
127
146
<td >
147
+ <p >
128
148
<!--
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.
130
150
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.
132
152
-->
133
- < p > annotations 是一个键值对列表,内容抽取自 Pod 的注解(annotations)。
153
+ annotations 是一个键值对列表,内容抽取自 Pod 的注解(annotations)。
134
154
其中仅包含与模式 <code >* .image-policy.k8s.io/* </code > 匹配的键。
135
- 每个 Webhook 后端要负责决定如何解释这些注解(如果有的话)。</p >
155
+ 每个 Webhook 后端要负责决定如何解释这些注解(如果有的话)。
156
+ </p >
136
157
137
158
</td >
138
159
</tr >
139
160
<tr ><td ><code >namespace</code ><br />
140
161
<code >string</code >
141
162
</td >
142
163
<td >
164
+ <p >
143
165
<!--
144
- <p> Namespace is the namespace the pod is being created in.</p>
166
+ Namespace is the namespace the pod is being created in.
145
167
-->
146
- <p >namespace 是 Pod 创建所针对的名字空间。</p >
168
+ namespace 是 Pod 创建所针对的名字空间。
169
+ </p >
147
170
</td >
148
171
</tr >
149
172
</tbody >
@@ -158,10 +181,12 @@ It is up to each webhook backend to determine how to interpret these annotations
158
181
159
182
- [ ImageReview] ( #imagepolicy-k8s-io-v1alpha1-ImageReview )
160
183
184
+ <p >
161
185
<!--
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.
163
187
-->
164
- <p >ImageReviewStatus 是针对 Pod 创建请求所作的评估结果。</p >
188
+ ImageReviewStatus 是针对 Pod 创建请求所作的评估结果。
189
+ </p >
165
190
166
191
<table class =" table " >
167
192
<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
171
196
<code >bool</code >
172
197
</td >
173
198
<td >
199
+ <p >
174
200
<!--
175
- <p> Allowed indicates that all images were allowed to be run.</p>
201
+ Allowed indicates that all images were allowed to be run.
176
202
-->
177
- <p >allowed 表明所有镜像都可以被运行。</p >
203
+ allowed 表明所有镜像都可以被运行。
204
+ </p >
178
205
</td >
179
206
</tr >
180
207
<tr ><td ><code >reason</code ><br />
181
208
<code >string</code >
182
209
</td >
183
210
<td >
211
+ <p >
184
212
<!--
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
186
214
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.
188
216
-->
189
- <p >若 <code >allowed</code > 不是 false,<code >reason</code > 应该为空。
190
- 否则其中应包含出错信息的简短描述。Kubernetes 在向用户展示此信息时可能会截断过长的错误文字。</p >
217
+ 若 <code >allowed</code > 不是 false,<code >reason</code > 应该为空。
218
+ 否则其中应包含出错信息的简短描述。Kubernetes 在向用户展示此信息时可能会截断过长的错误文字。
219
+ </p >
191
220
</td >
192
221
</tr >
193
222
<tr ><td ><code >auditAnnotations</code ><br />
194
223
<code >map[ string] string</code >
195
224
</td >
196
225
<td >
226
+ <p >
197
227
<!--
198
- <p> AuditAnnotations will be added to the attributes object of the
228
+ AuditAnnotations will be added to the attributes object of the
199
229
admission controller request using 'AddAnnotation'. The keys should
200
230
be prefix-less (i.e., the admission controller will add an
201
- appropriate prefix).</p>
231
+ appropriate prefix).
202
232
-->
203
- <p >auditAnnotations 会被通过 <code >AddAnnotation</code > 添加到准入控制器的 attributes 对象上。
204
- 注解键应该不含前缀,换言之,准入控制器会添加合适的前缀。</p >
233
+ auditAnnotations 会被通过 <code >AddAnnotation</code > 添加到准入控制器的 attributes 对象上。
234
+ 注解键应该不含前缀,换言之,准入控制器会添加合适的前缀。
235
+ </p >
205
236
</td >
206
237
</tr >
207
238
</tbody >
0 commit comments