Merge pull request #37387 from sergeyshevch/feat/34816/add-caution-about-rules-field-override

feat: Add caution note about rules field override
pull/38086/head
Kubernetes Prow Robot 2022-11-25 17:32:04 -08:00 committed by GitHub
commit 567edfe165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,12 @@ objects with an `aggregationRule` set. The `aggregationRule` defines a label
uses to match other ClusterRole objects that should be combined into the `rules`
field of this one.
{{< caution >}}
The control plane overwrites any values that you manually specify in the `rules` field of an
aggregate ClusterRole. If you want to change or add rules, do so in the `ClusterRole` objects
that are selected by the `aggregationRule`.
{{< /caution >}}
Here is an example aggregated ClusterRole:
```yaml