Fix the command in authorization.md

pull/22832/head
Yecheng Fu 2020-07-31 11:00:27 +08:00
parent 6ff79d8f84
commit ee4aa53115
1 changed files with 3 additions and 2 deletions

View File

@ -138,8 +138,6 @@ field of the returned object is the result of the query.
```bash
kubectl create -f - -o yaml << EOF
```
```
apiVersion: authorization.k8s.io/v1
kind: SelfSubjectAccessReview
spec:
@ -149,7 +147,10 @@ spec:
verb: create
namespace: dev
EOF
```
The generated `SelfSubjectAccessReview` is:
```
apiVersion: authorization.k8s.io/v1
kind: SelfSubjectAccessReview
metadata: