Address comments.

This commit is contained in:
Brendan Burns
2016-03-24 15:44:31 -07:00
parent 87a1635c93
commit 1f5b4b8802
2 changed files with 9 additions and 9 deletions

View File

@@ -702,16 +702,13 @@ func (m *Master) getExtensionResources(c *Config) map[string]rest.Storage {
master: m,
thirdPartyResourceRegistry: thirdPartyResourceStorage,
}
go func() {
wait.Forever(func() {
if m.disableThirdPartyControllerForTesting {
return
}
if !m.disableThirdPartyControllerForTesting {
go wait.Forever(func() {
if err := thirdPartyControl.SyncResources(); err != nil {
glog.Warningf("third party resource sync failed: %v", err)
}
}, 10*time.Second)
}()
}
storage["thirdpartyresources"] = thirdPartyResourceStorage
}