EnableGarbageCollection should be a struct member on RESTOptions

Not a global. Now that we have RESTOptions this was an easy change.
This commit is contained in:
Clayton Coleman
2016-09-12 19:14:04 -04:00
parent 96d971fed3
commit acb4c00b39
8 changed files with 31 additions and 41 deletions

View File

@@ -781,6 +781,7 @@ func (m *Master) GetRESTOptionsOrDie(c *Config, resource unversioned.GroupResour
StorageConfig: storageConfig,
Decorator: m.StorageDecorator(),
DeleteCollectionWorkers: m.deleteCollectionWorkers,
EnableGarbageCollection: c.Config.EnableGarbageCollection,
ResourcePrefix: c.StorageFactory.ResourcePrefix(resource),
}
}