Skip to content

Commit ba7dfe7

Browse files
committed
[zh-cn]sync extend-resources/*
Signed-off-by: xin.li <[email protected]>
1 parent 329de92 commit ba7dfe7

File tree

3 files changed

+81
-36
lines changed

3 files changed

+81
-36
lines changed

content/zh-cn/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版
759759
<!--
760760
format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
761761
762-
- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
762+
- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
763763
-->
764764
format 是 OpenAPI v3 格式字符串。未知格式将被忽略。以下格式会被验证合法性:
765765

@@ -779,7 +779,7 @@ JSONSchemaProps 是JSON 模式(JSON-Schema),遵循其规范草案第 4 版
779779
- isbn10:一个 ISBN10 数字字符串,如 "0321751043"
780780
- isbn13:一个 ISBN13 号码字符串,如 "978-0321751041"
781781
- creditcard:信用卡号码,满足正则表达式
782-
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$,
782+
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$,
783783
其中混合任意非数字字符
784784
- ssn:美国社会安全号码,满足正则表达式 ^\d{3}[- ]?\d{2}[- ]?\d{4}$
785785
- hexcolor:一个十六进制的颜色编码,如 "#FFFFFF",满足正则表达式 ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
@@ -1872,6 +1872,10 @@ DELETE /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}
18721872

18731873
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
18741874

1875+
- **ignoreStoreReadErrorWithClusterBreakingPotential** <!--(*in query*):-->**查询参数**):boolean
1876+
1877+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1878+
18751879
- **pretty** <!--(*in query*):-->**查询参数**):string
18761880

18771881
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
@@ -1925,6 +1929,10 @@ DELETE /apis/apiextensions.k8s.io/v1/customresourcedefinitions
19251929

19261930
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
19271931

1932+
- **ignoreStoreReadErrorWithClusterBreakingPotential** <!--(*in query*):-->**查询参数**):boolean
1933+
1934+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1935+
19281936
- **labelSelector** <!--(*in query*):-->**查询参数**):string
19291937

19301938
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>

content/zh-cn/docs/reference/kubernetes-api/extend-resources/mutating-webhook-configuration-v1.md

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
7878
AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.
7979
-->
8080

81-
- **webhooks.admissionReviewVersions** ([]string), 必需
81+
- **webhooks.admissionReviewVersions** ([]string)必需
8282

8383
**原子性:将在合并期间被替换**
8484

@@ -96,7 +96,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
9696
*WebhookClientConfig contains the information to make a TLS connection with the webhook*
9797
-->
9898

99-
- **webhooks.clientConfig** (WebhookClientConfig), 必需
99+
- **webhooks.clientConfig** (WebhookClientConfig)必需
100100

101101
clientConfig 定义了如何与 Webhook 通信。必需。
102102

@@ -139,7 +139,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
139139
`name` is the name of the service. Required
140140
-->
141141

142-
- **webhooks.clientConfig.service.name** (string), 必需
142+
- **webhooks.clientConfig.service.name** (string)必需
143143

144144
`name` 是服务的名称。必需。
145145

@@ -149,7 +149,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
149149
`namespace` is the namespace of the service. Required
150150
-->
151151

152-
- **webhooks.clientConfig.service.namespace** (string), 必需
152+
- **webhooks.clientConfig.service.namespace** (string)必需
153153

154154
`namespace` 是服务的命名空间。必需。
155155

@@ -213,7 +213,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
213213
The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
214214
-->
215215

216-
- **webhooks.name** (string), 必需
216+
- **webhooks.name** (string)必需
217217

218218
准入 Webhook 的名称。应该是完全限定的名称,例如 imagepolicy.kubernetes.io,其中 “imagepolicy” 是 Webhook 的名称,
219219
kubernetes.io 是组织的名称。必需。
@@ -224,7 +224,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
224224
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.
225225
-->
226226

227-
- **webhooks.sideEffects** (string), 必需
227+
- **webhooks.sideEffects** (string)必需
228228

229229
sideEffects 说明此 Webhook 是否有副作用。可接受的值为:None、NoneOnDryRun
230230
(通过 v1beta1 创建的 Webhook 也可以指定 Some 或 Unknown)。
@@ -293,7 +293,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
293293
Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
294294
-->
295295

296-
- **webhooks.matchConditions.expression** (string), 必需
296+
- **webhooks.matchConditions.expression** (string)必需
297297

298298
expression 表示将由 CEL 求值的表达式。求值结果必须是 bool 值。CEL 表达式可以访问
299299
以 CEL 变量的形式给出的 AdmissionRequest 和 Authorizer 的内容:
@@ -335,7 +335,7 @@ MutatingWebhookConfiguration 描述准入 Webhook 的配置,该 Webhook 可接
335335
Required.
336336
-->
337337
338-
- **webhooks.matchConditions.name** (string), 必需
338+
- **webhooks.matchConditions.name** (string)必需
339339

340340
name 是此匹配条件的标识符,用于 MatchConditions 的策略性合并,
341341
以及提供用于日志目的的标识符。一个好的 name 应该是对相关表达式的描述。
@@ -633,7 +633,7 @@ MutatingWebhookConfigurationList 是 MutatingWebhookConfiguration 的列表。
633633
List of MutatingWebhookConfiguration.
634634
-->
635635
636-
- **items** ([]<a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>), 必需
636+
- **items** ([]<a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>)必需
637637
638638
MutatingWebhookConfiguration 列表。
639639
@@ -664,7 +664,7 @@ GET /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}
664664
-->
665665
#### 参数
666666
667-
- **name**(**路径参数**):string, 必需
667+
- **name**(**路径参数**):string必需
668668
669669
MutatingWebhookConfiguration 的名称。
670670
@@ -839,7 +839,7 @@ POST /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations
839839
-->
840840
#### 参数
841841
842-
- **body**: <a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>, 必需
842+
- **body**: <a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>必需
843843
844844
<!--
845845
- **dryRun** (*in query*): string
@@ -914,15 +914,15 @@ PUT /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}
914914
-->
915915
#### 参数
916916
917-
- **name**(**路径参数**):string, 必需
917+
- **name**(**路径参数**):string必需
918918
919919
MutatingWebhookConfiguration 的名称。
920920
921921
<!--
922922
- **body**: <a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>, required
923923
-->
924924
925-
- **body**: <a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>, 必需
925+
- **body**: <a href="{{< ref "../extend-resources/mutating-webhook-configuration-v1#MutatingWebhookConfiguration" >}}">MutatingWebhookConfiguration</a>必需
926926
927927
<!--
928928
- **dryRun** (*in query*): string
@@ -995,15 +995,15 @@ PATCH /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}
995995
-->
996996
#### 参数
997997
998-
- **name**(**路径参数**):string, 必需
998+
- **name**(**路径参数**):string必需
999999
10001000
MutatingWebhookConfiguration 的名称。
10011001
10021002
<!--
10031003
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
10041004
-->
10051005
1006-
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, 必需
1006+
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>必需
10071007
10081008
<!--
10091009
- **dryRun** (*in query*): string
@@ -1086,7 +1086,7 @@ DELETE /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name
10861086
-->
10871087
#### 参数
10881088
1089-
- **name**(**路径参数**):string, 必需
1089+
- **name**(**路径参数**):string必需
10901090
10911091
MutatingWebhookConfiguration 的名称。
10921092
@@ -1112,6 +1112,15 @@ DELETE /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name
11121112
11131113
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
11141114
1115+
<!--
1116+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
1117+
1118+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1119+
-->
1120+
- **ignoreStoreReadErrorWithClusterBreakingPotential**(**查询参数**):boolean
1121+
1122+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1123+
11151124
<!--
11161125
- **pretty** (*in query*): string
11171126
@@ -1201,6 +1210,15 @@ DELETE /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations
12011210
12021211
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
12031212
1213+
<!--
1214+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
1215+
1216+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1217+
-->
1218+
- **ignoreStoreReadErrorWithClusterBreakingPotential**(**查询参数**):boolean
1219+
1220+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1221+
12041222
<!--
12051223
- **labelSelector** (*in query*): string
12061224

0 commit comments

Comments
 (0)