Skip to content

Commit

Permalink
Merge pull request #7221 from kubernetes/windows-out
Browse files Browse the repository at this point in the history
Use correct preload paths on Windows, announce base image pull
  • Loading branch information
medyagh authored Mar 25, 2020
2 parents 9f15f8d + d3fcd40 commit 1f30cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/minikube/download/preload.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"

"cloud.google.com/go/storage"
"google.golang.org/api/option"
Expand Down Expand Up @@ -59,14 +59,14 @@ func targetDir() string {
return localpath.MakeMiniPath("cache", "preloaded-tarball")
}

// PreloadChecksumPath returns path to checksum file
// PreloadChecksumPath returns the local path to the cached checksum file
func PreloadChecksumPath(k8sVersion string) string {
return path.Join(targetDir(), checksumName(k8sVersion))
return filepath.Join(targetDir(), checksumName(k8sVersion))
}

// TarballPath returns the path to the preloaded tarball
// TarballPath returns the local path to the cached preload tarball
func TarballPath(k8sVersion string) string {
return path.Join(targetDir(), TarballName(k8sVersion))
return filepath.Join(targetDir(), TarballName(k8sVersion))
}

// remoteTarballURL returns the URL for the remote tarball in GCS
Expand Down Expand Up @@ -122,7 +122,7 @@ func Preload(k8sVersion, containerRuntime string) error {
return nil
}

out.T(out.FileDownload, "Downloading preloaded images tarball for k8s {{.version}} ...", out.V{"version": k8sVersion})
out.T(out.FileDownload, "Downloading Kubernetes {{.version}} preload ...", out.V{"version": k8sVersion})
url := remoteTarballURL(k8sVersion)

tmpDst := targetPath + ".download"
Expand Down
1 change: 1 addition & 0 deletions pkg/minikube/node/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func doCacheBinaries(k8sVersion string) error {

// BeginDownloadKicArtifacts downloads the kic image + preload tarball, returns true if preload is available
func beginDownloadKicArtifacts(g *errgroup.Group) {
out.T(out.Pulling, "Pulling base image ...")
glog.Info("Beginning downloading kic artifacts")
g.Go(func() error {
glog.Infof("Downloading %s to local daemon", kic.BaseImage)
Expand Down

0 comments on commit 1f30cfc

Please sign in to comment.