Skip to content

Commit 2566c4f

Browse files
authored
Merge pull request #40397 from wuyanpinguniontech/main
[zh]fix zh-cn/docs/reference/kubernetes-api/authorization-resources/r…
2 parents 25a253e + ff68b0c commit 2566c4f

File tree

1 file changed

+10
-11
lines changed
  • content/zh-cn/docs/reference/kubernetes-api/authorization-resources

1 file changed

+10
-11
lines changed

content/zh-cn/docs/reference/kubernetes-api/authorization-resources/role-v1.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Role 是一个按命名空间划分的 PolicyRule 逻辑分组,可以被 RoleB
3939

4040
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
4141

42+
标准的对象元数据。
4243
<!--
4344
Standard object's metadata.
4445
@@ -53,8 +54,16 @@ Standard object's metadata.
5354
5455
- **rules.resources** ([]string)
5556
Resources is a list of resources this rule applies to. '*' represents all resources.
57+
58+
- **rules.verbs** ([]string), required
59+
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
60+
61+
- **rules.resourceNames** ([]string)
62+
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
63+
64+
- **rules.nonResourceURLs** ([]string)
65+
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.
5666
-->
57-
标准的对象元数据。
5867

5968
- **rules** ([]PolicyRule)
6069

@@ -74,16 +83,6 @@ Standard object's metadata.
7483
resources 是此规则所适用的资源的列表。
7584
*” 表示所有资源。
7685

77-
<!--
78-
- **rules.verbs** ([]string), required
79-
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
80-
81-
- **rules.resourceNames** ([]string)
82-
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
83-
84-
- **rules.nonResourceURLs** ([]string)
85-
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.
86-
-->
8786
- **rules.verbs** ([]string),必需
8887

8988
verbs 是适用于此规则中所包含的所有 ResourceKinds 的动作。

0 commit comments

Comments
 (0)