Merge pull request #5534 from bprashanth/generic_storage_interface

Add a GenericRESTStorage interface
This commit is contained in:
CJ Cullen
2015-03-19 09:35:06 -07:00
3 changed files with 32 additions and 72 deletions

View File

@@ -379,6 +379,7 @@ func (m *Master) init(c *Config) {
if c.SyncPodStatus {
go util.Forever(podCache.UpdateAllContainers, m.cacheTimeout)
go util.Forever(podCache.GarbageCollectPodStatus, time.Minute*30)
// Note the pod cache needs access to an un-decorated RESTStorage
podStorage = podStorage.WithPodStatus(podCache)
}