increase wait time for node readiness to 15 mins (#1537)

* increase wait time for node readiness to 15 mins

* using cfg.Timeout so timeout is configurable
This commit is contained in:
Jack Francis 2017-10-04 13:47:52 -07:00 коммит произвёл GitHub
Родитель 9cf7f62609
Коммит e19d2a742f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -84,7 +84,7 @@ func main() {
os.Setenv("KUBECONFIG", cfg.GetKubeConfig()) os.Setenv("KUBECONFIG", cfg.GetKubeConfig())
log.Printf("Kubeconfig:%s\n", cfg.GetKubeConfig()) log.Printf("Kubeconfig:%s\n", cfg.GetKubeConfig())
log.Println("Waiting on nodes to go into ready state...") log.Println("Waiting on nodes to go into ready state...")
ready := node.WaitOnReady(eng.NodeCount(), 10*time.Second, 10*time.Minute) ready := node.WaitOnReady(eng.NodeCount(), 10*time.Second, cfg.Timeout)
if ready == false { if ready == false {
teardown() teardown()
log.Fatalf("Error: Not all nodes in ready state!") log.Fatalf("Error: Not all nodes in ready state!")