Skip to content

Commit

Permalink
add logging for enabled/disabled API groups
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and jessfraz committed Oct 13, 2016
1 parent a6e7798 commit b2325ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/master/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,16 @@ func (m *Master) InstallAPIs(c *Config) {
// TODO find a better way to configure priority of groups
for _, group := range sets.StringKeySet(c.RESTStorageProviders).List() {
if !c.APIResourceConfigSource.AnyResourcesForGroupEnabled(group) {
glog.V(1).Infof("Skipping disabled API group %q.", group)
continue
}
restStorageBuilder := c.RESTStorageProviders[group]
apiGroupInfo, enabled := restStorageBuilder.NewRESTStorage(c.APIResourceConfigSource, restOptionsGetter)
if !enabled {
glog.Warningf("Problem initializing API group %q, skipping.", group)
continue
}
glog.V(1).Infof("Enabling API group %q.", group)

// This is here so that, if the policy group is present, the eviction
// subresource handler wil be able to find poddisruptionbudgets
Expand Down

0 comments on commit b2325ef

Please sign in to comment.