move wait function to after startMachine
parent
84bc0d440b
commit
992b51cd4e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue