move wait function to after startMachine

pull/6928/head
Priya Wadhwa 2020-03-06 17:35:31 -08:00
parent 84bc0d440b
commit 992b51cd4e
1 changed files with 2 additions and 1 deletions

View File

@ -55,11 +55,12 @@ func Start(mc config.ClusterConfig, n config.Node, primary bool, existingAddons
// exits here in case of --download-only option.
handleDownloadOnly(&cacheGroup, &kicGroup, k8sVersion)
waitDownloadKicArtifacts(&kicGroup)
waitCacheRequiredImages(&cacheGroup)
mRunner, preExists, machineAPI, host := startMachine(&mc, &n)
defer machineAPI.Close()
waitCacheRequiredImages(&cacheGroup)
// configure the runtime (docker, containerd, crio)
cr := configureRuntimes(mRunner, driverName, mc.KubernetesConfig)
showVersionInfo(k8sVersion, cr)