move watch.ListWatchUntil to its own package to avoid future import cycle

This commit is contained in:
Chao Xu
2016-10-26 22:48:17 -07:00
parent 71ba8a90f0
commit 2044927034
8 changed files with 141 additions and 155 deletions

View File

@@ -119,7 +119,7 @@ func (b SAControllerClientBuilder) Config(name string) (*restclient.Config, erro
return b.CoreClient.Secrets(b.Namespace).Watch(options)
},
}
_, err = watch.ListWatchUntil(30*time.Second, lw,
_, err = cache.ListWatchUntil(30*time.Second, lw,
func(event watch.Event) (bool, error) {
switch event.Type {
case watch.Deleted: