@@ -218,7 +218,9 @@ EgressSelectorConfiguration 为出站流量选择器客户端(Egress Selector
218
218
## ` TracingConfiguration ` {#apiserver-k8s-io-v1beta1-TracingConfiguration}
219
219
220
220
<p >
221
- <!-- TracingConfiguration provides versioned configuration for tracing clients. -->
221
+ <!--
222
+ TracingConfiguration provides versioned configuration for tracing clients.
223
+ -->
222
224
TracingConfiguration 为跟踪客户端提供版本化的配置信息。
223
225
</p >
224
226
@@ -233,7 +235,9 @@ TracingConfiguration 为跟踪客户端提供版本化的配置信息。
233
235
<a href =" #TracingConfiguration " ><code >TracingConfiguration</code ></a >
234
236
</td >
235
237
<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
+ -->
237
241
(<code >TracingConfiguration</code > 的成员嵌入到这种类型中。)
238
242
<p >
239
243
<!--
@@ -295,7 +299,8 @@ AnonymousAuthCondition 描述了应启用匿名身份认证的条件。
295
299
<!--
296
300
AnonymousAuthConfig provides the configuration for the anonymous authenticator.
297
301
-->
298
- AnonymousAuthConfig 为匿名身份认证器提供配置信息。</p >
302
+ AnonymousAuthConfig 为匿名身份认证器提供配置信息。
303
+ </p >
299
304
300
305
<table class =" table " >
301
306
<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>
666
671
667
672
- [ JWTAuthenticator] ( #apiserver-k8s-io-v1beta1-JWTAuthenticator )
668
673
674
+ <p >
669
675
<!--
670
- <p> ClaimValidationRule provides the configuration for a single claim validation rule.</p>
676
+ ClaimValidationRule provides the configuration for a single claim validation rule.
671
677
-->
672
- <p >ClaimValidationRule 为单个声明验证规则提供配置信息。</p >
678
+ ClaimValidationRule 为单个声明验证规则提供配置信息。
679
+ </p >
673
680
674
681
<table class =" table " >
675
682
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -722,7 +729,7 @@ Mutually exclusive with expression and message.
722
729
Must produce a boolean.</p>
723
730
<p>CEL expressions have access to the contents of the token claims, organized into CEL variable:</p>
724
731
-->
725
- <p >< p > expression 表示将由 CEL 求值的表达式。
732
+ <p >expression 表示将由 CEL 求值的表达式。
726
733
必须生成一个布尔值。</p >
727
734
<p >CEL 表达式可以访问令牌声明的内容,这些内容被组织成 CEL 变量:</p >
728
735
<ul >
@@ -1119,13 +1126,15 @@ JWT 中的 "aud" 声明必须包含 "foo" 或 "bar"
1119
1126
所提供的 JWT 中的 " ; aud" ; 声明必须包含该单个受众(并且可以包含其他受众)。</p >
1120
1127
</li >
1121
1128
</ul >
1129
+ <p >
1122
1130
<!--
1123
- <p> For more nuanced audience validation, use claimValidationRules.
1124
- example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, ["bar", "foo", "baz"])' to require an exact match.</p>
1131
+ For more nuanced audience validation, use claimValidationRules.
1132
+ example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, ["bar", "foo", "baz"])' to require an exact match.
1125
1133
-->
1126
- < p > 对于更精细的受众验证,请使用 claimValidationRules。
1134
+ 对于更精细的受众验证,请使用 claimValidationRules。
1127
1135
示例:claimValidationRule[ ] .expression: 'sets.equivalent(claims.aud, [ " ; bar" ; , " ; foo" ; , " ; baz" ; ] )'
1128
- 以要求精确匹配。</p >
1136
+ 以要求精确匹配。
1137
+ </p >
1129
1138
</td >
1130
1139
</tr >
1131
1140
</tbody >
@@ -1140,10 +1149,12 @@ example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, ["b
1140
1149
1141
1150
- [ AuthenticationConfiguration] ( #apiserver-k8s-io-v1beta1-AuthenticationConfiguration )
1142
1151
1152
+ <p >
1143
1153
<!--
1144
- <p> JWTAuthenticator provides the configuration for a single JWT authenticator.</p>
1154
+ JWTAuthenticator provides the configuration for a single JWT authenticator.
1145
1155
-->
1146
- <p >JWTAuthenticator 为单个 JWT 身份认证器提供配置信息。</p >
1156
+ JWTAuthenticator 为单个 JWT 身份认证器提供配置信息。
1157
+ </p >
1147
1158
1148
1159
<table class =" table " >
1149
1160
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -1169,7 +1180,8 @@ example: claimValidationRule[].expression: 'sets.equivalent(claims.aud, ["b
1169
1180
<!--
1170
1181
claimValidationRules are rules that are applied to validate token claims to authenticate users.
1171
1182
-->
1172
- claimValidationRules 是用于验证令牌声明以认证用户的规则。</p >
1183
+ claimValidationRules 是用于验证令牌声明以认证用户的规则。
1184
+ </p >
1173
1185
</td >
1174
1186
</tr >
1175
1187
<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
1213
1225
1214
1226
- [ ClaimMappings] ( #apiserver-k8s-io-v1beta1-ClaimMappings )
1215
1227
1228
+ <p >
1216
1229
<!--
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.
1218
1231
-->
1219
- <p >PrefixedClaimOrExpression 为单个带前缀的声明或表达式提供配置。</p >
1232
+ PrefixedClaimOrExpression 为单个带前缀的声明或表达式提供配置。
1233
+ </p >
1220
1234
1221
1235
<table class =" table " >
1222
1236
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -1248,7 +1262,8 @@ Mutually exclusive with expression.
1248
1262
-->
1249
1263
prefix 是添加到声明值前面的前缀,以防止与现有名称冲突。
1250
1264
如果设置了 claim,则需要设置 prefix,并且可以是空字符串。
1251
- 与 expression 互斥。</p >
1265
+ 与 expression 互斥。
1266
+ </p >
1252
1267
</td >
1253
1268
</tr >
1254
1269
<tr ><td ><code >expression</code ><br />
@@ -1389,7 +1404,8 @@ TLSConfig 为连接 konnectivity 服务器提供身份认证信息。仅用于 T
1389
1404
<code >string</code >
1390
1405
</td >
1391
1406
<td >
1392
- <p ><!--
1407
+ <p >
1408
+ <!--
1393
1409
clientKey is the file location of the client key to be used in mtls handshakes with the konnectivity server.
1394
1410
Must be absent/empty if TCPTransport.URL is prefixed with http://
1395
1411
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
1594
1610
<a href =" https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration " ><code >meta/v1.Duration</code ></a >
1595
1611
</td >
1596
1612
<td >
1613
+ <p >
1597
1614
<!--
1598
- <p> The duration to cache 'authorized' responses from the webhook
1615
+ The duration to cache 'authorized' responses from the webhook
1599
1616
authorizer.
1600
1617
Same as setting <code>--authorization-webhook-cache-authorized-ttl</code> flag
1601
- Default: 5m0s</p>
1618
+ Default: 5m0s
1602
1619
-->
1603
- < p > 对来自 Webhook 鉴权组件的 “authorized” 响应的缓存时长。
1620
+ 对来自 Webhook 鉴权组件的 “authorized” 响应的缓存时长。
1604
1621
与设置 <code >--authorization-webhook-cache-authorized-ttl</code > 标志相同。
1605
- 默认值:5m0s。</p >
1622
+ 默认值:5m0s。
1623
+ </p >
1606
1624
</td >
1607
1625
</tr >
1608
1626
<tr ><td ><code >unauthorizedTTL</code > <B >[Required]</B ><br />
1609
1627
<a href =" https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration " ><code >meta/v1.Duration</code ></a >
1610
1628
</td >
1611
1629
<td >
1630
+ <p >
1612
1631
<!--
1613
- <p> The duration to cache 'unauthorized' responses from the webhook
1632
+ The duration to cache 'unauthorized' responses from the webhook
1614
1633
authorizer.
1615
1634
Same as setting <code>--authorization-webhook-cache-unauthorized-ttl</code> flag
1616
- Default: 30s</p>
1635
+ Default: 30s
1617
1636
-->
1618
- < p > 对来自 Webhook 鉴权组件的 “unauthorized” 响应的缓存时长。
1637
+ 对来自 Webhook 鉴权组件的 “unauthorized” 响应的缓存时长。
1619
1638
与设置 <code >--authorization-webhook-cache-unauthorized-ttl</code > 标志相同。
1620
- 默认值:30s</p >
1639
+ 默认值:30s
1640
+ </p >
1621
1641
1622
1642
</td >
1623
1643
</tr >
@@ -1641,17 +1661,19 @@ Required, no default value.
1641
1661
<code >string</code >
1642
1662
</td >
1643
1663
<td >
1664
+ <p >
1644
1665
<!--
1645
- <p> The API version of the authorization.k8s.io SubjectAccessReview to
1666
+ The API version of the authorization.k8s.io SubjectAccessReview to
1646
1667
send to and expect from the webhook.
1647
1668
Same as setting <code>--authorization-webhook-version</code> flag
1648
1669
Valid values: v1beta1, v1
1649
- Required, no default value</p>
1670
+ Required, no default value
1650
1671
-->
1651
- < p > 要发送到 Webhook 并期望从 Webhook 获得的 authorization.k8s.io SubjectAccessReview 的 API 版本。
1672
+ 要发送到 Webhook 并期望从 Webhook 获得的 authorization.k8s.io SubjectAccessReview 的 API 版本。
1652
1673
与设置 <code >--authorization-webhook-version</code > 标志相同。
1653
1674
有效值:v1beta1、v1。
1654
- 必需,无默认值</p >
1675
+ 必需,无默认值
1676
+ </p >
1655
1677
</td >
1656
1678
</tr >
1657
1679
<tr ><td ><code >matchConditionSubjectAccessReviewVersion</code > <B ><!-- [Required]--> [必需]</B ><br />
@@ -1814,18 +1836,40 @@ Required, if connectionInfo.Type is KubeConfig
1814
1836
<code >string</code >
1815
1837
</td >
1816
1838
<td >
1839
+ <p >
1817
1840
<!--
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.
1819
1842
CEL expressions have access to the contents of the SubjectAccessReview in v1 version.
1820
1843
If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
1821
1844
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>
1823
1845
-->
1824
- < p > expression 表示将由 CEL 求值的表达式。求值结果必须为布尔值。
1846
+ expression 表示将由 CEL 求值的表达式。求值结果必须为布尔值。
1825
1847
CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
1826
1848
如果请求变量中 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) && 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) && 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 >
1829
1873
</td >
1830
1874
</tr >
1831
1875
</tbody >
0 commit comments