Merge pull request #36302 from windsonsea/cluroley

[zh-cn] sync1.25 cluster-role-v1.md
This commit is contained in:
Kubernetes Prow Robot 2022-08-25 19:26:10 -07:00 committed by GitHub
commit 7424ed52c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 87 additions and 97 deletions

View File

@ -7,10 +7,8 @@ content_type: "api_reference"
description: "ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,可以被 RoleBinding 或 ClusterRoleBinding 作为一个单元引用。" description: "ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,可以被 RoleBinding 或 ClusterRoleBinding 作为一个单元引用。"
title: "ClusterRole" title: "ClusterRole"
weight: 5 weight: 5
auto_generated: false
--- ---
<!-- <!--
---
api_metadata: api_metadata:
apiVersion: "rbac.authorization.k8s.io/v1" apiVersion: "rbac.authorization.k8s.io/v1"
import: "k8s.io/api/rbac/v1" import: "k8s.io/api/rbac/v1"
@ -20,12 +18,12 @@ description: "ClusterRole is a cluster level, logical grouping of PolicyRules th
title: "ClusterRole" title: "ClusterRole"
weight: 5 weight: 5
auto_generated: true auto_generated: true
---
--> -->
`apiVersion: rbac.authorization.k8s.io/v1` `apiVersion: rbac.authorization.k8s.io/v1`
`import "k8s.io/api/rbac/v1"` `import "k8s.io/api/rbac/v1"`
<!-- <!--
## ClusterRole {#ClusterRole} ## ClusterRole {#ClusterRole}
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
@ -42,8 +40,8 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
- **kind**: ClusterRole - **kind**: ClusterRole
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
<!-- <!--
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
Standard object's metadata. Standard object's metadata.
- **aggregationRule** (AggregationRule) - **aggregationRule** (AggregationRule)
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
@ -52,6 +50,8 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
- **aggregationRule.clusterRoleSelectors** ([]<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>) - **aggregationRule.clusterRoleSelectors** ([]<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>)
ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
--> -->
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
标准的对象元数据。 标准的对象元数据。
- **aggregationRule** (AggregationRule) - **aggregationRule** (AggregationRule)
@ -60,12 +60,13 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
如果设置了 aggregationRule则 rules 将由控制器管理,对 rules 的直接变更会被该控制器阻止。 如果设置了 aggregationRule则 rules 将由控制器管理,对 rules 的直接变更会被该控制器阻止。
<a name="AggregationRule"></a> <a name="AggregationRule"></a>
**aggregationRule 描述如何定位并聚合其它 ClusterRole 到此 ClusterRole** **aggregationRule 描述如何定位并聚合其它 ClusterRole 到此 ClusterRole**
- **aggregationRule.clusterRoleSelectors** ([]<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>) - **aggregationRule.clusterRoleSelectors** ([]<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>)
clusterRoleSelectors 包含一个选择器的列表,用于查找 ClusterRole 并创建规则。 clusterRoleSelectors 包含一个选择器的列表,用于查找 ClusterRole 并创建规则。
如果发现任何选择器匹配的 ClusterRole将添加其对应的权限。 如果发现任何选择器匹配的 ClusterRole将添加其对应的权限。
<!-- <!--
- **rules** ([]PolicyRule) - **rules** ([]PolicyRule)
Rules holds all the PolicyRules for this ClusterRole Rules holds all the PolicyRules for this ClusterRole
@ -74,7 +75,7 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
*PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.* *PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.*
- **rules.apiGroups** ([]string) - **rules.apiGroups** ([]string)
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups.
- **rules.resources** ([]string) - **rules.resources** ([]string)
Resources is a list of resources this rule applies to. '*' represents all resources. Resources is a list of resources this rule applies to. '*' represents all resources.
@ -90,12 +91,14 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
apiGroups 是包含资源的 apiGroup 的名称。 apiGroups 是包含资源的 apiGroup 的名称。
如果指定了多个 API 组,则允许针对任何 API 组中的其中一个枚举资源来请求任何操作。 如果指定了多个 API 组,则允许针对任何 API 组中的其中一个枚举资源来请求任何操作。
"" 表示核心 API 组,“*” 表示所有 API 组。
- **rules.resources** ([]string) - **rules.resources** ([]string)
resources 是此规则所适用的资源的列表。“*” 表示所有资源。 resources 是此规则所适用的资源的列表。“*” 表示所有资源。
<!-- <!--
- **rules.verbs** ([]string), required - **rules.verbs** ([]string), required
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
- **rules.resourceNames** ([]string) - **rules.resourceNames** ([]string)
@ -104,6 +107,7 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
- **rules.nonResourceURLs** ([]string) - **rules.nonResourceURLs** ([]string)
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
--> -->
- **rules.verbs** ([]string),必需 - **rules.verbs** ([]string),必需
verbs 是适用于此规则中所包含的所有 ResourceKinds 的动作。 verbs 是适用于此规则中所包含的所有 ResourceKinds 的动作。
@ -122,6 +126,7 @@ ClusterRole 是一个集群级别的 PolicyRule 逻辑分组,
此字段仅适用于从 ClusterRoleBinding 引用的 ClusterRole。 此字段仅适用于从 ClusterRoleBinding 引用的 ClusterRole。
rules 可以应用到 API 资源(如 “pod” 或 “secret”或非资源 URL 路径(如 “/api” rules 可以应用到 API 资源(如 “pod” 或 “secret”或非资源 URL 路径(如 “/api”
但不能同时应用于两者。 但不能同时应用于两者。
<!-- <!--
## ClusterRoleList {#ClusterRoleList} ## ClusterRoleList {#ClusterRoleList}
@ -137,19 +142,23 @@ ClusterRoleList 是 ClusterRole 的集合。
- **kind**: ClusterRoleList - **kind**: ClusterRoleList
<!--
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>) - **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
<!--
Standard object's metadata. Standard object's metadata.
- **items** ([]<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>), required - **items** ([]<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>), required
Items is a list of ClusterRoles
-->
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
Items is a list of ClusterRoles
-->
标准的对象元数据。 标准的对象元数据。
- **items** ([]<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>),必需 - **items** ([]<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>),必需
items 是 ClusterRole 的列表。 items 是 ClusterRole 的列表。
<!-- <!--
## Operations {#Operations} ## Operations {#Operations}
--> -->
@ -166,6 +175,7 @@ ClusterRoleList 是 ClusterRole 的集合。
#### HTTP 请求 #### HTTP 请求
GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
<!-- <!--
#### Parameters #### Parameters
@ -177,11 +187,11 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
--> -->
#### 参数 #### 参数
- **name** (路径参数): string必需 - **name****路径参数**string必需
ClusterRole 的名称 ClusterRole 的名称
- **pretty** (查询参数): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
@ -193,6 +203,7 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
200 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): OK 200 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): OK
401: Unauthorized 401: Unauthorized
<!-- <!--
### `list` list or watch objects of kind ClusterRole ### `list` list or watch objects of kind ClusterRole
#### HTTP Request #### HTTP Request
@ -202,70 +213,62 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
#### HTTP 请求 #### HTTP 请求
GET /apis/rbac.authorization.k8s.io/v1/clusterroles GET /apis/rbac.authorization.k8s.io/v1/clusterroles
<!-- <!--
#### Parameters #### Parameters
- **allowWatchBookmarks** (*in query*): boolean - **allowWatchBookmarks** (*in query*): boolean
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
- **continue** (*in query*): string - **continue** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
- **fieldSelector** (*in query*): string - **fieldSelector** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
- **labelSelector** (*in query*): string - **labelSelector** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
- **limit** (*in query*): integer - **limit** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **resourceVersion** (*in query*): string - **resourceVersion** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
- **resourceVersionMatch** (*in query*): string - **resourceVersionMatch** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **timeoutSeconds** (*in query*): integer - **timeoutSeconds** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
- **watch** (*in query*): boolean - **watch** (*in query*): boolean
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
--> -->
#### 参数 #### 参数
- **allowWatchBookmarks** (**查询参数**): boolean - **allowWatchBookmarks****查询参数**boolean
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a> <a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
- **continue** (**查询参数**): string - **continue****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a> <a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
- **fieldSelector** (**查询参数**): string - **fieldSelector****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a> <a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
- **labelSelector** (**查询参数**): string - **labelSelector****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a> <a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
- **limit** (**查询参数**): integer - **limit****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a> <a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **resourceVersion** (**查询参数**): string - **resourceVersion****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a> <a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
- **resourceVersionMatch** (**查询参数**): string - **resourceVersionMatch****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a> <a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **timeoutSeconds** (**查询参数**): integer - **timeoutSeconds****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a> <a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
- **watch** (**查询参数**): boolean - **watch****查询参数**boolean
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a> <a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
<!-- <!--
#### Response #### Response
--> -->
@ -274,6 +277,7 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles
200 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRoleList" >}}">ClusterRoleList</a>): OK 200 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRoleList" >}}">ClusterRoleList</a>): OK
401: Unauthorized 401: Unauthorized
<!-- <!--
### `create` create a ClusterRole ### `create` create a ClusterRole
#### HTTP Request #### HTTP Request
@ -283,37 +287,35 @@ GET /apis/rbac.authorization.k8s.io/v1/clusterroles
#### HTTP 请求 #### HTTP 请求
POST /apis/rbac.authorization.k8s.io/v1/clusterroles POST /apis/rbac.authorization.k8s.io/v1/clusterroles
<!-- <!--
#### Parameters #### Parameters
- **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>, required - **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>, required
- **dryRun** (*in query*): string - **dryRun** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (*in query*): string - **fieldManager** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (*in query*): string - **fieldValidation** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
--> -->
#### 参数 #### 参数
- **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>,必需 - **body**<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>,必需
- **dryRun** (**查询参数**): string - **dryRun****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (**查询参数**): string - **fieldManager****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a> <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (**查询参数**): string - **fieldValidation****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a> <a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
<!-- <!--
#### Response #### Response
--> -->
@ -326,6 +328,7 @@ POST /apis/rbac.authorization.k8s.io/v1/clusterroles
202 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Accepted 202 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Accepted
401: Unauthorized 401: Unauthorized
<!-- <!--
### `update` replace the specified ClusterRole ### `update` replace the specified ClusterRole
#### HTTP Request #### HTTP Request
@ -335,43 +338,41 @@ POST /apis/rbac.authorization.k8s.io/v1/clusterroles
#### HTTP 请求 #### HTTP 请求
PUT /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} PUT /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
<!-- <!--
#### Parameters #### Parameters
- **name** (*in path*): string, required - **name** (*in path*): string, required
name of the ClusterRole name of the ClusterRole
- **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>, required - **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>, required
- **dryRun** (*in query*): string - **dryRun** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (*in query*): string - **fieldManager** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (*in query*): string - **fieldValidation** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
--> -->
#### 参数 #### 参数
- **name** (**路径参数**): string必需 - **name****路径参数**string必需
ClusterRole 的名称 ClusterRole 的名称
- **body**: <a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>,必需 - **body**<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>,必需
- **dryRun** (**查询参数**): string - **dryRun****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (**查询参数**): string - **fieldManager****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a> <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (**查询参数**): string - **fieldValidation****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a> <a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
<!-- <!--
#### Response #### Response
--> -->
@ -382,6 +383,7 @@ PUT /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
201 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Created 201 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Created
401: Unauthorized 401: Unauthorized
<!-- <!--
### `patch` partially update the specified ClusterRole ### `patch` partially update the specified ClusterRole
#### HTTP Request #### HTTP Request
@ -391,49 +393,46 @@ PUT /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
#### HTTP 请求 #### HTTP 请求
PATCH /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} PATCH /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
<!-- <!--
#### Parameters #### Parameters
- **name** (*in path*): string, required - **name** (*in path*): string, required
name of the ClusterRole name of the ClusterRole
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required - **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
- **dryRun** (*in query*): string - **dryRun** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (*in query*): string - **fieldManager** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (*in query*): string - **fieldValidation** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **force** (*in query*): boolean - **force** (*in query*): boolean
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
--> -->
#### 参数 #### 参数
- **name** (**路径参数**): string必需 - **name****路径参数**string必需
ClusterRole 的名称 ClusterRole 的名称
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需 - **body**<a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
- **dryRun** (**查询参数**): string - **dryRun****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldManager** (**查询参数**): string - **fieldManager****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a> <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
- **fieldValidation** (**查询参数**): string - **fieldValidation****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a> <a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
- **force** (**查询参数**): boolean - **force****查询参数**boolean
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a> <a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
<!-- <!--
#### Response #### Response
--> -->
@ -444,6 +443,7 @@ PATCH /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
201 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Created 201 (<a href="{{< ref "../authorization-resources/cluster-role-v1#ClusterRole" >}}">ClusterRole</a>): Created
401: Unauthorized 401: Unauthorized
<!-- <!--
### `delete` delete a ClusterRole ### `delete` delete a ClusterRole
#### HTTP Request #### HTTP Request
@ -453,43 +453,41 @@ PATCH /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
#### HTTP 请求 #### HTTP 请求
DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
<!-- <!--
#### Parameters #### Parameters
- **name** (*in path*): string, required - **name** (*in path*): string, required
name of the ClusterRole name of the ClusterRole
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a> - **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
- **dryRun** (*in query*): string - **dryRun** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **gracePeriodSeconds** (*in query*): integer - **gracePeriodSeconds** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **propagationPolicy** (*in query*): string - **propagationPolicy** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
--> -->
#### 参数 #### 参数
- **name** (**路径参数**): string必需 - **name****路径参数**string必需
ClusterRole 的名称 ClusterRole 的名称
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a> - **body**<a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
- **dryRun** (**查询参数**): string - **dryRun****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **gracePeriodSeconds** (**查询参数**): integer - **gracePeriodSeconds****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a> <a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **propagationPolicy** (**查询参数**): string - **propagationPolicy****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a> <a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
<!-- <!--
#### Response #### Response
--> -->
@ -500,6 +498,7 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted 202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted
401: Unauthorized 401: Unauthorized
<!-- <!--
### `deletecollection` delete collection of ClusterRole ### `deletecollection` delete collection of ClusterRole
#### HTTP Request #### HTTP Request
@ -509,79 +508,70 @@ DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}
#### HTTP 请求 #### HTTP 请求
DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles DELETE /apis/rbac.authorization.k8s.io/v1/clusterroles
<!-- <!--
#### Parameters #### Parameters
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a> - **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
- **continue** (*in query*): string - **continue** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
- **dryRun** (*in query*): string - **dryRun** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldSelector** (*in query*): string - **fieldSelector** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
- **gracePeriodSeconds** (*in query*): integer - **gracePeriodSeconds** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
- **labelSelector** (*in query*): string - **labelSelector** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
- **limit** (*in query*): integer - **limit** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
- **pretty** (*in query*): string - **pretty** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **propagationPolicy** (*in query*): string - **propagationPolicy** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
- **resourceVersion** (*in query*): string - **resourceVersion** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
- **resourceVersionMatch** (*in query*): string - **resourceVersionMatch** (*in query*): string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **timeoutSeconds** (*in query*): integer - **timeoutSeconds** (*in query*): integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
--> -->
#### 参数 #### 参数
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a> - **body**<a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
- **continue** (**查询参数**): string - **continue****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a> <a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
- **dryRun** (**查询参数**): string - **dryRun****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
- **fieldSelector** (**查询参数**): string - **fieldSelector****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a> <a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
- **gracePeriodSeconds** (**查询参数**): integer - **gracePeriodSeconds****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a> <a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
- **labelSelector** (**查询参数**): string - **labelSelector****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a> <a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
- **limit** (**查询参数**): integer - **limit****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a> <a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
- **pretty** (**查询参数**): string - **pretty****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
- **propagationPolicy** (**查询参数**): string - **propagationPolicy****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a> <a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
- **resourceVersion** (**查询参数**): string - **resourceVersion****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a> <a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
- **resourceVersionMatch** (**查询参数**): string - **resourceVersionMatch****查询参数**string
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a> <a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **timeoutSeconds** (**查询参数**): integer - **timeoutSeconds****查询参数**integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a> <a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
<!-- <!--
#### Response #### Response
--> -->