Fix input/output of selfsubjectaccess review (#5593)

This commit is contained in:
Qiming
2017-09-25 11:39:54 +08:00
committed by Zach Corleissen
parent e396274119
commit f379efa3b4
+21 -30
View File
@@ -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