From 7a175d551a83521a64ee908ec9ec57e01f9f3979 Mon Sep 17 00:00:00 2001 From: Rajesh Jain <73859950+rjain21@users.noreply.github.com> Date: Sat, 26 Dec 2020 13:41:02 -0800 Subject: [PATCH] Update rbac.md The language "For all service accounts in the "qa" namespace" in the example is confusing namespaces and groups. Language fixed to disambiguate between group and namespace. An additional example provided which uses both the group ("dev") AND the namespace ("development") to further illustrate this point --- content/en/docs/reference/access-authn-authz/rbac.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/content/en/docs/reference/access-authn-authz/rbac.md b/content/en/docs/reference/access-authn-authz/rbac.md index 8ff03a171c..d3e6dc118e 100644 --- a/content/en/docs/reference/access-authn-authz/rbac.md +++ b/content/en/docs/reference/access-authn-authz/rbac.md @@ -514,7 +514,7 @@ subjects: namespace: kube-system ``` -For all service accounts in the "qa" namespace: +For all service accounts in the "qa" group in any namespace: ```yaml subjects: @@ -522,6 +522,15 @@ subjects: name: system:serviceaccounts:qa apiGroup: rbac.authorization.k8s.io ``` +For all service accounts in the "dev" group in the "development" namespace: + +```yaml +subjects: +- kind: Group + name: system:serviceaccounts:dev + apiGroup: rbac.authorization.k8s.io + namespace: development +``` For all service accounts in any namespace: