mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Merge pull request #1002 from smarterclayton/improve_wait_api
Improve the wait.Poll GoDoc and api
This commit is contained in:
@@ -102,7 +102,7 @@ func Update(name string, client client.Interface, updatePeriod time.Duration) er
|
||||
}
|
||||
time.Sleep(updatePeriod)
|
||||
}
|
||||
return wait.Poll(time.Second*5, 60 /* timeout after 300 seconds */, func() (bool, error) {
|
||||
return wait.Poll(time.Second*5, time.Second*300, func() (bool, error) {
|
||||
podList, err := client.ListPods(s)
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
Reference in New Issue
Block a user