Skip to content

Commit 162da65

Browse files
committed
Update rbac.md: Describe in detail how to specify resourceNames when using list/watch verbs
1 parent 4f203c6 commit 162da65

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ rules:
279279
```
280280

281281
{{< note >}}
282-
You cannot restrict `create` or `deletecollection` requests by resourceName. For `create`, this
283-
limitation is because the object name is not known at authorization time.
282+
You cannot restrict `create` or `deletecollection` requests by their resource name.
283+
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.
284285
{{< /note >}}
285286

286287

0 commit comments

Comments
 (0)