Skip to content

Commit

Permalink
Make download.imageExistsInDaemon public to fix bad compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyDev committed May 13, 2021
1 parent c0a492b commit 268e91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/minikube/download/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func imageExistsInCache(img string) bool {

var checkImageExistsInCache = imageExistsInCache

// imageExistsInDaemon if img exist in local docker daemon
func imageExistsInDaemon(img string) bool {
// ImageExistsInDaemon if img exist in local docker daemon
func ImageExistsInDaemon(img string) bool {
// Check if image exists locally
klog.Infof("Checking for %s in local docker daemon", img)
cmd := exec.Command("docker", "images", "--format", "{{.Repository}}:{{.Tag}}@{{.Digest}}")
Expand All @@ -77,7 +77,7 @@ func imageExistsInDaemon(img string) bool {
return false
}

var checkImageExistsInDaemon = imageExistsInDaemon
var checkImageExistsInDaemon = ImageExistsInDaemon

// ImageToCache downloads img (if not present in cache) and writes it to the local cache directory
func ImageToCache(img string) error {
Expand Down

0 comments on commit 268e91f

Please sign in to comment.