Embed etcdgeneric in RESTStorage for pods

This commit is contained in:
Prashanth Balasubramanian
2015-03-16 20:50:16 -07:00
parent 4586f8ce29
commit 960e16c397
3 changed files with 32 additions and 72 deletions

View File

@@ -382,6 +382,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)
}