Skip to content

Commit 80e200e

Browse files
Merge pull request #4439 from afbjorklund/cache-none
Cache: don't use ssh runner for the none driver
2 parents 70cdf33 + f4aaef7 commit 80e200e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/minikube/machine/cache_images.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import (
4141
"k8s.io/minikube/pkg/minikube/config"
4242
"k8s.io/minikube/pkg/minikube/constants"
4343
"k8s.io/minikube/pkg/minikube/cruntime"
44-
"k8s.io/minikube/pkg/minikube/sshutil"
4544
)
4645

4746
const tempLoadDir = "/tmp"
@@ -129,11 +128,10 @@ func CacheAndLoadImages(images []string) error {
129128
return err
130129
}
131130

132-
client, err := sshutil.NewSSHClient(h.Driver)
131+
runner, err := CommandRunner(h)
133132
if err != nil {
134133
return err
135134
}
136-
runner := bootstrapper.NewSSHRunner(client)
137135
return LoadImages(runner, images, constants.ImageCacheDir)
138136
}
139137

0 commit comments

Comments
 (0)