Merge pull request #51669 from zhangpeipei-dev/main

[zh] Add missing ClusterRole code sample in zh-cn RBAC docs
pull/51683/head
Kubernetes Prow Robot 2025-07-22 20:38:27 -07:00 committed by GitHub
commit 2a76253790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ or across all namespaces (depending on how it is [bound](#rolebinding-and-cluste
{{< glossary_tooltip text="Secret" term_id="secret" >}} 授予读访问权限,
或者跨名字空间的访问权限(取决于该角色是如何[绑定](#rolebinding-and-clusterrolebinding)的):
{{% code_sample file="access/simple-clusterrole.yaml" %}}
<!--
The name of a Role or a ClusterRole object must be a valid
[path segment name](/docs/concepts/overview/working-with-objects/names#path-segment-names).