Only attempt to construct GC informers for watchable resources

This commit is contained in:
Jordan Liggitt
2017-11-15 02:26:58 -05:00
parent 86480fc0af
commit dbfc43f723
3 changed files with 14 additions and 7 deletions

View File

@@ -230,7 +230,7 @@ func (gb *GraphBuilder) syncMonitors(resources map[schema.GroupVersionResource]s
kept := 0
added := 0
for resource := range resources {
if _, ok := ignoredResources[resource.GroupResource()]; ok {
if _, ok := gb.ignoredResources[resource.GroupResource()]; ok {
continue
}
if m, ok := toRemove[resource]; ok {