install authorization.k8s.io/v1, add tests

Use specific v1beta1 Authorization client

Add client expansions
This commit is contained in:
Jordan Liggitt
2017-01-30 14:35:28 -05:00
parent 31d45fe78f
commit 8706bc9617
24 changed files with 270 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
{
"apiVersion": "authorization.k8s.io/v1",
"kind": "SubjectAccessReview",
"spec": {
"user": "bob",
"groups": [
"the-group"
],
"resourceAttributes": {
"namespace": "ns",
"verb": "create",
"group": "autoscaling",
"resource": "horizontalpodautoscalers"
}
}
}

View File

@@ -3,7 +3,7 @@
"kind": "SubjectAccessReview",
"spec": {
"user": "bob",
"groups": [
"group": [
"the-group"
],
"resourceAttributes": {