Merge pull request #33266 from sttts/sttts-one-installapigroups

Automatic merge from submit-queue

Reduce genericapiserver api surface
This commit is contained in:
Kubernetes Submit Queue
2016-09-23 02:32:07 -07:00
committed by GitHub
4 changed files with 9 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ func Run(serverOptions *genericoptions.ServerRunOptions) error {
Scheme: api.Scheme,
NegotiatedSerializer: api.Codecs,
}
if err := s.InstallAPIGroups([]genericapiserver.APIGroupInfo{apiGroupInfo}); err != nil {
if err := s.InstallAPIGroup(&apiGroupInfo); err != nil {
return fmt.Errorf("Error in installing API: %v", err)
}
s.Run(serverOptions)