Fix input/output of selfsubjectaccess review (#5593)
This commit is contained in:
@@ -99,37 +99,28 @@ field of the returned object is the result of the query.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ kubectl create -f - -o yaml << EOF
|
$ kubectl create -f - -o yaml << EOF
|
||||||
{
|
apiVersion: authorization.k8s.io/v1
|
||||||
"kind": "SelfSubjectAccessReview",
|
kind: SelfSubjectAccessReview
|
||||||
"apiVersion": "authorization.k8s.io/v1",
|
spec:
|
||||||
"spec": {
|
resourceAttributes:
|
||||||
"resourceAttributes": {
|
group: apps
|
||||||
"group": "apps",
|
name: deployments
|
||||||
"name": "deployments",
|
verb: create
|
||||||
"verb": "create",
|
namespace: dev
|
||||||
"namespace": "dev"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
{
|
|
||||||
"apiVersion": "authorization.k8s.io/v1",
|
apiVersion: authorization.k8s.io/v1
|
||||||
"kind": "SelfSubjectAccessReview",
|
kind: SelfSubjectAccessReview
|
||||||
"metadata": {
|
metadata:
|
||||||
"creationTimestamp": null
|
creationTimestamp: null
|
||||||
},
|
spec:
|
||||||
"spec": {
|
resourceAttributes:
|
||||||
"resourceAttributes": {
|
group: apps
|
||||||
"group": "apps",
|
name: deployments
|
||||||
"name": "deployments",
|
namespace: dev
|
||||||
"namespace": "dev",
|
verb: create
|
||||||
"verb": "create"
|
status:
|
||||||
}
|
allowed: true
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
"allowed": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using Flags for Your Authorization Module
|
## Using Flags for Your Authorization Module
|
||||||
|
|||||||
Reference in New Issue
Block a user