better names

pull/6051/head
Medya Gh 2019-12-10 16:37:42 -08:00
parent 679a9c114b
commit 2d1fffe1d1
2 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ func saveImagesToTarFromConfig() error {
if len(images) == 0 {
return nil
}
return machine.CacheImagesToHostDisk(images, constants.ImageCacheDir)
return machine.CacheImagesToTar(images, constants.ImageCacheDir)
}
// loadCachedImagesInConfigFile loads the images currently in the config file (minikube start)

View File

@ -63,19 +63,19 @@ func CacheImagesForBootstrapper(imageRepository string, version string, clusterB
return errors.Wrap(err, "cached images list")
}
if err := CacheImagesToHostDisk(images, constants.ImageCacheDir); err != nil {
if err := CacheImagesToTar(images, constants.ImageCacheDir); err != nil {
return errors.Wrapf(err, "Caching images for %s", clusterBootstrapper)
}
return nil
}
// CacheImagesToHostDisk will cache images on the host
// CacheImagesToTar will cache images on the host
//
// The cache directory currently caches images using the imagename_tag
// For example, k8s.gcr.io/kube-addon-manager:v6.5 would be
// stored at $CACHE_DIR/k8s.gcr.io/kube-addon-manager_v6.5
func CacheImagesToHostDisk(images []string, cacheDir string) error {
func CacheImagesToTar(images []string, cacheDir string) error {
var g errgroup.Group
for _, image := range images {
image := image
@ -150,7 +150,7 @@ func needsTransfer(image string, cr cruntime.Manager) error {
// CacheAndLoadImages caches and loads images to all profiles
func CacheAndLoadImages(images []string) error {
if err := CacheImagesToHostDisk(images, constants.ImageCacheDir); err != nil {
if err := CacheImagesToTar(images, constants.ImageCacheDir); err != nil {
return err
}
api, err := NewAPIClient()