Merge pull request #34551 from deads2k/api-23-remove-legacy-prefixy
Automatic merge from submit-queue Change legacy API resource registration Updates the legacy API resource registration to emphasize its different-ness and to simplify supporting objects. The option has to remain in the genericapiserverconfig for multiple prefixes to enable cases where composers/extenders had composed additional groupless APIs. See OpenShift as an example. However this is now transparent to "normal" composers. @ncdc since sttts is out.
This commit is contained in:
@@ -61,12 +61,11 @@ func installCoreAPIs(s *options.ServerRunOptions, g *genericapiserver.GenericAPI
|
||||
v1.SchemeGroupVersion.Version: coreResources,
|
||||
},
|
||||
OptionsExternalVersion: ®istered.GroupOrDie(core.GroupName).GroupVersion,
|
||||
IsLegacyGroup: true,
|
||||
Scheme: core.Scheme,
|
||||
ParameterCodec: core.ParameterCodec,
|
||||
NegotiatedSerializer: core.Codecs,
|
||||
}
|
||||
if err := g.InstallAPIGroup(&apiGroupInfo); err != nil {
|
||||
if err := g.InstallLegacyAPIGroup(genericapiserver.LegacyAPIPrefix, &apiGroupInfo); err != nil {
|
||||
glog.Fatalf("Error in registering group version: %+v.\n Error: %v\n", apiGroupInfo, err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user