File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
content/zh-cn/docs/reference/access-authn-authz Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -610,8 +610,6 @@ objects with an `aggregationRule` set. The `aggregationRule` defines a label
610
610
{{< glossary_tooltip text="selector" term_id="selector" >}} that the controller
611
611
uses to match other ClusterRole objects that should be combined into the `rules`
612
612
field of this one.
613
-
614
- Here is an example aggregated ClusterRole :
615
613
-->
616
614
# ## 聚合的 ClusterRole {#aggregated-clusterroles}
617
615
@@ -620,9 +618,19 @@ Here is an example aggregated ClusterRole:
620
618
为控制器定义一个标签{{< glossary_tooltip text="选择算符" term_id="selector" >}}供后者匹配应该组合到当前
621
619
ClusterRole 的 `roles` 字段中的 ClusterRole 对象。
622
620
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 >}}
624
630
625
631
<!--
632
+ Here is an example aggregated ClusterRole :
633
+
626
634
` ` ` yaml
627
635
apiVersion: rbac.authorization.k8s.io/v1
628
636
kind: ClusterRole
@@ -635,6 +643,8 @@ aggregationRule:
635
643
rules: [] # The control plane automatically fills in the rules
636
644
` ` `
637
645
-->
646
+ 下面是一个聚合 ClusterRole 的示例:
647
+
638
648
` ` ` yaml
639
649
apiVersion: rbac.authorization.k8s.io/v1
640
650
kind: ClusterRole
You can’t perform that action at this time.
0 commit comments