@@ -27,6 +27,7 @@ import (
27
27
28
28
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
29
29
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
30
+ apiserverinternalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
30
31
appsv1 "k8s.io/api/apps/v1"
31
32
authenticationv1 "k8s.io/api/authentication/v1"
32
33
authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
@@ -93,6 +94,7 @@ import (
93
94
94
95
// RESTStorage installers
95
96
admissionregistrationrest "k8s.io/kubernetes/pkg/registry/admissionregistration/rest"
97
+ apiserverinternalrest "k8s.io/kubernetes/pkg/registry/apiserverinternal/rest"
96
98
appsrest "k8s.io/kubernetes/pkg/registry/apps/rest"
97
99
authenticationrest "k8s.io/kubernetes/pkg/registry/authentication/rest"
98
100
authorizationrest "k8s.io/kubernetes/pkg/registry/authorization/rest"
@@ -415,6 +417,7 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
415
417
// TODO: describe the priority all the way down in the RESTStorageProviders and plumb it back through the various discovery
416
418
// handlers that we have.
417
419
restStorageProviders := []RESTStorageProvider {
420
+ apiserverinternalrest.StorageProvider {},
418
421
authenticationrest.RESTStorageProvider {Authenticator : c .GenericConfig .Authentication .Authenticator , APIAudiences : c .GenericConfig .Authentication .APIAudiences },
419
422
authorizationrest.RESTStorageProvider {Authorizer : c .GenericConfig .Authorization .Authorizer , RuleResolver : c .GenericConfig .RuleResolver },
420
423
autoscalingrest.RESTStorageProvider {},
@@ -633,6 +636,7 @@ func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig {
633
636
)
634
637
// disable alpha versions explicitly so we have a full list of what's possible to serve
635
638
ret .DisableVersions (
639
+ apiserverinternalv1alpha1 .SchemeGroupVersion ,
636
640
batchapiv2alpha1 .SchemeGroupVersion ,
637
641
nodev1alpha1 .SchemeGroupVersion ,
638
642
rbacv1alpha1 .SchemeGroupVersion ,
0 commit comments