Skip to content

Commit c72c5c1

Browse files
committed
[zh-cn]sync apiserver-config.v1beta1.md
Signed-off-by: xin.li <[email protected]>
1 parent c795ec3 commit c72c5c1

File tree

1 file changed

+78
-34
lines changed

1 file changed

+78
-34
lines changed

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

Lines changed: 78 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ EgressSelectorConfiguration 为出站流量选择器客户端(Egress Selector
218218
## `TracingConfiguration` {#apiserver-k8s-io-v1beta1-TracingConfiguration}
219219

220220
<p>
221-
<!-- TracingConfiguration provides versioned configuration for tracing clients. -->
221+
<!--
222+
TracingConfiguration provides versioned configuration for tracing clients.
223+
-->
222224
TracingConfiguration 为跟踪客户端提供版本化的配置信息。
223225
</p>
224226

@@ -233,7 +235,9 @@ TracingConfiguration 为跟踪客户端提供版本化的配置信息。
233235
<a href="#TracingConfiguration"><code>TracingConfiguration</code></a>
234236
</td>
235237
<td>
236-
<!-- (Members of <code>TracingConfiguration</code> are embedded into this type.) -->
238+
<!--
239+
(Members of <code>TracingConfiguration</code> are embedded into this type.)
240+
-->
237241
(<code>TracingConfiguration</code> 的成员嵌入到这种类型中。)
238242
<p>
239243
<!--
@@ -295,7 +299,8 @@ AnonymousAuthCondition 描述了应启用匿名身份认证的条件。
295299
<!--
296300
AnonymousAuthConfig provides the configuration for the anonymous authenticator.
297301
-->
298-
AnonymousAuthConfig 为匿名身份认证器提供配置信息。</p>
302+
AnonymousAuthConfig 为匿名身份认证器提供配置信息。
303+
</p>
299304

300305
<table class="table">
301306
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -666,10 +671,12 @@ Nested claims can be accessed using dot notation, e.g. 'claims.foo.bar'.</li>
666671

667672
- [JWTAuthenticator](#apiserver-k8s-io-v1beta1-JWTAuthenticator)
668673

674+
<p>
669675
<!--
670-
<p>ClaimValidationRule provides the configuration for a single claim validation rule.</p>
676+
ClaimValidationRule provides the configuration for a single claim validation rule.
671677
-->
672-
<p>ClaimValidationRule 为单个声明验证规则提供配置信息。</p>
678+
ClaimValidationRule 为单个声明验证规则提供配置信息。
679+
</p>
673680

674681
<table class="table">
675682
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -722,7 +729,7 @@ Mutually exclusive with expression and message.
722729
Must produce a boolean.</p>
723730
<p>CEL expressions have access to the contents of the token claims, organized into CEL variable:</p>
724731
-->
725-
<p><p>expression 表示将由 CEL 求值的表达式。
732+
<p>expression 表示将由 CEL 求值的表达式。
726733
必须生成一个布尔值。</p>
727734
<p>CEL 表达式可以访问令牌声明的内容,这些内容被组织成 CEL 变量:</p>
728735
<ul>
@@ -1119,13 +1126,15 @@ JWT 中的 &quot;aud&quot; 声明必须包含 &quot;foo&quot; 或 &quot;bar&quot
11191126
所提供的 JWT 中的 &quot;aud&quot; 声明必须包含该单个受众(并且可以包含其他受众)。</p>
11201127
</li>
11211128
</ul>
1129+
<p>
11221130
<!--
1123-
<p>For more nuanced audience validation, use claimValidationRules.
1124-
example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, [&quot;bar&quot;, &quot;foo&quot;, &quot;baz&quot;])' to require an exact match.</p>
1131+
For more nuanced audience validation, use claimValidationRules.
1132+
example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, [&quot;bar&quot;, &quot;foo&quot;, &quot;baz&quot;])' to require an exact match.
11251133
-->
1126-
<p>对于更精细的受众验证,请使用 claimValidationRules。
1134+
对于更精细的受众验证,请使用 claimValidationRules。
11271135
示例:claimValidationRule[].expression: 'sets.equivalent(claims.aud, [&quot;bar&quot;, &quot;foo&quot;, &quot;baz&quot;])'
1128-
以要求精确匹配。</p>
1136+
以要求精确匹配。
1137+
</p>
11291138
</td>
11301139
</tr>
11311140
</tbody>
@@ -1140,10 +1149,12 @@ example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, [&quot;b
11401149

11411150
- [AuthenticationConfiguration](#apiserver-k8s-io-v1beta1-AuthenticationConfiguration)
11421151

1152+
<p>
11431153
<!--
1144-
<p>JWTAuthenticator provides the configuration for a single JWT authenticator.</p>
1154+
JWTAuthenticator provides the configuration for a single JWT authenticator.
11451155
-->
1146-
<p>JWTAuthenticator 为单个 JWT 身份认证器提供配置信息。</p>
1156+
JWTAuthenticator 为单个 JWT 身份认证器提供配置信息。
1157+
</p>
11471158

11481159
<table class="table">
11491160
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -1169,7 +1180,8 @@ example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, [&quot;b
11691180
<!--
11701181
claimValidationRules are rules that are applied to validate token claims to authenticate users.
11711182
-->
1172-
claimValidationRules 是用于验证令牌声明以认证用户的规则。</p>
1183+
claimValidationRules 是用于验证令牌声明以认证用户的规则。
1184+
</p>
11731185
</td>
11741186
</tr>
11751187
<tr><td><code>claimMappings</code> <B><!--[Required]-->[必需]</B><br/>
@@ -1213,10 +1225,12 @@ The validation rules are logically ANDed together and must all return true for t
12131225

12141226
- [ClaimMappings](#apiserver-k8s-io-v1beta1-ClaimMappings)
12151227

1228+
<p>
12161229
<!--
1217-
<p>PrefixedClaimOrExpression provides the configuration for a single prefixed claim or expression.</p>
1230+
PrefixedClaimOrExpression provides the configuration for a single prefixed claim or expression.
12181231
-->
1219-
<p>PrefixedClaimOrExpression 为单个带前缀的声明或表达式提供配置。</p>
1232+
PrefixedClaimOrExpression 为单个带前缀的声明或表达式提供配置。
1233+
</p>
12201234

12211235
<table class="table">
12221236
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -1248,7 +1262,8 @@ Mutually exclusive with expression.
12481262
-->
12491263
prefix 是添加到声明值前面的前缀,以防止与现有名称冲突。
12501264
如果设置了 claim,则需要设置 prefix,并且可以是空字符串。
1251-
与 expression 互斥。</p>
1265+
与 expression 互斥。
1266+
</p>
12521267
</td>
12531268
</tr>
12541269
<tr><td><code>expression</code><br/>
@@ -1389,7 +1404,8 @@ TLSConfig 为连接 konnectivity 服务器提供身份认证信息。仅用于 T
13891404
<code>string</code>
13901405
</td>
13911406
<td>
1392-
<p><!--
1407+
<p>
1408+
<!--
13931409
clientKey is the file location of the client key to be used in mtls handshakes with the konnectivity server.
13941410
Must be absent/empty if TCPTransport.URL is prefixed with http://
13951411
Must be configured if TCPTransport.URL is prefixed with https://
@@ -1594,30 +1610,34 @@ API 文档:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28
15941610
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
15951611
</td>
15961612
<td>
1613+
<p>
15971614
<!--
1598-
<p>The duration to cache 'authorized' responses from the webhook
1615+
The duration to cache 'authorized' responses from the webhook
15991616
authorizer.
16001617
Same as setting <code>--authorization-webhook-cache-authorized-ttl</code> flag
1601-
Default: 5m0s</p>
1618+
Default: 5m0s
16021619
-->
1603-
<p>对来自 Webhook 鉴权组件的 “authorized” 响应的缓存时长。
1620+
对来自 Webhook 鉴权组件的 “authorized” 响应的缓存时长。
16041621
与设置 <code>--authorization-webhook-cache-authorized-ttl</code> 标志相同。
1605-
默认值:5m0s。</p>
1622+
默认值:5m0s。
1623+
</p>
16061624
</td>
16071625
</tr>
16081626
<tr><td><code>unauthorizedTTL</code> <B>[Required]</B><br/>
16091627
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
16101628
</td>
16111629
<td>
1630+
<p>
16121631
<!--
1613-
<p>The duration to cache 'unauthorized' responses from the webhook
1632+
The duration to cache 'unauthorized' responses from the webhook
16141633
authorizer.
16151634
Same as setting <code>--authorization-webhook-cache-unauthorized-ttl</code> flag
1616-
Default: 30s</p>
1635+
Default: 30s
16171636
-->
1618-
<p>对来自 Webhook 鉴权组件的 “unauthorized” 响应的缓存时长。
1637+
对来自 Webhook 鉴权组件的 “unauthorized” 响应的缓存时长。
16191638
与设置 <code>--authorization-webhook-cache-unauthorized-ttl</code> 标志相同。
1620-
默认值:30s</p>
1639+
默认值:30s
1640+
</p>
16211641

16221642
</td>
16231643
</tr>
@@ -1641,17 +1661,19 @@ Required, no default value.
16411661
<code>string</code>
16421662
</td>
16431663
<td>
1664+
<p>
16441665
<!--
1645-
<p>The API version of the authorization.k8s.io SubjectAccessReview to
1666+
The API version of the authorization.k8s.io SubjectAccessReview to
16461667
send to and expect from the webhook.
16471668
Same as setting <code>--authorization-webhook-version</code> flag
16481669
Valid values: v1beta1, v1
1649-
Required, no default value</p>
1670+
Required, no default value
16501671
-->
1651-
<p>要发送到 Webhook 并期望从 Webhook 获得的 authorization.k8s.io SubjectAccessReview 的 API 版本。
1672+
要发送到 Webhook 并期望从 Webhook 获得的 authorization.k8s.io SubjectAccessReview 的 API 版本。
16521673
与设置 <code>--authorization-webhook-version</code> 标志相同。
16531674
有效值:v1beta1、v1。
1654-
必需,无默认值</p>
1675+
必需,无默认值
1676+
</p>
16551677
</td>
16561678
</tr>
16571679
<tr><td><code>matchConditionSubjectAccessReviewVersion</code> <B><!--[Required]-->[必需]</B><br/>
@@ -1814,18 +1836,40 @@ Required, if connectionInfo.Type is KubeConfig
18141836
<code>string</code>
18151837
</td>
18161838
<td>
1839+
<p>
18171840
<!--
1818-
<p>expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
1841+
expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
18191842
CEL expressions have access to the contents of the SubjectAccessReview in v1 version.
18201843
If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
18211844
the contents would be converted to the v1 version before evaluating the CEL expression.</p>
1822-
<p>Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/</p>
18231845
-->
1824-
<p>expression 表示将由 CEL 求值的表达式。求值结果必须为布尔值。
1846+
expression 表示将由 CEL 求值的表达式。求值结果必须为布尔值。
18251847
CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
18261848
如果请求变量中 subjectAccessReviewVersion 指定的版本是 v1beta1,
1827-
在计算 CEL 表达式之前,内容将被转换为 v1 版本。</p>
1828-
<p>关于 CEL 文档: https://kubernetes.io/zh-cn/docs/reference/using-api/cel/</p>
1849+
在计算 CEL 表达式之前,内容将被转换为 v1 版本。
1850+
</p>
1851+
<ul>
1852+
<!--
1853+
<li>'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) &amp;&amp; request.resourceAttributes.namespace == 'default'</li>
1854+
<li>'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) &amp;&amp; request.nonResourceAttributes.path == '/healthz'.</li>
1855+
<li>'user' is the user to test for. e.g. request.user == 'alice'</li>
1856+
<li>'groups' is the groups to test for. e.g. ('group1' in request.groups)</li>
1857+
<li>'extra' corresponds to the user.Info.GetExtra() method from the authenticator.</li>
1858+
<li>'uid' is the information about the requesting user. e.g. request.uid == '1'</li>
1859+
-->
1860+
<li>'resourceAttributes' 描述了资源访问请求的信息,对于非资源请求则未设置。例如:<code>has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'</code>。</li>
1861+
<li>'nonResourceAttributes' 描述了非资源访问请求的信息,对于资源请求则未设置。例如:<code>has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'</code>。</li>
1862+
<li>'user' 是要测试的用户。例如:<code>request.user == 'alice'</code>。</li>
1863+
<li>'groups' 是要测试的用户组。例如:<code>('group1' in request.groups)</code>。</li>
1864+
<li>'extra' 对应于身份验证器中的 <code>user.Info.GetExtra()</code> 方法。</li>
1865+
<li>'uid' 是关于请求用户的标识信息。例如:<code>request.uid == '1'</code>。</li>
1866+
</ul>
1867+
<p>
1868+
<!--
1869+
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
1870+
-->
1871+
关于 CEL 文档: https://kubernetes.io/zh-cn/docs/reference/using-api/cel/
1872+
</p>
18291873
</td>
18301874
</tr>
18311875
</tbody>

0 commit comments

Comments
 (0)