Reduce genericapiserver api surface

This commit is contained in:
Dr. Stefan Schimanski
2016-09-22 13:02:52 +02:00
parent 5af04d1dd1
commit c727e27602
4 changed files with 9 additions and 15 deletions

View File

@@ -97,7 +97,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)