Skip to content

Commit

Permalink
Adds two more output steps: cacheToKicDriver & digestPull
Browse files Browse the repository at this point in the history
..with some handsome emojis
  • Loading branch information
x7upLime committed Dec 10, 2022
1 parent cbfae92 commit 6245b90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/minikube/node/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func beginDownloadKicBaseImage(g *errgroup.Group, cc *config.ClusterConfig, down

klog.Infof("Beginning downloading kic base image for %s with %s", cc.Driver, cc.KubernetesConfig.ContainerRuntime)
register.Reg.SetStep(register.PullingBaseImage)
out.Step(style.Pulling, "Pulling base image ...")
out.Step(style.Pulling, "Pulling base image to minikube cache ...")
g.Go(func() error {
baseImg := cc.KicBaseImage
if baseImg == kic.BaseImage && len(cc.KubernetesConfig.ImageRepository) != 0 {
Expand Down Expand Up @@ -157,13 +157,15 @@ func beginDownloadKicBaseImage(g *errgroup.Group, cc *config.ClusterConfig, down
return err
}

out.Step(style.Waiting, "Loading cached image to KicDriver...")
klog.Infof("Loading %s from local cache", img)
err = download.CacheToKicDriver(cc.Driver, img)
if err == nil {
klog.Infof("successfully loaded %s from cached tarball", img)
isFromCache = true
}

out.Step(style.FileDownload, "Downloading digest-specific layer to KicDriver...")
klog.Infof("Downloading %s to local KicDriver", img)
err = download.ImageToKicDriver(cc.Driver, img)
if err == nil {
Expand Down

0 comments on commit 6245b90

Please sign in to comment.