Merge pull request #29195 from rudeigerc/zh-fix-rbac

[zh] Fix tiny translation mistakes in RBAC
This commit is contained in:
Kubernetes Prow Robot 2021-08-02 17:39:50 -07:00 committed by GitHub
commit 31efd0ad3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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