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

@@ -348,8 +348,10 @@ func (m *Master) InstallAPIs(c *Config) {
apiGroupsInfo = append(apiGroupsInfo, apiGroupInfo)
}
if err := m.InstallAPIGroups(apiGroupsInfo); err != nil {
glog.Fatalf("Error in registering group versions: %v", err)
for i := range apiGroupsInfo {
if err := m.InstallAPIGroup(&apiGroupsInfo[i]); err != nil {
glog.Fatalf("Error in registering group versions: %v", err)
}
}
}