mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
install authorization.k8s.io/v1, add tests
Use specific v1beta1 Authorization client Add client expansions
This commit is contained in:
16
test/fixtures/pkg/kubectl/cmd/create/sar-v1.json
vendored
Normal file
16
test/fixtures/pkg/kubectl/cmd/create/sar-v1.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -3,7 +3,7 @@
|
||||
"kind": "SubjectAccessReview",
|
||||
"spec": {
|
||||
"user": "bob",
|
||||
"groups": [
|
||||
"group": [
|
||||
"the-group"
|
||||
],
|
||||
"resourceAttributes": {
|
Reference in New Issue
Block a user