Skip to content

Commit

Permalink
Fix input/output of selfsubjectaccess review
Browse files Browse the repository at this point in the history
  • Loading branch information
tengqm committed Sep 23, 2017
1 parent e396274 commit d6e354b
Showing 1 changed file with 21 additions and 30 deletions.
51 changes: 21 additions & 30 deletions docs/admin/authorization/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,37 +99,28 @@ field of the returned object is the result of the query.

```bash
$ kubectl create -f - -o yaml << EOF
{
"kind": "SelfSubjectAccessReview",
"apiVersion": "authorization.k8s.io/v1",
"spec": {
"resourceAttributes": {
"group": "apps",
"name": "deployments",
"verb": "create",
"namespace": "dev"
}
}
}
apiVersion: authorization.k8s.io/v1
kind: SelfSubjectAccessReview
spec:
resourceAttributes:
group: apps
name: deployments
verb: create
namespace: dev
EOF
{
"apiVersion": "authorization.k8s.io/v1",
"kind": "SelfSubjectAccessReview",
"metadata": {
"creationTimestamp": null
},
"spec": {
"resourceAttributes": {
"group": "apps",
"name": "deployments",
"namespace": "dev",
"verb": "create"
}
},
"status": {
"allowed": true
}
}

apiVersion: authorization.k8s.io/v1
kind: SelfSubjectAccessReview
metadata:
creationTimestamp: null
spec:
resourceAttributes:
group: apps
name: deployments
namespace: dev
verb: create
status:
allowed: true
```

## Using Flags for Your Authorization Module
Expand Down

0 comments on commit d6e354b

Please sign in to comment.