mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-03-01 22:30:21 +00:00
Merge pull request #28788 from deads2k/wire-authentication
Automatic merge from submit-queue add tokenreviews endpoint to implement webhook Wires up an API resource under `apis/authentication.k8s.io/v1beta1` to expose the webhook token authentication API as an API resource. This allows one API server to use another for authentication and uses existing policy engines for the "authoritative" API server to controller access to the endpoint. @cjcullen you wrote the initial type
This commit is contained in:
7
test/fixtures/pkg/kubectl/cmd/create/tokenreview.json
vendored
Normal file
7
test/fixtures/pkg/kubectl/cmd/create/tokenreview.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"apiVersion": "authentication.k8s.io/v1beta1",
|
||||
"kind": "TokenReview",
|
||||
"spec": {
|
||||
"token": "test-token"
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/testapi"
|
||||
authenticationv1beta1 "k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1"
|
||||
authenticationv1beta1 "k8s.io/kubernetes/pkg/apis/authentication/v1beta1"
|
||||
"k8s.io/kubernetes/pkg/apis/autoscaling"
|
||||
"k8s.io/kubernetes/pkg/apis/extensions"
|
||||
"k8s.io/kubernetes/pkg/apiserver"
|
||||
|
||||
Reference in New Issue
Block a user