don't extract volume if tarball doesn't exist

pull/7210/head
Priya Wadhwa 2020-03-24 15:01:31 -07:00
parent b5e088ad59
commit 1d72a1c826
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ func (d *Driver) Create() error {
return errors.Wrap(err, "prepare kic ssh")
}
// If preload doesn't exist, don't both extracting tarball to volume
if !download.PreloadExists(d.NodeConfig.KubernetesVersion, d.NodeConfig.ContainerRuntime) {
return nil
}
t := time.Now()
glog.Infof("Starting extracting preloaded images to volume")
// Extract preloaded images to container