Commit d4602bb9 authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

Remove race of waitForRCPodsRunning Running check and internal pod store

parent d329a664
......@@ -1533,6 +1533,9 @@ func waitForRCPodsRunning(c *client.Client, ns, rcName string) error {
waitLoop:
for start := time.Now(); time.Since(start) < 10*time.Minute; time.Sleep(5 * time.Second) {
pods := podStore.List()
if len(pods) == 0 {
continue waitLoop
}
for _, p := range pods {
if p.Status.Phase != api.PodRunning {
continue waitLoop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment