未验证 提交 80e200e8 编写于 作者: S Sharif Elgamal 提交者: GitHub

Merge pull request #4439 from afbjorklund/cache-none

Cache: don't use ssh runner for the none driver
......@@ -41,7 +41,6 @@ import (
"k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/cruntime"
"k8s.io/minikube/pkg/minikube/sshutil"
)
const tempLoadDir = "/tmp"
......@@ -129,11 +128,10 @@ func CacheAndLoadImages(images []string) error {
return err
}
client, err := sshutil.NewSSHClient(h.Driver)
runner, err := CommandRunner(h)
if err != nil {
return err
}
runner := bootstrapper.NewSSHRunner(client)
return LoadImages(runner, images, constants.ImageCacheDir)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册