Skip to content

Commit 2a76253

Browse files
authored
Merge pull request #51669 from zhangpeipei-dev/main
[zh] Add missing ClusterRole code sample in zh-cn RBAC docs
2 parents 67eefde + d16ea99 commit 2a76253

File tree

1 file changed

+2
-0
lines changed
  • content/zh-cn/docs/reference/access-authn-authz

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ or across all namespaces (depending on how it is [bound](#rolebinding-and-cluste
186186
{{< glossary_tooltip text="Secret" term_id="secret" >}} 授予读访问权限,
187187
或者跨名字空间的访问权限(取决于该角色是如何[绑定](#rolebinding-and-clusterrolebinding)的):
188188

189+
{{% code_sample file="access/simple-clusterrole.yaml" %}}
190+
189191
<!--
190192
The name of a Role or a ClusterRole object must be a valid
191193
[path segment name](/docs/concepts/overview/working-with-objects/names#path-segment-names).

0 commit comments

Comments
 (0)