Skip to content

Commit 927d902

Browse files
authored
Merge pull request #38776 from gaogao101/work69
[zh-cn] sync rbac.md
2 parents 02815fe + 7ad370e commit 927d902

File tree

1 file changed

+13
-3
lines changed
  • content/zh-cn/docs/reference/access-authn-authz

1 file changed

+13
-3
lines changed

content/zh-cn/docs/reference/access-authn-authz/rbac.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,6 @@ objects with an `aggregationRule` set. The `aggregationRule` defines a label
610610
{{< glossary_tooltip text="selector" term_id="selector" >}} that the controller
611611
uses to match other ClusterRole objects that should be combined into the `rules`
612612
field of this one.
613-
614-
Here is an example aggregated ClusterRole:
615613
-->
616614
### 聚合的 ClusterRole {#aggregated-clusterroles}
617615

@@ -620,9 +618,19 @@ Here is an example aggregated ClusterRole:
620618
为控制器定义一个标签{{< glossary_tooltip text="选择算符" term_id="selector" >}}供后者匹配应该组合到当前
621619
ClusterRole 的 `roles` 字段中的 ClusterRole 对象。
622620

623-
下面是一个聚合 ClusterRole 的示例:
621+
{{< caution >}}
622+
<!--
623+
The control plane overwrites any values that you manually specify in the `rules` field of an
624+
aggregate ClusterRole. If you want to change or add rules, do so in the `ClusterRole` objects
625+
that are selected by the `aggregationRule`.
626+
-->
627+
控制平面会覆盖你在聚合 ClusterRole 的 `rules` 字段中手动指定的所有值。
628+
如果你想更改或添加规则,请在被 `aggregationRule` 所选中的 `ClusterRole` 对象上执行变更。
629+
{{< /caution >}}
624630

625631
<!--
632+
Here is an example aggregated ClusterRole:
633+
626634
```yaml
627635
apiVersion: rbac.authorization.k8s.io/v1
628636
kind: ClusterRole
@@ -635,6 +643,8 @@ aggregationRule:
635643
rules: [] # The control plane automatically fills in the rules
636644
```
637645
-->
646+
下面是一个聚合 ClusterRole 的示例:
647+
638648
```yaml
639649
apiVersion: rbac.authorization.k8s.io/v1
640650
kind: ClusterRole

0 commit comments

Comments
 (0)