@@ -24,10 +24,9 @@ auto_generated: true
2424
2525` import "k8s.io/api/rbac/v1" `
2626
27- <!--
27+ <!--
2828## ClusterRole {#ClusterRole}
2929ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
30- <hr>
3130-->
3231## ClusterRole {#ClusterRole}
3332
@@ -56,18 +55,18 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
5655 标准的对象元数据。
5756
5857- ** aggregationRule** (AggregationRule)
59-
60- aggregationRule 是一个可选字段,用于描述如何构建这个 ClusterRole 的 rules。
61- 如果设置了 aggregationRule,则 rules 将由控制器管理,对 rules 的直接变更会被该控制器阻止。
62-
58+
59+ ` aggregationRule ` 是一个可选字段,用于描述如何构建这个 ClusterRole 的 ` rules ` 。
60+ 如果设置了 ` aggregationRule ` ,则 ` rules ` 将由控制器管理,对 ` rules ` 的直接变更会被该控制器阻止。
61+
6362 <a name =" AggregationRule " ></a >
6463 ** aggregationRule 描述如何定位并聚合其它 ClusterRole 到此 ClusterRole。**
65-
64+
6665 - ** aggregationRule.clusterRoleSelectors** ([ ] <a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a >)
6766
6867 ** 原子:将在合并期间被替换**
69-
70- clusterRoleSelectors 包含一个选择器的列表,用于查找 ClusterRole 并创建规则。
68+
69+ ` clusterRoleSelectors ` 包含一个选择器的列表,用于查找 ClusterRole 并创建规则。
7170 如果发现任何选择器匹配的 ClusterRole,将添加其对应的权限。
7271
7372<!--
@@ -96,34 +95,34 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
9695
9796 ** 原子:将在合并期间被替换**
9897
99- rules 包含了这个 ClusterRole 的所有 PolicyRule。
100-
98+ ` rules ` 包含了这个 ClusterRole 的所有 PolicyRule。
99+
101100 <a name =" PolicyRule " ></a >
102101 ** PolicyRule 包含描述一个策略规则的信息,但不包含该规则适用于哪个主体或适用于哪个命名空间的信息。**
103-
102+
104103 - ** rules.apiGroups** ([ ] string)
105104
106105 ** 原子:将在合并期间被替换**
107106
108- apiGroups 是包含资源的 apiGroup 的名称。
107+ ` apiGroups ` 是包含资源的 apiGroup 的名称。
109108 如果指定了多个 API 组,则允许针对任何 API 组中的其中一个枚举资源来请求任何操作。
110109 "" 表示核心 API 组,“* ” 表示所有 API 组。
111-
110+
112111 - ** rules.resources** ([ ] string)
113112
114113 ** 原子:将在合并期间被替换**
115114
116- resources 是此规则所适用的资源的列表。“* ” 表示所有资源。
115+ ` resources ` 是此规则所适用的资源的列表。“* ” 表示所有资源。
117116
118117 <!--
119118 - **rules.verbs** ([]string), required
120-
119+
121120 *Atomic: will be replaced during a merge*
122121
123122 Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
124123
125124 - **rules.resourceNames** ([]string)
126-
125+
127126 *Atomic: will be replaced during a merge*
128127
129128 ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
@@ -139,16 +138,16 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
139138
140139 ** 原子:将在合并期间被替换**
141140
142- verbs 是适用于此规则中所包含的所有 ResourceKinds 的动作。
141+ ` verbs ` 是适用于此规则中所包含的所有 ResourceKinds 的动作。
143142 “* ” 表示所有动作。
144-
143+
145144 - ** rules.resourceNames** ([ ] string)
146145
147146 ** 原子:将在合并期间被替换**
148147
149- resourceNames 是此规则所适用的资源名称白名单,可选。
148+ ` resourceNames ` 是此规则所适用的资源名称白名单,可选。
150149 空集合意味着允许所有资源。
151-
150+
152151 - ** rules.nonResourceURLs** ([ ] string)
153152
154153 ** 原子:将在合并期间被替换**
@@ -160,13 +159,10 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
160159 rules 可以应用到 API 资源(如 “pod” 或 “secret”)或非资源 URL 路径(如 “/api”),
161160 但不能同时应用于两者。
162161
163- <!--
164162## ClusterRoleList {#ClusterRoleList}
165-
163+ <!--
166164ClusterRoleList is a collection of ClusterRoles
167165-->
168- ## ClusterRoleList {#ClusterRoleList}
169-
170166ClusterRoleList 是 ClusterRole 的集合。
171167
172168<hr >
@@ -189,8 +185,8 @@ ClusterRoleList 是 ClusterRole 的集合。
189185 标准的对象元数据。
190186
191187- ** items** ([ ] <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a >),必需
192-
193- items 是 ClusterRole 的列表。
188+
189+ ` items ` 是 ClusterRole 的列表。
194190
195191<!--
196192## Operations {#Operations}
@@ -221,11 +217,11 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
221217#### 参数
222218
223219- ** name** (** 路径参数** ):string,必需
224-
220+
225221 ClusterRole 的名称
226222
227223- ** pretty** (** 查询参数** ):string
228-
224+
229225 <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a >
230226
231227<!--
@@ -257,53 +253,59 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles
257253- **pretty** (*in query*): string
258254- **resourceVersion** (*in query*): string
259255- **resourceVersionMatch** (*in query*): string
256+ - **sendInitialEvents** (*in query*): boolean
257+ - **shardSelector** (*in query*): string
260258- **timeoutSeconds** (*in query*): integer
261259- **watch** (*in query*): boolean
262260-->
263261#### 参数
264262
265263- ** allowWatchBookmarks** (** 查询参数** ):boolean
266-
264+
267265 <a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a >
268266
269267- ** continue** (** 查询参数** ):string
270-
268+
271269 <a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a >
272270
273271- ** fieldSelector** (** 查询参数** ):string
274-
272+
275273 <a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a >
276274
277275- ** labelSelector** (** 查询参数** ):string
278-
276+
279277 <a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a >
280278
281279- ** limit** (** 查询参数** ):integer
282-
280+
283281 <a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a >
284282
285283- ** pretty** (** 查询参数** ):string
286-
284+
287285 <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a >
288286
289287- ** resourceVersion** (** 查询参数** ):string
290-
288+
291289 <a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a >
292290
293291- ** resourceVersionMatch** (** 查询参数** ):string
294-
292+
295293 <a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a >
296294
297295- ** sendInitialEvents** (** 查询参数** ): boolean
298296
299297 <a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a >
300298
299+ - ** shardSelector** (** 查询参数** ): string
300+
301+ <a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a >
302+
301303- ** timeoutSeconds** (** 查询参数** ):integer
302-
304+
303305 <a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a >
304306
305307- ** watch** (** 查询参数** ):boolean
306-
308+
307309 <a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a >
308310
309311<!--
@@ -338,19 +340,19 @@ POST /apis/rbac.authorization.k8s.io/v1/clusterroles
338340- ** body** :<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a >,必需
339341
340342- ** dryRun** (** 查询参数** ):string
341-
343+
342344 <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a >
343345
344346- ** fieldManager** (** 查询参数** ):string
345-
347+
346348 <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a >
347349
348350- ** fieldValidation** (** 查询参数** ):string
349-
351+
350352 <a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a >
351353
352354- ** pretty** (** 查询参数** ):string
353-
355+
354356 <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a >
355357
356358<!--
@@ -389,17 +391,17 @@ PUT /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
389391#### 参数
390392
391393- ** name** (** 路径参数** ):string,必需
392-
394+
393395 ClusterRole 的名称
394396
395397- ** body** :<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a >,必需
396398
397399- ** dryRun** (** 查询参数** ):string
398-
400+
399401 <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a >
400402
401403- ** fieldManager** (** 查询参数** ):string
402-
404+
403405 <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a >
404406
405407- ** fieldValidation** (** 查询参数** ):string
@@ -565,6 +567,8 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles
565567- **propagationPolicy** (*in query*): string
566568- **resourceVersion** (*in query*): string
567569- **resourceVersionMatch** (*in query*): string
570+ - **sendInitialEvents** (*in query*): boolean
571+ - **shardSelector** (*in query*): string
568572- **timeoutSeconds** (*in query*): integer
569573-->
570574#### 参数
@@ -619,6 +623,10 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles
619623
620624 <a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a >
621625
626+ - ** shardSelector** (** 查询参数** ): string
627+
628+ <a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a >
629+
622630- ** timeoutSeconds** (** 查询参数** ):integer
623631
624632 <a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a >
0 commit comments