Skip to content

Commit 9e3a5c6

Browse files
author
Chao Xu
committed
update docs/authorization.md to v1beta3
1 parent f53c55a commit 9e3a5c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/authorization.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A request has 4 attributes that can be considered for authorization:
3030
- whether the request is readonly (GETs are readonly)
3131
- what resource is being accessed
3232
- applies only to the API endpoints, such as
33-
`/api/v1beta1/pods`. For miscelaneous endpoints, like `/version`, the
33+
`/api/v1beta3/namespaces/default/pods`. For miscelaneous endpoints, like `/version`, the
3434
resource is the empty string.
3535
- the namespace of the object being access, or the empty string if the
3636
endpoint does not support namespaced objects.
@@ -46,11 +46,11 @@ The file format is [one JSON object per line](http://jsonlines.org/). There sho
4646
one map per line.
4747

4848
Each line is a "policy object". A policy object is a map with the following properties:
49-
- `user`, type string; the user-string from `--token_auth_file`
50-
- `readonly`, type boolean, when true, means that the policy only applies to GET
49+
- `user`, type string; the user-string from `--token_auth_file`
50+
- `readonly`, type boolean, when true, means that the policy only applies to GET
5151
operations.
52-
- `resource`, type string; a resource from an URL, such as `pods`.
53-
- `namespace`, type string; a namespace string.
52+
- `resource`, type string; a resource from an URL, such as `pods`.
53+
- `namespace`, type string; a namespace string.
5454

5555
An unset property is the same as a property set to the zero value for its type (e.g. empty string, 0, false).
5656
However, unset should be preferred for readability.

0 commit comments

Comments
 (0)