Skip to content

Commit 19807f8

Browse files
Abirdcflyliggitt
andauthored
Update content/en/docs/reference/access-authn-authz/rbac.md
Co-authored-by: Jordan Liggitt <[email protected]>
1 parent 162da65 commit 19807f8

File tree

1 file changed

+2
-1
lines changed
  • content/en/docs/reference/access-authn-authz

1 file changed

+2
-1
lines changed

content/en/docs/reference/access-authn-authz/rbac.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ rules:
281281
{{< note >}}
282282
You cannot restrict `create` or `deletecollection` requests by their resource name.
283283
For `create`, this limitation is because the name of the new object may not be known at authorization time.
284-
If you restrict `list` or `watch` by resourceName, then the only way that a client including kubectl can perform that `list` or `watch` is by specifying a field selector that matches on metadata.name.
284+
If you restrict `list` or `watch` by resourceName, clients must include a `metadata.name` field selector in their `list` or `watch` request that matches the specified resourceName in order to be authorized.
285+
For example, `kubectl get configmaps --field-selector=metadata.name=my-configmap`
285286
{{< /note >}}
286287

287288

0 commit comments

Comments
 (0)