[zh] Fix tiny translation mistakes in RBAC
Signed-off-by: rudeigerc <rudeigerc@gmail.com>pull/29195/head
parent
c2b38df06f
commit
ae772a5a42
|
@ -244,7 +244,7 @@ metadata:
|
||||||
subjects:
|
subjects:
|
||||||
# 你可以指定不止一个“subject(主体)”
|
# 你可以指定不止一个“subject(主体)”
|
||||||
- kind: User
|
- kind: User
|
||||||
name: jane # "name" 是不区分大小写的
|
name: jane # "name" 是区分大小写的
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
roleRef:
|
roleRef:
|
||||||
# "roleRef" 指定与某 Role 或 ClusterRole 的绑定关系
|
# "roleRef" 指定与某 Role 或 ClusterRole 的绑定关系
|
||||||
|
@ -268,7 +268,7 @@ RoleBinding 所在名字空间的资源。这种引用使得你可以跨整个
|
||||||
之后在多个名字空间中复用。
|
之后在多个名字空间中复用。
|
||||||
|
|
||||||
例如,尽管下面的 RoleBinding 引用的是一个 ClusterRole,"dave"(这里的主体,
|
例如,尽管下面的 RoleBinding 引用的是一个 ClusterRole,"dave"(这里的主体,
|
||||||
不区分大小写)只能访问 "development" 名字空间中的 Secrets 对象,因为 RoleBinding
|
区分大小写)只能访问 "development" 名字空间中的 Secrets 对象,因为 RoleBinding
|
||||||
所在的名字空间(由其 metadata 决定)是 "development"。
|
所在的名字空间(由其 metadata 决定)是 "development"。
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -283,7 +283,7 @@ metadata:
|
||||||
namespace: development
|
namespace: development
|
||||||
subjects:
|
subjects:
|
||||||
- kind: User
|
- kind: User
|
||||||
name: dave # 'name' 是不区分大小写的
|
name: dave # 'name' 是区分大小写的
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -312,7 +312,7 @@ metadata:
|
||||||
name: read-secrets-global
|
name: read-secrets-global
|
||||||
subjects:
|
subjects:
|
||||||
- kind: Group
|
- kind: Group
|
||||||
name: manager # 'name' 是不区分大小写的
|
name: manager # 'name' 是区分大小写的
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
|
Loading…
Reference in New Issue