construction of GC should not fail for restmapper error caused by tpr

This commit is contained in:
Chao Xu
2017-03-16 11:41:45 -07:00
parent 67a6c68d77
commit 33da82bc67
5 changed files with 55 additions and 25 deletions

View File

@@ -165,7 +165,9 @@ func (gb *GraphBuilder) monitorsForResources(resources map[schema.GroupVersionRe
}
kind, err := gb.restMapper.KindFor(resource)
if err != nil {
return err
nonCoreMsg := fmt.Sprintf(nonCoreMessage, resource)
utilruntime.HandleError(fmt.Errorf("%v. %s", err, nonCoreMsg))
continue
}
monitor, err := gb.controllerFor(resource, kind)
if err != nil {